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 theLanguagefor the fullcontentlength.Language[]predictLanguages(CharSequence content) Predicts thelanguagesfor the fullcontentlength.
-
Methodendetails
-
predictLanguages
Predicts thelanguagesfor the fullcontentlength.- Parameter:
content- The textual content to detect potentiallanguagesfrom.- Gibt zurück:
- the predicted languages
-
predictLanguage
Predicts theLanguagefor the fullcontentlength.- Parameter:
content- The textual content to detect potentiallanguagesfrom.- 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.
-