## Uses of Interface
opennlp.tools.util.SequenceCodec

- Packages that use SequenceCodec
  Package | Description
  --- | ---
  opennlp.tools.cmdline.namefind |
  opennlp.tools.namefind | Package related to finding proper names and numeric amounts.

- - ### Uses of SequenceCodec in opennlp.tools.cmdline.namefind

    Constructors in opennlp.tools.cmdline.namefind with parameters of type SequenceCodec
    Constructor and Description
    `TokenNameFinderFineGrainedReportListener(SequenceCodec<String> seqCodec)` Creates a listener that will print to `System.err`
    `TokenNameFinderFineGrainedReportListener(SequenceCodec<String> seqCodec, OutputStream outputStream)` Creates a listener that prints to a given `OutputStream`

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

    Classes in opennlp.tools.namefind that implement SequenceCodec
    Modifier and Type | Class and Description
    --- | ---
    `class` | `BilouCodec`
    `class` | `BioCodec`

    Methods in opennlp.tools.namefind that return SequenceCodec
    Modifier and Type | Method and Description
    --- | ---
    `SequenceCodec<String>` | TokenNameFinderFactory.`createSequenceCodec()`
    `protected SequenceCodec<String>` | TokenNameFinderFactory.`getSequenceCodec()`
    `SequenceCodec<String>` | TokenNameFinderModel.`getSequenceCodec()`
    `static SequenceCodec<String>` | TokenNameFinderFactory.`instantiateSequenceCodec(String sequenceCodecImplName)`

    Methods in opennlp.tools.namefind with parameters of type SequenceCodec
    Modifier and Type | Method and Description
    --- | ---
    `static TokenNameFinderFactory` | TokenNameFinderFactory.`create(String subclassName, byte[] featureGeneratorBytes, Map<String,Object> resources, SequenceCodec<String> seqCodec)`

    Constructors in opennlp.tools.namefind with parameters of type SequenceCodec
    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, boolean useOutcomes, SequenceCodec<String> seqCodec)`
    `TokenNameFinderCrossValidator(String languageCode, String type, TrainingParameters trainParams, byte[] featureGeneratorBytes, Map<String,Object> resources, SequenceCodec<String> codec, TokenNameFinderEvaluationMonitor... listeners)` Name finder cross validator
    `TokenNameFinderFactory(byte[] featureGeneratorBytes, Map<String,Object> resources, SequenceCodec<String> seqCodec)`
    `TokenNameFinderModel(String languageCode, MaxentModel nameFinderModel, int beamSize, byte[] generatorDescriptor, Map<String,Object> resources, Map<String,String> manifestInfoEntries, SequenceCodec<String> seqCodec, TokenNameFinderFactory factory)`
    `TokenNameFinderModel(String languageCode, SequenceClassificationModel<String> nameFinderModel, byte[] generatorDescriptor, Map<String,Object> resources, Map<String,String> manifestInfoEntries, SequenceCodec<String> seqCodec, TokenNameFinderFactory factory)`

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