TagDictionary (Apache OpenNLP :: API 3.0.0-M4 API)
Description: declaration: package: opennlp.tools.postag, interface: TagDictionary

Package opennlp.tools.postag

# Interface TagDictionary

All Known Subinterfaces:
  `MutableTagDictionary`

public interface TagDictionary
Interface to determine which tags are valid for a particular word based on a tag dictionary.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String[]`
  `getTags(String word)`
  Retrieves a list of valid tags for the specified `word`.
  `boolean`
  `isCaseSensitive()`
  Whether the dictionary is case-sensitive or not.

- ## Method Details

  - ### getTags

    String[] getTags(String word)
    Retrieves a list of valid tags for the specified `word`.
    Parameters:
      `word` - The word.
    Returns:
      An array of valid tags for the specified `word` or `null` if no information is available for that word.

  - ### isCaseSensitive

    boolean isCaseSensitive()
    Whether the dictionary is case-sensitive or not.
    Returns:
      `true` if the dictionary is case-sensitive, else `false`.