Example usage for edu.stanford.nlp.parser.lexparser Debinarizer Debinarizer

List of usage examples for edu.stanford.nlp.parser.lexparser Debinarizer Debinarizer

Introduction

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

Prototype

public Debinarizer(boolean forceCNF) 

Source Link

Usage

From source file:conditionalCFG.ConditionalCFGParser.java

License:Open Source License

public Tree scoreNonBinarizedTree(Tree tree) {
    TreeAnnotatorAndBinarizer binarizer = new TreeAnnotatorAndBinarizer(op.tlpParams, op.forceCNF,
            !op.trainOptions.outsideFactor(), true, op);
    tree = binarizer.transformTree(tree);
    scoreBinarizedTree(tree, 0);//from  w ww . j  av a2  s. co m
    return op.tlpParams.subcategoryStripper().transformTree(new Debinarizer(op.forceCNF).transformTree(tree));
    //    return debinarizer.transformTree(t);
}