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, toStringpublic java.lang.String map(java.lang.String posTag,
java.lang.String terminal)
map in interface Mappermap in class LDCPosMapperposTag - The preterminal tagterminal - The optional terminal, which may be used for contextpublic void setup(java.io.File path,
java.lang.String... options)
Mappermap.setup in interface Mappersetup in class LDCPosMapperpath - 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.