|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Mapper
Generic interface for mapping one string to another given some contextual evidence.
Method Summary | |
---|---|
boolean |
canChangeEncoding(java.lang.String parent,
java.lang.String child)
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)
Perform initialization prior to the first call to map . |
Method Detail |
---|
void setup(java.io.File path)
map
.
path
- A filename for data on disk used during mappingjava.lang.String map(java.lang.String parent, java.lang.String element)
parent
- element
's context (e.g., the parent node in a parse tree)element
- The string to be transformed.
boolean canChangeEncoding(java.lang.String parent, java.lang.String child)
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.
parent
- element
's context (e.g., the parent node in a parse tree)child
- The string to be transformed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |