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
.
This implementation assumes that the guess/gold input files are of equal length, and have one tree per
line.
- Author:
- Spence Green
Methods inherited from class edu.stanford.nlp.parser.metrics.AbstractEval |
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 |
optionArgDefs
public static final Map<String,Integer> optionArgDefs
TaggingEval
public TaggingEval(String str)
TaggingEval
public TaggingEval(String str,
boolean runningAverages,
Lexicon lex)
makeObjects
protected Set<HasTag> makeObjects(Tree tree)
- Specified by:
makeObjects
in class AbstractEval
evaluate
public void evaluate(Tree guess,
Tree gold,
PrintWriter pw)
- Overrides:
evaluate
in class AbstractEval
display
public void display(boolean verbose,
PrintWriter pw)
- Overrides:
display
in class AbstractEval
main
public static void main(String[] args)
- Run the scoring metric on guess/gold input. This method performs "Collinization."
The default language is English.
- Parameters:
args
-
Stanford NLP Group