Uses of Interface opennlp.tools.namefind.NameContextGenerator (Apache OpenNLP Tools 1.9.5 API)
Date: 2026-06-18

## 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 and Description
    --- | ---
    `class` | `DefaultNameContextGenerator` Class for determining contextual features for a tag/chunk style named-entity recognizer.

    Fields in opennlp.tools.namefind declared as NameContextGenerator
    Modifier and Type | Field and Description
    --- | ---
    `protected NameContextGenerator` | NameFinderME.`contextGenerator`

    Methods in opennlp.tools.namefind that return NameContextGenerator
    Modifier and Type | Method and Description
    --- | ---
    `NameContextGenerator` | TokenNameFinderFactory.`createContextGenerator()`

    Methods in opennlp.tools.namefind with parameters of type NameContextGenerator
    Modifier and Type | Method and Description
    --- | ---
    `static List<Event>` | NameFinderEventStream.`generateEvents(String[] sentence, String[] outcomes, NameContextGenerator cg)`

    Constructors in opennlp.tools.namefind with parameters of type NameContextGenerator
    Constructor and Description
    `NameFinderEventStream(ObjectStream<NameSample> dataStream, String type, NameContextGenerator contextGenerator, SequenceCodec<String> codec)` Creates a new name finder event stream using the specified data stream and context generator.
    `NameSampleSequenceStream(ObjectStream<NameSample> psi, NameContextGenerator pcg)`
    `NameSampleSequenceStream(ObjectStream<NameSample> psi, NameContextGenerator pcg, boolean useOutcomes)`
    `NameSampleSequenceStream(ObjectStream<NameSample> psi, NameContextGenerator pcg, boolean useOutcomes, SequenceCodec<String> seqCodec)`

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