Uses of Class
opennlp.tools.langdetect.Language
Packages that use Language
Package
Description
Package related to predicting languages from samples of text.
-
Uses of Language in opennlp.tools.langdetect
Fields in opennlp.tools.langdetect declared as LanguageModifier and TypeFieldDescriptionprivate final LanguageLanguageSample.languageThe field for thelanguagerecord component.private final Language[]ProbingLanguageDetectionResult.languagesThe field for thelanguagesrecord component.Methods in opennlp.tools.langdetect that return LanguageModifier and TypeMethodDescriptionLanguageSample.language()Returns the value of thelanguagerecord component.Language[]ProbingLanguageDetectionResult.languages()Returns the value of thelanguagesrecord component.private Language[]LanguageDetectorME.predict(Map<CharSequence, MutableInt> ngramCounts) LanguageDetector.predictLanguage(CharSequence content) Predicts theLanguagefor the fullcontentlength.LanguageDetectorME.predictLanguage(CharSequence content) ThreadSafeLanguageDetectorME.predictLanguage(CharSequence content) Language[]LanguageDetector.predictLanguages(CharSequence content) Predicts thelanguagesfor the fullcontentlength.Language[]LanguageDetectorME.predictLanguages(CharSequence content) Language[]ThreadSafeLanguageDetectorME.predictLanguages(CharSequence content) Methods in opennlp.tools.langdetect with parameters of type LanguageModifier and TypeMethodDescription(package private) booleanLanguageDetectorME.seenEnough(List<Language[]> predictionsQueue, Language[] newPredictions, Map<CharSequence, MutableInt> ngramCounts, LanguageDetectorConfig config) Overriding this for different behavior to determine if there is enough confidence in the predictions to stop.Constructors in opennlp.tools.langdetect with parameters of type LanguageModifierConstructorDescriptionLanguageSample(Language language, CharSequence context) Creates an instance of aLanguageSamplerecord class.ProbingLanguageDetectionResult(Language[] languages, int length) Creates an instance of aProbingLanguageDetectionResultrecord class.