# Uses of Record Class
opennlp.tools.langdetect.LanguageSample

Packages that use LanguageSample
Package
Description
opennlp.tools.cmdline.langdetect
opennlp.tools.formats
Experimental package related to converting various corpora to OpenNLP Format.
opennlp.tools.formats.leipzig
Experimental package related to the `Leipzig` corpus format.
opennlp.tools.langdetect
Package related to predicting languages from samples of text.

- ## Uses of LanguageSample in opennlp.tools.cmdline.langdetect

  Methods in opennlp.tools.cmdline.langdetect with parameters of type LanguageSample
  Modifier and Type
  Method
  Description
  `void`
  LanguageDetectorFineGrainedReportListener.`correctlyClassified(LanguageSample reference, LanguageSample prediction)`
  `void`
  LanguageDetectorEvaluationErrorListener.`misclassified(LanguageSample reference, LanguageSample prediction)`
  `void`
  LanguageDetectorFineGrainedReportListener.`misclassified(LanguageSample reference, LanguageSample prediction)`
  `protected void`
  LanguageDetectorEvaluationErrorListener.`printError(LanguageSample referenceSample, LanguageSample predictedSample)`

- ## Uses of LanguageSample in opennlp.tools.formats

  Methods in opennlp.tools.formats that return types with arguments of type LanguageSample
  Modifier and Type
  Method
  Description
  `ObjectStream<LanguageSample>`
  LanguageDetectorSampleStreamFactory.`create(String[] args)`

- ## Uses of LanguageSample in opennlp.tools.formats.leipzig

  Methods in opennlp.tools.formats.leipzig that return LanguageSample
  Modifier and Type
  Method
  Description
  `LanguageSample`
  LeipzigLanguageSampleStream.`read()`
  Methods in opennlp.tools.formats.leipzig that return types with arguments of type LanguageSample
  Modifier and Type
  Method
  Description
  `ObjectStream<LanguageSample>`
  LeipzigLanguageSampleStreamFactory.`create(String[] args)`

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

  Methods in opennlp.tools.langdetect that return LanguageSample
  Modifier and Type
  Method
  Description
  `LanguageSample`
  LanguageDetectorEvaluator.`processSample(LanguageSample sample)`
  Evaluates the given reference `LanguageSample` object.
  `LanguageSample`
  LanguageDetectorSampleStream.`read()`
  Methods in opennlp.tools.langdetect with parameters of type LanguageSample
  Modifier and Type
  Method
  Description
  `protected Iterator<Event>`
  LanguageDetectorEventStream.`createEvents(LanguageSample sample)`
  `LanguageSample`
  LanguageDetectorEvaluator.`processSample(LanguageSample sample)`
  Evaluates the given reference `LanguageSample` object.
  Method parameters in opennlp.tools.langdetect with type arguments of type LanguageSample
  Modifier and Type
  Method
  Description
  `void`
  LanguageDetectorCrossValidator.`evaluate(ObjectStream<LanguageSample> samples, int nFolds)`
  Starts the evaluation.
  `static LanguageDetectorModel`
  LanguageDetectorME.`train(ObjectStream<LanguageSample> samples, TrainingParameters mlParams, LanguageDetectorFactory factory)`
  Starts a training of a `LanguageDetectorModel` with the given parameters.
  Constructor parameters in opennlp.tools.langdetect with type arguments of type LanguageSample
  Modifier
  Constructor
  Description
  ``
  `LanguageDetectorEventStream(ObjectStream<LanguageSample> data, LanguageDetectorContextGenerator cg)`
  Initializes an instance via samples and feature generators.