Package opennlp.tools.postag

# Class POSTagFormatMapper.NoOp

java.lang.Object
opennlp.tools.postag.POSTagFormatMapper
opennlp.tools.postag.POSTagFormatMapper.NoOp

Enclosing class:
  `POSTagFormatMapper`

public static class POSTagFormatMapper.NoOp extends POSTagFormatMapper

- ## Nested Class Summary

  ## Nested classes/interfaces inherited from class opennlp.tools.postag.POSTagFormatMapper

  `POSTagFormatMapper.NoOp`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `convertTag(String tag)`
  Converts a given tag to the specified format.
  `String[]`
  `convertTags(List<String> tags)`
  Converts a list of tags to the specified format.
  `POSTagFormat`
  `getGuessedFormat()`

  ### Methods inherited from class opennlp.tools.postag.POSTagFormatMapper

  `guessFormat`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### convertTags

    public String[] convertTags(List<String> tags)
    Description copied from class: `POSTagFormatMapper`
    Converts a list of tags to the specified format.
    Overrides:
      `convertTags` in class `POSTagFormatMapper`
    Parameters:
      `tags` - a list of tags to be converted.
    Returns:
      an array containing the converted tags with the same order and size as the given input list. Note: A given tag might be `?` if no mapping for the given `tag` could be found.

  - ### convertTag

    public String convertTag(String tag)
    Description copied from class: `POSTagFormatMapper`
    Converts a given tag to the specified format.
    Overrides:
      `convertTag` in class `POSTagFormatMapper`
    Parameters:
      `tag` - no restrictions on this parameter.
    Returns:
      the converted tag form or `?` if no mapping for `tag` could be found.

  - ### getGuessedFormat

    public POSTagFormat getGuessedFormat()
    Overrides:
      `getGuessedFormat` in class `POSTagFormatMapper`
    Returns:
      The guessed `POSTagFormat`. Guaranteed to be not `null`.