Package edu.stanford.nlp.parser.metrics
Class TsarfatyEval
- java.lang.Object
-
- edu.stanford.nlp.parser.metrics.AbstractEval
-
- edu.stanford.nlp.parser.metrics.TsarfatyEval
-
- All Implemented Interfaces:
Eval
public class TsarfatyEval extends AbstractEval
Character level segmentation and tagging metric from (Tsarfaty, 2006). For evaluating parse trees at the character level, useEvalbwith the charLevel flag set to true. NOTE: If segmentation markers (e.g. "+") appear in the input, then they should be stripped prior to running this metric.- 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
Constructors Constructor Description TsarfatyEval(String str, boolean tags)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static voidmain(String[] args)Run the scoring metric on guess/gold input.protected Set<?>makeObjects(Tree tree)-
Methods inherited from class edu.stanford.nlp.parser.metrics.AbstractEval
display, display, evaluate, evaluate, evaluate, getEvalbF1, getEvalbF1Percent, getExact, getExactPercent, getLastF1, getNum, getSentAveF1, precision
-
-
-
-
Constructor Detail
-
TsarfatyEval
public TsarfatyEval(String str, boolean tags)
-
-
Method Detail
-
makeObjects
protected Set<?> makeObjects(Tree tree)
- Specified by:
makeObjectsin classAbstractEval
-
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-
-
-