public class GaleP4LexMapper extends java.lang.Object implements Mapper
Constructor and Description |
---|
GaleP4LexMapper() |
Modifier and Type | Method and Description |
---|---|
boolean |
canChangeEncoding(java.lang.String parent,
java.lang.String element)
Indicates whether
child can be converted to another encoding. |
java.lang.String |
map(java.lang.String parent,
java.lang.String element)
Maps from one string representation to another.
|
void |
setup(java.io.File path,
java.lang.String... options)
Perform initialization prior to the first call to
map . |
public java.lang.String map(java.lang.String parent, java.lang.String element)
Mapper
public void setup(java.io.File path, java.lang.String... options)
Mapper
map
.public boolean canChangeEncoding(java.lang.String parent, java.lang.String element)
Mapper
child
can be converted to another encoding. In the ATB, for example,
if a punctuation character is labeled with the "PUNC" POS tag, then that character should not
be converted from Buckwalter to UTF-8.canChangeEncoding
in interface Mapper
parent
- element
's context (e.g., the parent node in a parse tree)element
- The string to be transformed.