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:POSTagFormatMapperConverts a list of tags to the specified format.- Overrides:
convertTagsin 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 giventagcould be found.
-
convertTag
Description copied from class:POSTagFormatMapperConverts a given tag to the specified format.- Overrides:
convertTagin classPOSTagFormatMapper- Parameters:
tag- no restrictions on this parameter.- Returns:
- the converted tag form or
?if no mapping fortagcould be found.
-
getGuessedFormat
- Overrides:
getGuessedFormatin classPOSTagFormatMapper- Returns:
- The guessed
POSTagFormat. Guaranteed to be notnull.
-