| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.parser.lexparser.Test
public class Test
Options to the parser which affect performance only at testing (parsing) time.
| Nested Class Summary | |
|---|---|
| static class | Test.Constraint | 
| Field Summary | |
|---|---|
| static List<Test.Constraint> | constraintsWhen you want to force the parse to parse a particular subsequence into a particular state. | 
| static double | depWeightWeighting on dependency log probs | 
| static boolean | doRecovery | 
| static boolean | evalbWrite EvalB-readable output files. | 
| static boolean | exhaustiveTest | 
| static boolean | forceTagsParse using only tags given from correct answer or the POS tagger | 
| static boolean | increasingLengthParse trees in test treebank in order of increasing length. | 
| static boolean | iterativeCKYIf true, use faster iterative deepening CKY algorithm. | 
| static boolean | lengthNormalizationTurns on normalizing scores for sentence length. | 
| static int | MAX_ITEMSThe maximum number of edges and hooks combined that the factored parser will build before giving up. | 
| static int | maxLengthThe maximum sentence length (including punctuation, etc.) to parse. | 
| static int | maxSpanForTagsThe largest span to consider for word-hood. | 
| static boolean | noRecoveryTaggingIf false, then failure of the PCFG factor to parse a sentence will trigger parse recovery mode, in which more flexible tagging is allowed. | 
| static String | outputFormatDetermines format of output trees: choose among penn, oneline | 
| static String | outputFormatOptions | 
| static boolean | pcfgThreshold | 
| static double | pcfgThresholdValue | 
| static boolean | preTagTag the sentences first, then parse given those (coarse) tags. | 
| static boolean | printAllBestParsesPrint out all best PCFG parses. | 
| static boolean | prunePunc | 
| static double | unseenSmoothThe amount of smoothing put in (as an m-estimate) for unknown words. | 
| static boolean | useN5If true, the n^4 "speed-up" is not used. | 
| static boolean | verbosePrint a lot of extra output as you parse. | 
| static boolean | writeOutputFilesIf true, write files parsed to a new file with the same name except for an added ".stp" extension. | 
| Constructor Summary | |
|---|---|
| Test() | |
| Method Summary | |
|---|---|
| static void | display() | 
| static TreePrint | treePrint(TreebankLangParserParams tlpParams)Determines method for print trees on output. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static boolean noRecoveryTagging
public static boolean doRecovery
public static boolean useN5
public static boolean iterativeCKY
public static int maxLength
public static int MAX_ITEMS
public static double unseenSmooth
public static boolean increasingLength
public static boolean preTag
public static boolean forceTags
public static boolean evalb
public static boolean verbose
public static final boolean exhaustiveTest
public static final boolean pcfgThreshold
public static final double pcfgThresholdValue
public static boolean printAllBestParses
public static double depWeight
public static boolean prunePunc
public static String outputFormat
public static String outputFormatOptions
public static boolean writeOutputFiles
public static int maxSpanForTags
public static boolean lengthNormalization
public static List<Test.Constraint> constraints
| Constructor Detail | 
|---|
public Test()
| Method Detail | 
|---|
public static TreePrint treePrint(TreebankLangParserParams tlpParams)
public static void display()
| 
 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||