opennlp.tools.langdetect (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

# Package opennlp.tools.langdetect

- Interface Summary
  Interface | Description
  --- | ---
  LanguageDetector | The interface for LanguageDetector which provide the @`Language` according to the context.
  LanguageDetectorContextGenerator | A context generator interface for language detector.
  LanguageDetectorEvaluationMonitor | `EvaluationMonitor` for Language Detector.

- Class Summary
  Class | Description
  --- | ---
  DefaultLanguageDetectorContextGenerator | A context generator for language detector.
  Language | Class for holding the document language and its confidence
  LanguageDetectorConfig |
  LanguageDetectorCrossValidator | Cross validator for language detector
  LanguageDetectorEvaluator | The `LanguageDetectorEvaluator` measures the performance of the given `LanguageDetector` with the provided reference `LanguageSample`s.
  LanguageDetectorEventStream | Iterator-like class for modeling language detector events.
  LanguageDetectorFactory | Default factory used by Language Detector.
  LanguageDetectorME | Implements learnable Language Detector
  LanguageDetectorModel | A model for language detection
  LanguageDetectorSampleStream | This class reads in string encoded training samples, parses them and outputs `LanguageSample` objects.
  LanguageSample | Class which holds a classified document and its @`Language`.
  ProbingLanguageDetectionResult |

Copyright © 2026 The Apache Software Foundation. All rights reserved.