Example usage for edu.stanford.nlp.parser.lexparser TreebankLangParserParams headFinder

List of usage examples for edu.stanford.nlp.parser.lexparser TreebankLangParserParams headFinder

Introduction

In this page you can find the example usage for edu.stanford.nlp.parser.lexparser TreebankLangParserParams headFinder.

Prototype

HeadFinder headFinder();

Source Link

Usage

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());
}