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 |
|---|---|
String |
map(String posTag,
String terminal)
First map to the LDC short tags.
|
void |
setup(File path,
String... options)
Perform initialization prior to the first call to
map. |
canChangeEncoding, main, toStringpublic String map(String posTag, String terminal)
map in interface Mappermap in class LDCPosMapperposTag - The preterminal tagterminal - The optional terminal, which may be used for contextpublic void setup(File path, 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.