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

- Packages that use TokenTag
  Package | Description
  --- | ---
  opennlp.tools.chunker | Package related to finding non-recursive syntactic annotation such as noun phrase chunks.
  opennlp.tools.parser | Package containing common code for performing full syntactic parsing.
  opennlp.tools.util | Package containing utility data structures and algorithms used by multiple other packages.

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

    Fields in opennlp.tools.chunker with type parameters of type TokenTag
    Modifier and Type | Field and Description
    --- | ---
    `protected SequenceClassificationModel<TokenTag>` | ChunkerME.`model` The model used to assign chunk tags to a sequence of tokens.

    Methods in opennlp.tools.chunker that return types with arguments of type TokenTag
    Modifier and Type | Method and Description
    --- | ---
    `SequenceClassificationModel<TokenTag>` | ChunkerModel.`getChunkerSequenceModel()`
    `SequenceValidator<TokenTag>` | ChunkerFactory.`getSequenceValidator()`

    Methods in opennlp.tools.chunker with parameters of type TokenTag
    Modifier and Type | Method and Description
    --- | ---
    `String[]` | DefaultChunkerContextGenerator.`getContext(int index, TokenTag[] sequence, String[] priorDecisions, Object[] additionalContext)`
    `boolean` | DefaultChunkerSequenceValidator.`validSequence(int i, TokenTag[] sequence, String[] s, String outcome)`

  - ### Uses of TokenTag in opennlp.tools.parser

    Methods in opennlp.tools.parser that return types with arguments of type TokenTag
    Modifier and Type | Method and Description
    --- | ---
    `SequenceValidator<TokenTag>` | ParserChunkerFactory.`getSequenceValidator()`

    Methods in opennlp.tools.parser with parameters of type TokenTag
    Modifier and Type | Method and Description
    --- | ---
    `String[]` | ChunkContextGenerator.`getContext(int index, TokenTag[] sequence, String[] priorDecisions, Object[] additionalContext)`
    `boolean` | ParserChunkerSequenceValidator.`validSequence(int i, TokenTag[] inputTuples, String[] outcomesSequence, String outcome)`

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

    Methods in opennlp.tools.util that return TokenTag
    Modifier and Type | Method and Description
    --- | ---
    `static TokenTag[]` | TokenTag.`create(String[] toks, String[] tags)`

    Methods in opennlp.tools.util with parameters of type TokenTag
    Modifier and Type | Method and Description
    --- | ---
    `static String[]` | TokenTag.`extractTags(TokenTag[] tuples)`
    `static String[]` | TokenTag.`extractTokens(TokenTag[] tuples)`

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