edu.stanford.nlp.parser.metrics
Class UnlabeledAttachmentEval
java.lang.Object
edu.stanford.nlp.parser.metrics.AbstractEval
edu.stanford.nlp.parser.metrics.UnlabeledAttachmentEval
public class UnlabeledAttachmentEval
- extends AbstractEval
Dependency unlabeled attachment score.
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.
- Author:
- Spence Green
Field Summary |
static java.util.Map<java.lang.String,java.lang.Integer> |
optionArgDefs
|
Method Summary |
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. |
Methods inherited from class edu.stanford.nlp.parser.metrics.AbstractEval |
display, display, evaluate, evaluate, getEvalbF1, getEvalbF1Percent, getExact, getExactPercent, getLastF1, getNum, getSentAveF1, precision |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
optionArgDefs
public static final java.util.Map<java.lang.String,java.lang.Integer> optionArgDefs
UnlabeledAttachmentEval
public UnlabeledAttachmentEval(java.lang.String str,
boolean runningAverages,
HeadFinder headFinder)
- Parameters:
headFinder
- If a headFinder is provided, then head percolation will be done
for trees. Otherwise, it must be called separately.
UnlabeledAttachmentEval
public UnlabeledAttachmentEval(java.lang.String str,
boolean runningAverages,
HeadFinder headFinder,
Filter<java.lang.String> punctRejectFilter)
evaluate
public void evaluate(Tree guess,
Tree gold,
java.io.PrintWriter pw)
- Overrides:
evaluate
in class AbstractEval
makeObjects
protected java.util.Set<?> makeObjects(Tree tree)
- Build the set of dependencies for evaluation. This set excludes
all dependencies for which the argument is a punctuation tag.
- Specified by:
makeObjects
in class AbstractEval
main
public static void main(java.lang.String[] args)
- Run the Evalb scoring metric on guess/gold input. The default language is English.
- Parameters:
args
-
Stanford NLP Group