|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--opennlp.grok.preprocess.namefind.NameFinderME
A Name Finder that uses maximum entropy to determine if a word is a name or not a name.
| Field Summary | |
protected static opennlp.maxent.ContextGenerator |
cg
The feature context generator. |
protected opennlp.maxent.MaxentModel |
model
The maximum entropy model to use to evaluate contexts. |
| Constructor Summary | |
protected |
NameFinderME()
|
|
NameFinderME(opennlp.maxent.MaxentModel mod)
|
| Method Summary | |
opennlp.maxent.EventCollector |
getEventCollector(java.io.Reader r)
|
java.lang.String |
getNegativeOutcome()
|
protected boolean |
isName(java.lang.String[] l,
int pos)
|
void |
localEval(opennlp.maxent.MaxentModel model,
java.io.Reader r,
opennlp.maxent.Evalable e,
boolean verbose)
|
static void |
main(java.lang.String[] args)
Example training call: |
void |
process(opennlp.common.xml.NLPDocument doc)
Find the names in a document. |
java.util.Set |
requires()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected opennlp.maxent.MaxentModel model
protected static final opennlp.maxent.ContextGenerator cg
| Constructor Detail |
protected NameFinderME()
public NameFinderME(opennlp.maxent.MaxentModel mod)
| Method Detail |
public java.lang.String getNegativeOutcome()
getNegativeOutcome in interface opennlp.maxent.Evalablepublic opennlp.maxent.EventCollector getEventCollector(java.io.Reader r)
getEventCollector in interface opennlp.maxent.Evalable
public void localEval(opennlp.maxent.MaxentModel model,
java.io.Reader r,
opennlp.maxent.Evalable e,
boolean verbose)
localEval in interface opennlp.maxent.Evalable
protected boolean isName(java.lang.String[] l,
int pos)
public void process(opennlp.common.xml.NLPDocument doc)
process in interface opennlp.common.preprocess.Pipelinkpublic java.util.Set requires()
requires in interface opennlp.common.preprocess.Pipelink
public static void main(java.lang.String[] args)
throws java.io.IOException
java -mx512m opennlp.grok.preprocess.namefind.NameFinderME -t -d ./ -c 5 -s NewEngNF5.bin.gz nameTrain.data
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||