public class ShiftReduceOptions extends Options
Options.LexOptions
Modifier and Type | Field and Description |
---|---|
boolean |
compoundUnaries |
java.lang.String |
featureFactoryClass |
baseParserWeight, coarseDistance, dcTags, directional, distance, doDep, doPCFG, forceCNF, freeDependencies, genStop, lexOptions, nodePrune, rerankerKBest, testOptions, tlpParams, trainOptions, useSmoothTagProjection, useUnigramWordSmoothing, wordFunction
Constructor and Description |
---|
ShiftReduceOptions() |
Modifier and Type | Method and Description |
---|---|
TestOptions |
newTestOptions()
Separated out so subclasses of Options can override
|
TrainOptions |
newTrainOptions()
Separated out so subclasses of Options can override
|
protected int |
setOptionFlag(java.lang.String[] args,
int i)
Set an option in this object, based on a String array in the style of
commandline flags.
|
display, langpack, readData, setOption, setOptionOrWarn, setOptions, setOptions, setOptionsOrWarn, setOptionsOrWarn, writeData
public boolean compoundUnaries
public java.lang.String featureFactoryClass
public TrainOptions newTrainOptions()
Options
newTrainOptions
in class Options
public TestOptions newTestOptions()
Options
newTestOptions
in class Options
protected int setOptionFlag(java.lang.String[] args, int i)
Options
-maxLength n
set the maximum length sentence to parse (inclusively)
-printTT
print the training trees in raw, annotated, and annotated+binarized form. Useful for debugging and other miscellany.
-printAnnotated filename
use only in conjunction with -printTT. Redirects printing of annotated training trees to filename
.
-forceTags
when the parser is tested against a set of gold standard trees, use the tagged yield, instead of just the yield, as input.
setOptionFlag
in class Options
args
- An array of options arguments, command-line style. E.g. {"-maxLength", "50"}.i
- The index in args to start at when processing an option