edu.stanford.nlp.parser.metrics
Class TaggingEval
java.lang.Object
edu.stanford.nlp.parser.metrics.AbstractEval
edu.stanford.nlp.parser.metrics.TaggingEval
public class TaggingEval
- extends AbstractEval
Computes POS tagging P/R/F1 from guess/gold trees. This version assumes that the yields match. For
trees with potentially different yields, use #TsarfatyEval
.
- Author:
- Dan Klein, Spence Green
Methods inherited from class edu.stanford.nlp.parser.metrics.AbstractEval |
display, display, evaluate, evaluate, getEvalbF1, getEvalbF1Percent, getExact, getExactPercent, getLastF1, getNum, getSentAveF1, precision |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaggingEval
public TaggingEval(java.lang.String str)
TaggingEval
public TaggingEval(java.lang.String str,
boolean runningAverages,
Lexicon lex)
TaggingEval
public TaggingEval(java.lang.String str,
boolean runningAverages,
Lexicon lex,
boolean useTag)
- Parameters:
useTag
- If true, use a special way of getting
the tags out of a dependency tree, when the usual
Tree code doesn't work.
makeObjects
protected java.util.Set<?> makeObjects(Tree tree)
- Specified by:
makeObjects
in class AbstractEval
evaluate
public void evaluate(Tree guess,
Tree gold,
java.io.PrintWriter pw)
- Overrides:
evaluate
in class AbstractEval
Stanford NLP Group