|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--opennlp.grok.preprocess.mwe.VariableMWEModelReader
A reads a model holding the Fixed Lexicon Multi-Word Expressions.
The model should consist of line containing the MWE which should be expressions which do not change in any way in English (e.g. "ad hoc").
Anything after a '#' character is a comment. Lines are trimmed of whitespace at their beginning and end.
Field Summary | |
static int |
ADJECTIVE
|
static int |
ADVERB
|
static int |
NOUN
|
static int |
VERB
|
Constructor Summary | |
VariableMWEModelReader(java.io.Reader reader,
int type)
Constructor for the MWEModelReader object |
Method Summary | |
void |
addData(java.io.Reader reader,
int type)
Add more data to the model |
MWEModel |
getModel()
Gets the Model which the MWEModelReader has read from store. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int NOUN
public static final int ADVERB
public static final int ADJECTIVE
public static final int VERB
Constructor Detail |
public VariableMWEModelReader(java.io.Reader reader, int type)
reader
- Source of the model data.Method Detail |
public void addData(java.io.Reader reader, int type)
reader
- Source of the model data.public MWEModel getModel()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |