public class UniversalPOSMapper extends LDCPosMapper
Includes optional support for adding morphological annotations via the setup method.
endOfTagMap, mapping, numExpectedTokens, startOfTagMap, tagMap, tagsToEscape
Constructor and Description |
---|
UniversalPOSMapper() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
map(java.lang.String posTag,
java.lang.String terminal)
First map to the LDC short tags.
|
void |
setup(java.io.File path,
java.lang.String... options)
Perform initialization prior to the first call to
map . |
canChangeEncoding, main, toString
public java.lang.String map(java.lang.String posTag, java.lang.String terminal)
map
in interface Mapper
map
in class LDCPosMapper
posTag
- The preterminal tagterminal
- The optional terminal, which may be used for contextpublic void setup(java.io.File path, java.lang.String... options)
Mapper
map
.setup
in interface Mapper
setup
in class LDCPosMapper
path
- A filename for data on disk used during mappingoptions
- Variable length array of strings for options. Option format may
vary for the particular class instance.