public class TaggingEval extends AbstractEval
TsarfatyEval.
This implementation assumes that the guess/gold input files are of equal length, and have one tree per line.
AbstractEval.CatErrorEval, AbstractEval.RuleErrorEval, AbstractEval.ScoreEval| Modifier and Type | Field and Description |
|---|---|
static Map<String,Integer> |
optionArgDefs |
curF1, num, runningAverages, str| Constructor and Description |
|---|
TaggingEval(String str) |
TaggingEval(String str,
boolean runningAverages,
Lexicon lex) |
| Modifier and Type | Method and Description |
|---|---|
void |
display(boolean verbose,
PrintWriter pw) |
void |
evaluate(Tree guess,
Tree gold,
PrintWriter pw) |
static void |
main(String[] args)
Run the scoring metric on guess/gold input.
|
protected Set<HasTag> |
makeObjects(Tree tree) |
display, evaluate, evaluate, getEvalbF1, getEvalbF1Percent, getExact, getExactPercent, getLastF1, getNum, getSentAveF1, precisionpublic TaggingEval(String str)
protected Set<HasTag> makeObjects(Tree tree)
makeObjects in class AbstractEvalpublic void evaluate(Tree guess, Tree gold, PrintWriter pw)
evaluate in interface Evalevaluate in class AbstractEvalpublic void display(boolean verbose,
PrintWriter pw)
display in interface Evaldisplay in class AbstractEvalpublic static void main(String[] args)
args -