List of usage examples for edu.stanford.nlp.parser.lexparser TreebankLangParserParams headFinder
HeadFinder headFinder();
From source file:reck.parser.lexparser.RECKLexicalizedParser.java
License:Open Source License
/** Return a TreePrint for formatting parsed output trees. * @return A TreePrint for formatting parsed output trees. *//* w w w.j av a 2 s . c o m*/ public static RECKTreePrint getRECKTreePrint(Options op) { TreebankLangParserParams tlpParams = op.tlpParams; TreebankLanguagePack tlp = tlpParams.treebankLanguagePack(); /** * Determines format of output trees: choose among penn, oneline */ String outputFormat = "typedDependencies"; String outputFormatOptions = ""; return new RECKTreePrint(outputFormat, outputFormatOptions, tlp, tlpParams.headFinder()); }