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 java.util.Map<java.lang.String,java.lang.Integer> |
optionArgDefs |
curF1, num, runningAverages, str
Constructor and Description |
---|
TaggingEval(java.lang.String str) |
TaggingEval(java.lang.String str,
boolean runningAverages,
Lexicon lex) |
Modifier and Type | Method and Description |
---|---|
void |
display(boolean verbose,
java.io.PrintWriter pw) |
void |
evaluate(Tree guess,
Tree gold,
java.io.PrintWriter pw) |
static void |
main(java.lang.String[] args)
Run the scoring metric on guess/gold input.
|
protected java.util.Set<HasTag> |
makeObjects(Tree tree) |
display, evaluate, evaluate, getEvalbF1, getEvalbF1Percent, getExact, getExactPercent, getLastF1, getNum, getSentAveF1, precision
public static final java.util.Map<java.lang.String,java.lang.Integer> optionArgDefs
public TaggingEval(java.lang.String str)
public TaggingEval(java.lang.String str, boolean runningAverages, Lexicon lex)
protected java.util.Set<HasTag> makeObjects(Tree tree)
makeObjects
in class AbstractEval
public void evaluate(Tree guess, Tree gold, java.io.PrintWriter pw)
evaluate
in interface Eval
evaluate
in class AbstractEval
public void display(boolean verbose, java.io.PrintWriter pw)
display
in interface Eval
display
in class AbstractEval
public static void main(java.lang.String[] args)
args
-