Package opennlp.tools.langdetect
Schnittstelle LanguageDetector
- Alle Superschnittstellen:
Serializable
- Alle bekannten Implementierungsklassen:
LanguageDetectorME
The interface for
LanguageDetector
which predicts the Language
for a context.-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungString[]
predictLanguage
(CharSequence content) Predicts theLanguage
for the fullcontent
length.Language[]
predictLanguages
(CharSequence content) Predicts thelanguages
for the fullcontent
length.
-
Methodendetails
-
predictLanguages
Predicts thelanguages
for the fullcontent
length.- Parameter:
content
- The textual content to detect potentiallanguages
from.- Gibt zurück:
- the predicted languages
-
predictLanguage
Predicts theLanguage
for the fullcontent
length.- Parameter:
content
- The textual content to detect potentiallanguages
from.- Gibt zurück:
- the language with the highest confidence
-
getSupportedLanguages
String[] getSupportedLanguages()- Gibt zurück:
- Retrieves an array of language (codes) that are supported by a
LanguageDetector
.
-