public abstract class AbstractPartOfSpeechTagsMapper extends IsCloseableObject implements PartOfSpeechTagsMapper, IsCloseable
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
destinationTagSeparator |
protected UTF8Properties |
partOfSpeechTagsMap
Part of speech tags map.
|
protected java.lang.String |
sourceTagSeparator
Character separating multiple part of speech tags.
|
protected java.lang.String |
unknownTag
Value to return for Unknown source tag.
|
Constructor and Description |
---|
AbstractPartOfSpeechTagsMapper() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getTag(java.lang.String spelling,
java.lang.String sourceTag)
Get destination part of speech tag for a source part of speech tag.
|
java.lang.String |
toString()
Return string form of tag set.
|
close
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
close
protected UTF8Properties partOfSpeechTagsMap
Key is source part of speech tag, value is destination part of speech tag.
protected java.lang.String sourceTagSeparator
protected java.lang.String destinationTagSeparator
protected java.lang.String unknownTag
public java.lang.String getTag(java.lang.String spelling, java.lang.String sourceTag)
getTag
in interface PartOfSpeechTagsMapper
spelling
- Spelling.sourceTag
- Source tag name.If the source tag contains one or more tag separators, the result will contain the respective mapped destination tags separated by tag separators.
public java.lang.String toString()
toString
in class java.lang.Object