edu.stanford.nlp.parser.lexparser
Class AbstractEval

java.lang.Object
  extended by edu.stanford.nlp.parser.lexparser.AbstractEval
Direct Known Subclasses:
AbstractEval.CatErrorEval, AbstractEval.DependencyEval, AbstractEval.RuleErrorEval, AbstractEval.TaggingEval, LabeledConstituentEval

public abstract class AbstractEval
extends Object

A framework for Set-based precision/recall/F1 evaluation.

Author:
Dan Klein

Nested Class Summary
static class AbstractEval.CatErrorEval
          This class counts which categories are over and underproposed in trees.
static class AbstractEval.DependencyEval
          CDM Mar 2004: This should be rewritten so as to root a word at an index position; otherwise it doesn't work correctly when you get two identical dependents (like with "I went to Greece to see the ruins").
static class AbstractEval.RuleErrorEval
           
static class AbstractEval.TaggingEval
           
 
Field Summary
protected  String str
           
 
Constructor Summary
AbstractEval()
           
 
Method Summary
 void display(boolean verbose)
           
 void display(boolean verbose, PrintWriter pw)
           
 void evaluate(Tree guess, Tree gold)
           
 void evaluate(Tree guess, Tree gold, PrintWriter pw)
           
 double getEvalbF1()
           
 double getSentAveF1()
           
protected  double precision(Set s1, Set s2)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

str

protected String str
Constructor Detail

AbstractEval

public AbstractEval()
Method Detail

getSentAveF1

public double getSentAveF1()

getEvalbF1

public double getEvalbF1()

precision

protected double precision(Set s1,
                           Set s2)

evaluate

public void evaluate(Tree guess,
                     Tree gold)

evaluate

public void evaluate(Tree guess,
                     Tree gold,
                     PrintWriter pw)

display

public void display(boolean verbose)

display

public void display(boolean verbose,
                    PrintWriter pw)


Stanford NLP Group