public class UnlabeledAttachmentEval extends AbstractEval
If Collinization has not been performed prior to evaluation, then it is customary (for reporting results) to pass in a filter that rejects dependencies with punctuation dependents.
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 |
---|
UnlabeledAttachmentEval(java.lang.String str,
boolean runningAverages,
HeadFinder headFinder) |
UnlabeledAttachmentEval(java.lang.String str,
boolean runningAverages,
HeadFinder headFinder,
java.util.function.Predicate<java.lang.String> punctRejectFilter) |
Modifier and Type | Method and Description |
---|---|
void |
evaluate(Tree guess,
Tree gold,
java.io.PrintWriter pw) |
static void |
main(java.lang.String[] args)
Run the Evalb scoring metric on guess/gold input.
|
protected java.util.Set<?> |
makeObjects(Tree tree)
Build the set of dependencies for evaluation.
|
display, 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 UnlabeledAttachmentEval(java.lang.String str, boolean runningAverages, HeadFinder headFinder)
headFinder
- If a headFinder is provided, then head percolation will be done
for trees. Otherwise, it must be called separately.public UnlabeledAttachmentEval(java.lang.String str, boolean runningAverages, HeadFinder headFinder, java.util.function.Predicate<java.lang.String> punctRejectFilter)
public void evaluate(Tree guess, Tree gold, java.io.PrintWriter pw)
evaluate
in interface Eval
evaluate
in class AbstractEval
protected java.util.Set<?> makeObjects(Tree tree)
makeObjects
in class AbstractEval
public static void main(java.lang.String[] args)
args
-