LanguageDetectorContextGenerator (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

opennlp.tools.langdetect

## Interface LanguageDetectorContextGenerator

- All Superinterfaces:
    Serializable
  All Known Implementing Classes:
    DefaultLanguageDetectorContextGenerator

      public interface LanguageDetectorContextGenerator
      extends Serializable

  A context generator interface for language detector.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `String[]` | `getContext(CharSequence document)`

- - ### Method Detail

    - #### getContext

          String[] getContext(CharSequence document)

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