# 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
  Description
  `class`
  `ConfigurablePOSContextGenerator`
  A configurable `context generator` for a `POSTagger`.
  `class`
  `DefaultPOSContextGenerator`
  A default `context generator` for a `POSTagger`.
  Fields in opennlp.tools.postag declared as POSContextGenerator
  Modifier and Type
  Field
  Description
  `protected final POSContextGenerator`
  POSTaggerME.`contextGen`
  The `feature context generator`.
  Methods in opennlp.tools.postag that return POSContextGenerator
  Modifier and Type
  Method
  Description
  `POSContextGenerator`
  POSTaggerFactory.`getPOSContextGenerator()`
  `POSContextGenerator`
  POSTaggerFactory.`getPOSContextGenerator(int cacheSize)`
  Methods in opennlp.tools.postag with parameters of type POSContextGenerator
  Modifier and Type
  Method
  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
  Modifier
  Constructor
  Description
  ``
  `POSSampleEventStream(ObjectStream<POSSample> samples, POSContextGenerator cg)`
  Initializes the current instance with the given samples and a `POSContextGenerator`.
  ``
  `POSSampleSequenceStream(ObjectStream<POSSample> psi, POSContextGenerator pcg)`
  Creates a `POSSampleSequenceStream` with given `samples` using a `POSContextGenerator`.