# Uses of Interface
opennlp.tools.namefind.NameContextGenerator

Packages that use NameContextGenerator
Package
Description
opennlp.tools.namefind
Package related to finding proper names and numeric amounts.

- ## Uses of NameContextGenerator in opennlp.tools.namefind

  Classes in opennlp.tools.namefind that implement NameContextGenerator
  Modifier and Type
  Class
  Description
  `class`
  `DefaultNameContextGenerator`
  A `NameContextGenerator` implementation for determining contextual features for a `tag-chunk` style named-entity recognizer.
  Fields in opennlp.tools.namefind declared as NameContextGenerator
  Modifier and Type
  Field
  Description
  `protected final NameContextGenerator`
  NameFinderME.`contextGenerator`
  Methods in opennlp.tools.namefind that return NameContextGenerator
  Modifier and Type
  Method
  Description
  `NameContextGenerator`
  TokenNameFinderFactory.`createContextGenerator()`
  Creates and configures a new `NameContextGenerator` in a default combination.
  Methods in opennlp.tools.namefind with parameters of type NameContextGenerator
  Modifier and Type
  Method
  Description
  `static List<Event>`
  NameFinderEventStream.`generateEvents(String[] sentence, String[] outcomes, NameContextGenerator cg)`
  Generates `events` for each token in a `sentence` with the specified `outcomes` using the specified `NameContextGenerator`.
  Constructors in opennlp.tools.namefind with parameters of type NameContextGenerator
  Modifier
  Constructor
  Description
  ``
  `NameFinderEventStream(ObjectStream<NameSample> dataStream, String type, NameContextGenerator contextGenerator, SequenceCodec<String> codec)`
  Initializes a `NameFinderEventStream` using the specified `dataStream` and `NameContextGenerator`.
  ``
  `NameSampleSequenceStream(ObjectStream<NameSample> psi, NameContextGenerator pcg)`
  Initializes a `NameSampleSequenceStream` with given `psi` samples and an `feature generator`.
  ``
  `NameSampleSequenceStream(ObjectStream<NameSample> psi, NameContextGenerator pcg, boolean useOutcomes)`
  Initializes a `NameSampleSequenceStream` with given `psi` samples and an `feature generator`.
  ``
  `NameSampleSequenceStream(ObjectStream<NameSample> psi, NameContextGenerator pcg, boolean useOutcomes, SequenceCodec<String> seqCodec)`
  Initializes a `NameSampleSequenceStream` with given `psi` samples and an `feature generator`.