Package opennlp.tools.postag
Class POSTagFormatMapper.NoOp
java.lang.Object
opennlp.tools.postag.POSTagFormatMapper
opennlp.tools.postag.POSTagFormatMapper.NoOp
- Enclosing class:
POSTagFormatMapper
-
Nested Class Summary
Nested classes/interfaces inherited from class opennlp.tools.postag.POSTagFormatMapper
POSTagFormatMapper.NoOp
-
Method Summary
Modifier and TypeMethodDescriptionconvertTag
(String tag) Converts a given tag to the specified format.String[]
convertTags
(List<String> tags) Converts a list of tags to the specified format.Methods inherited from class opennlp.tools.postag.POSTagFormatMapper
guessFormat
-
Method Details
-
convertTags
Description copied from class:POSTagFormatMapper
Converts a list of tags to the specified format.- Overrides:
convertTags
in classPOSTagFormatMapper
- 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 giventag
could be found.
-
convertTag
Description copied from class:POSTagFormatMapper
Converts a given tag to the specified format.- Overrides:
convertTag
in classPOSTagFormatMapper
- Parameters:
tag
- no restrictions on this parameter.- Returns:
- the converted tag form or
?
if no mapping fortag
could be found.
-
getGuessedFormat
- Overrides:
getGuessedFormat
in classPOSTagFormatMapper
- Returns:
- The guessed
POSTagFormat
. Guaranteed to be notnull
.
-