edu.stanford.nlp.parser.oldparser
Class ParseEval

java.lang.Object
  |
  +--edu.stanford.nlp.parser.oldparser.ParseEval

public final class ParseEval
extends Object

ParseEval: Class for evaluating parses


Constructor Summary
ParseEval()
           
 
Method Summary
 String bestLabel(String label, String direction)
           
static double calcPrecision(Set testConstituents, Set correctConstituents)
           
static double calcRecall(Set testConstituents, Set correctConstituents)
          Note: this routine might return NaN, if called on sets corresponding to sentences with no nontrivial constituents -- e.g., a one word sentence.
 void clear()
           
 void display(boolean verbose)
           
 void evaluate(Tree predictedTree, Tree actualTree)
           
 Statistics getStatistics()
           
 void precision(Tree predictedTree, Tree actualTree, boolean isPrecision)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParseEval

public ParseEval()
Method Detail

getStatistics

public Statistics getStatistics()

evaluate

public void evaluate(Tree predictedTree,
                     Tree actualTree)

precision

public void precision(Tree predictedTree,
                      Tree actualTree,
                      boolean isPrecision)

bestLabel

public String bestLabel(String label,
                        String direction)

clear

public void clear()

display

public void display(boolean verbose)

calcRecall

public static double calcRecall(Set testConstituents,
                                Set correctConstituents)
Note: this routine might return NaN, if called on sets corresponding to sentences with no nontrivial constituents -- e.g., a one word sentence.


calcPrecision

public static double calcPrecision(Set testConstituents,
                                   Set correctConstituents)


Stanford NLP Group