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
  • 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.