## Uses of Class
opennlp.tools.util.Sequence

- Packages that use Sequence
  Package | Description
  --- | ---
  opennlp.tools.chunker | Package related to finding non-recursive syntactic annotation such as noun phrase chunks.
  opennlp.tools.lemmatizer | Package related with the lemmatizer tool
  opennlp.tools.ml |
  opennlp.tools.ml.model |
  opennlp.tools.postag | Package related to part-of-speech tagging.
  opennlp.tools.util | Package containing utility data structures and algorithms used by multiple other packages.

- - ### Uses of Sequence in opennlp.tools.chunker

    Methods in opennlp.tools.chunker that return Sequence
    Modifier and Type | Method and Description
    --- | ---
    `Sequence[]` | ChunkerME.`topKSequences(String[] sentence, String[] tags)`
    `Sequence[]` | Chunker.`topKSequences(String[] sentence, String[] tags)` Returns the top k chunk sequences for the specified sentence with the specified pos-tags
    `Sequence[]` | ChunkerME.`topKSequences(String[] sentence, String[] tags, double minSequenceScore)`
    `Sequence[]` | Chunker.`topKSequences(String[] sentence, String[] tags, double minSequenceScore)` Returns the top k chunk sequences for the specified sentence with the specified pos-tags

  - ### Uses of Sequence in opennlp.tools.lemmatizer

    Methods in opennlp.tools.lemmatizer that return Sequence
    Modifier and Type | Method and Description
    --- | ---
    `Sequence[]` | LemmatizerME.`topKLemmaClasses(String[] sentence, String[] tags)`
    `Sequence[]` | LemmatizerME.`topKLemmaClasses(String[] sentence, String[] tags, double minSequenceScore)`
    `Sequence[]` | LemmatizerME.`topKSequences(String[] sentence, String[] tags)`
    `Sequence[]` | LemmatizerME.`topKSequences(String[] sentence, String[] tags, double minSequenceScore)`

  - ### Uses of Sequence in opennlp.tools.ml

    Methods in opennlp.tools.ml that return Sequence
    Modifier and Type | Method and Description
    --- | ---
    `Sequence` | BeamSearch.`bestSequence(T[] sequence, Object[] additionalContext, BeamSearchContextGenerator<T> cg, SequenceValidator<T> validator)`
    `Sequence[]` | BeamSearch.`bestSequences(int numSequences, T[] sequence, Object[] additionalContext, BeamSearchContextGenerator<T> cg, SequenceValidator<T> validator)`
    `Sequence[]` | BeamSearch.`bestSequences(int numSequences, T[] sequence, Object[] additionalContext, double minSequenceScore, BeamSearchContextGenerator<T> cg, SequenceValidator<T> validator)` Returns the best sequence of outcomes based on model for this object.

  - ### Uses of Sequence in opennlp.tools.ml.model

    Methods in opennlp.tools.ml.model that return Sequence
    Modifier and Type | Method and Description
    --- | ---
    `Sequence` | SequenceClassificationModel.`bestSequence(T[] sequence, Object[] additionalContext, BeamSearchContextGenerator<T> cg, SequenceValidator<T> validator)` Finds the sequence with the highest probability.
    `Sequence[]` | SequenceClassificationModel.`bestSequences(int numSequences, T[] sequence, Object[] additionalContext, BeamSearchContextGenerator<T> cg, SequenceValidator<T> validator)` Finds the n most probable sequences.
    `Sequence[]` | SequenceClassificationModel.`bestSequences(int numSequences, T[] sequence, Object[] additionalContext, double minSequenceScore, BeamSearchContextGenerator<T> cg, SequenceValidator<T> validator)` Finds the n most probable sequences.

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

    Methods in opennlp.tools.postag that return Sequence
    Modifier and Type | Method and Description
    --- | ---
    `Sequence[]` | POSTagger.`topKSequences(String[] sentence)`
    `Sequence[]` | POSTaggerME.`topKSequences(String[] sentence)`
    `Sequence[]` | POSTagger.`topKSequences(String[] sentence, Object[] additionaContext)`
    `Sequence[]` | POSTaggerME.`topKSequences(String[] sentence, Object[] additionaContext)`

  - ### Uses of Sequence in opennlp.tools.util

    Methods in opennlp.tools.util with parameters of type Sequence
    Modifier and Type | Method and Description
    --- | ---
    `int` | Sequence.`compareTo(Sequence s)`

    Constructors in opennlp.tools.util with parameters of type Sequence
    Constructor and Description
    `Sequence(Sequence s)`
    `Sequence(Sequence s, String outcome, double p)`

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