# Uses of Class
opennlp.tools.langdetect.Language

Packages that use Language
Package
Description
opennlp.tools.langdetect
Package related to predicting languages from samples of text.

- ## Uses of Language in opennlp.tools.langdetect

  Methods in opennlp.tools.langdetect that return Language
  Modifier and Type
  Method
  Description
  `Language`
  LanguageSample.`language()`
  Returns the value of the `language` record component.
  `Language[]`
  ProbingLanguageDetectionResult.`languages()`
  Returns the value of the `languages` record component.
  `Language`
  LanguageDetector.`predictLanguage(CharSequence content)`
  Predicts the `Language` for the full `content` length.
  `Language`
  LanguageDetectorME.`predictLanguage(CharSequence content)`
  `Language[]`
  LanguageDetector.`predictLanguages(CharSequence content)`
  Predicts the `languages` for the full `content` length.
  `Language[]`
  LanguageDetectorME.`predictLanguages(CharSequence content)`
  Constructors in opennlp.tools.langdetect with parameters of type Language
  Modifier
  Constructor
  Description
  ``
  `LanguageSample(Language language, CharSequence context)`
  Creates an instance of a `LanguageSample` record class.
  ``
  `ProbingLanguageDetectionResult(Language[] languages, int length)`
  Creates an instance of a `ProbingLanguageDetectionResult` record class.