Package opennlp.tools.langdetect
Interface LanguageDetector
- All Superinterfaces:
- Serializable
- All Known Implementing Classes:
- LanguageDetectorME,- ThreadSafeLanguageDetectorME
The interface for 
LanguageDetector which predicts the Language for a context.- 
Method SummaryModifier and TypeMethodDescriptionString[]predictLanguage(CharSequence content) Predicts theLanguagefor the fullcontentlength.Language[]predictLanguages(CharSequence content) Predicts thelanguagesfor the fullcontentlength.
- 
Method Details- 
predictLanguagesPredicts thelanguagesfor the fullcontentlength.- Parameters:
- content- The textual content to detect potential- languagesfrom.
- Returns:
- the predicted languages
 
- 
predictLanguagePredicts theLanguagefor the fullcontentlength.- Parameters:
- content- The textual content to detect potential- languagesfrom.
- Returns:
- the language with the highest confidence
 
- 
getSupportedLanguagesString[] getSupportedLanguages()- Returns:
- Retrieves an array of language (codes) that are supported by a LanguageDetector.
 
 
-