Package edu.stanford.nlp.parser.metrics
Class EvalbByCat
- java.lang.Object
-
- edu.stanford.nlp.parser.metrics.AbstractEval
-
- edu.stanford.nlp.parser.metrics.EvalbByCat
-
- All Implemented Interfaces:
Eval
public class EvalbByCat extends AbstractEval
Computes labeled precision and recall (evalb) at the constituent category level.- Author:
- Roger Levy, 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
Constructors Constructor Description EvalbByCat(String str, boolean runningAverages)EvalbByCat(String str, boolean runningAverages, String labelRegex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddisplay(boolean verbose, PrintWriter pw)voidevaluate(Tree guess, Tree gold, PrintWriter pw)protected Set<Constituent>makeObjects(Tree tree)-
Methods inherited from class edu.stanford.nlp.parser.metrics.AbstractEval
display, evaluate, evaluate, getEvalbF1, getEvalbF1Percent, getExact, getExactPercent, getLastF1, getNum, getSentAveF1, precision
-
-
-
-
Method Detail
-
makeObjects
protected Set<Constituent> makeObjects(Tree tree)
- Specified by:
makeObjectsin classAbstractEval
-
evaluate
public void evaluate(Tree guess, Tree gold, PrintWriter pw)
- Specified by:
evaluatein interfaceEval- Overrides:
evaluatein classAbstractEval
-
display
public void display(boolean verbose, PrintWriter pw)- Specified by:
displayin interfaceEval- Overrides:
displayin classAbstractEval
-
-