edu.stanford.nlp.parser.lexparser
Class LabeledConstituentEval
java.lang.Object
edu.stanford.nlp.parser.lexparser.AbstractEval
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
Fields inherited from class edu.stanford.nlp.parser.lexparser.AbstractEval |
str |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LabeledConstituentEval
public LabeledConstituentEval(String str,
TreebankLanguagePack tlp)
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