edu.stanford.nlp.parser.metrics
Class TaggingEval

java.lang.Object
  extended by edu.stanford.nlp.parser.metrics.AbstractEval
      extended by 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:
Spence Green

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.stanford.nlp.parser.metrics.AbstractEval
AbstractEval.CatErrorEval, AbstractEval.RuleErrorEval, AbstractEval.ScoreEval
 
Field Summary
 
Fields inherited from class edu.stanford.nlp.parser.metrics.AbstractEval
curF1, num, runningAverages, str
 
Constructor Summary
TaggingEval(String str)
           
TaggingEval(String str, boolean runningAverages, Lexicon lex)
           
 
Method Summary
 void display(boolean verbose, PrintWriter pw)
           
 void evaluate(Tree guess, Tree gold, PrintWriter pw)
           
static void main(String[] args)
          Run the scoring metric on guess/gold input.
protected  Set<HasTag> makeObjects(Tree tree)
           
 
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
 

Constructor Detail

TaggingEval

public TaggingEval(String str)

TaggingEval

public TaggingEval(String str,
                   boolean runningAverages,
                   Lexicon lex)
Method Detail

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