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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ParseEval
public ParseEval()
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