## Uses of Interface
opennlp.tools.postag.POSContextGenerator

- Packages that use POSContextGenerator
  Package | Description
  --- | ---
  opennlp.tools.postag | Package related to part-of-speech tagging.

- - ### Uses of POSContextGenerator in opennlp.tools.postag

    Classes in opennlp.tools.postag that implement POSContextGenerator
    Modifier and Type | Class and Description
    --- | ---
    `class` | `ConfigurablePOSContextGenerator` A context generator for the POS Tagger.
    `class` | `DefaultPOSContextGenerator` A context generator for the POS Tagger.

    Fields in opennlp.tools.postag declared as POSContextGenerator
    Modifier and Type | Field and Description
    --- | ---
    `protected POSContextGenerator` | POSTaggerME.`contextGen` The feature context generator.

    Methods in opennlp.tools.postag that return POSContextGenerator
    Modifier and Type | Method and Description
    --- | ---
    `POSContextGenerator` | POSTaggerFactory.`getPOSContextGenerator()`
    `POSContextGenerator` | POSTaggerFactory.`getPOSContextGenerator(int cacheSize)`

    Methods in opennlp.tools.postag with parameters of type POSContextGenerator
    Modifier and Type | Method and Description
    --- | ---
    `static List<Event>` | POSSampleEventStream.`generateEvents(String[] sentence, String[] tags, Object[] additionalContext, POSContextGenerator cg)`
    `static List<Event>` | POSSampleEventStream.`generateEvents(String[] sentence, String[] tags, POSContextGenerator cg)`

    Constructors in opennlp.tools.postag with parameters of type POSContextGenerator
    Constructor and Description
    `POSSampleEventStream(ObjectStream<POSSample> samples, POSContextGenerator cg)` Initializes the current instance with the given samples and the given `POSContextGenerator`.
    `POSSampleSequenceStream(ObjectStream<POSSample> psi, POSContextGenerator pcg)`

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