edu.stanford.nlp.parser.lexparser
Class LabeledConstituentEval

java.lang.Object
  extended by edu.stanford.nlp.parser.lexparser.AbstractEval
      extended by edu.stanford.nlp.parser.lexparser.LabeledConstituentEval
Direct Known Subclasses:
LabeledConstituentEval.CBEval

public class LabeledConstituentEval
extends AbstractEval

Provides for Precision/Recall/F1 evaluation of labeled constituents.

Author:
Dan Klein

Nested Class Summary
static class LabeledConstituentEval.CBEval
           
 
Nested classes/interfaces inherited from class edu.stanford.nlp.parser.lexparser.AbstractEval
AbstractEval.CatErrorEval, AbstractEval.DependencyEval, AbstractEval.RuleErrorEval, AbstractEval.ScoreEval, AbstractEval.TaggingEval
 
Field Summary
 
Fields inherited from class edu.stanford.nlp.parser.lexparser.AbstractEval
num, runningAverages, str
 
Constructor Summary
LabeledConstituentEval(String str, boolean runningAverages, TreebankLanguagePack tlp)
           
 
Method Summary
 void evaluate(Tree guess, Tree gold, PrintWriter pw)
           
static void main(String[] args)
           
protected  Tree stripLeaves(Tree tree)
           
 
Methods inherited from class edu.stanford.nlp.parser.lexparser.AbstractEval
display, display, evaluate, getEvalbF1, getEvalbF1Percent, getExact, getExactPercent, getNum, getSentAveF1, precision
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabeledConstituentEval

public LabeledConstituentEval(String str,
                              boolean runningAverages,
                              TreebankLanguagePack tlp)
Method Detail

stripLeaves

protected Tree stripLeaves(Tree tree)

evaluate

public void evaluate(Tree guess,
                     Tree gold,
                     PrintWriter pw)
Overrides:
evaluate in class AbstractEval

main

public static void main(String[] args)


Stanford NLP Group