|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.tools.parser.AbstractBottomUpParser
opennlp.tools.parser.chunking.Parser
public class Parser
Class for a shift reduce style parser based on Adwait Ratnaparkhi's 1998 thesis.
| Field Summary |
|---|
| Fields inherited from class opennlp.tools.parser.AbstractBottomUpParser |
|---|
COMPLETE, CONT, defaultAdvancePercentage, defaultBeamSize, INC_NODE, INCOMPLETE, OTHER, START, TOK_NODE, TOP_NODE, ZERO |
| Constructor Summary | |
|---|---|
Parser(MaxentModel buildModel,
MaxentModel checkModel,
POSTagger tagger,
Chunker chunker,
HeadRules headRules)
Deprecated. |
|
Parser(MaxentModel buildModel,
MaxentModel checkModel,
POSTagger tagger,
Chunker chunker,
HeadRules headRules,
int beamSize,
double advancePercentage)
Deprecated. |
|
Parser(ParserModel model)
|
|
Parser(ParserModel model,
int beamSize,
double advancePercentage)
|
|
| Method Summary | |
|---|---|
static void |
main(java.lang.String[] args)
Deprecated. |
static AbstractModel |
train(EventStream es,
int iterations,
int cut)
Deprecated. |
static ParserModel |
train(java.lang.String languageCode,
ObjectStream<Parse> parseSamples,
HeadRules rules,
int iterations,
int cut)
|
| Methods inherited from class opennlp.tools.parser.AbstractBottomUpParser |
|---|
buildDictionary, collapsePunctuation, parse, parse, setErrorReporting, setParents |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Parser(ParserModel model,
int beamSize,
double advancePercentage)
public Parser(ParserModel model)
@Deprecated
public Parser(MaxentModel buildModel,
MaxentModel checkModel,
POSTagger tagger,
Chunker chunker,
HeadRules headRules)
buildModel - The model to assign constituent labels.checkModel - The model to determine a constituent is complete.tagger - The model to assign pos-tags.chunker - The model to assign flat constituent labels.headRules - The head rules for head word perculation.
@Deprecated
public Parser(MaxentModel buildModel,
MaxentModel checkModel,
POSTagger tagger,
Chunker chunker,
HeadRules headRules,
int beamSize,
double advancePercentage)
buildModel - The model to assign constituent labels.checkModel - The model to determine a constituent is complete.tagger - The model to assign pos-tags.chunker - The model to assign flat constituent labels.headRules - The head rules for head word perculation.beamSize - The number of different parses kept during parsing.advancePercentage - The minimal amount of probability mass which advanced outcomes must represent.
Only outcomes which contribute to the top "advancePercentage" will be explored.| Method Detail |
|---|
@Deprecated
public static AbstractModel train(EventStream es,
int iterations,
int cut)
throws java.io.IOException
java.io.IOException
public static ParserModel train(java.lang.String languageCode,
ObjectStream<Parse> parseSamples,
HeadRules rules,
int iterations,
int cut)
throws java.io.IOException
java.io.IOException
@Deprecated
public static void main(java.lang.String[] args)
throws java.io.IOException,
InvalidFormatException
java.io.IOException
InvalidFormatException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||