|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.parser.lexparser.Options
public class Options
Options to the parser which MUST be the SAME at both training and testing (parsing) time in order for the parser to work properly.
Nested Class Summary | |
---|---|
static class |
Options.LexOptions
|
Field Summary | |
---|---|
boolean |
coarseDistance
Use coarser distance (4 bins) in dependency calculations |
boolean |
dcTags
"double count" tags rewrites as word in PCFG and Dep parser. |
boolean |
directional
Whether dependency grammar considers left/right direction. |
boolean |
distance
Use distance bins in the dependency calculations |
boolean |
doDep
Do a dependency parse of the sentence. |
boolean |
doPCFG
Do a PCFG parse of the sentence. |
boolean |
flexiTag
|
boolean |
forceCNF
Forces parsing with strictly CNF grammar -- unary chains are converted to XP&YP symbols and back |
boolean |
freeDependencies
if true, any child can be the head (seems rather bad!) |
boolean |
genStop
|
Options.LexOptions |
lexOptions
|
boolean |
nodePrune
If true, inside the factored parser, remove any node from the final chosen tree which improves the PCFG score. |
int |
numStates
|
int |
numTags
|
int |
numWords
|
TreebankLangParserParams |
tlpParams
The treebank-specific parser parameters to use. |
Constructor Summary | |
---|---|
Options()
|
|
Options(TreebankLangParserParams tlpParams)
|
Method Summary | |
---|---|
void |
display()
|
TreebankLanguagePack |
langpack()
returns the treebank language pack for the treebank the parser is trained on. |
void |
readData(BufferedReader in)
Populates data in this Options from the character stream given by the Reader r. |
void |
writeData(Writer w)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int numWords
public int numTags
public int numStates
public Options.LexOptions lexOptions
public TreebankLangParserParams tlpParams
public boolean forceCNF
public boolean doPCFG
public boolean doDep
public boolean freeDependencies
public boolean directional
public boolean genStop
public boolean distance
public boolean coarseDistance
public boolean flexiTag
public boolean dcTags
public boolean nodePrune
Constructor Detail |
---|
public Options()
public Options(TreebankLangParserParams tlpParams)
Method Detail |
---|
public TreebankLanguagePack langpack()
public void display()
public void writeData(Writer w) throws IOException
IOException
public void readData(BufferedReader in) throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |