|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.parser.metrics.AbstractEval
edu.stanford.nlp.parser.metrics.DependencyEval
public class DependencyEval
Evaluates the dependency accuracy of a tree (based on HeadFinder dependency judgments). TODO CDM Mar 2004: This should be rewritten so as to root a word at an index position; otherwise it doesn't work correctly when you get two identical dependents (like with "I went to Greece to see the ruins"). TODO spence Feb 2010: Trees not only need to implement the HasIndex interface, but also the head finding algorithm must set the index() annotation for each phrasal node according to the head. TODO spence Feb 2010: Percolate heads sets both the Word and Index annotations.
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 | |
---|---|
DependencyEval(java.lang.String str,
boolean runningAverages,
Filter<java.lang.String> punctFilter)
|
Method Summary | |
---|---|
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, 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 |
Constructor Detail |
---|
public DependencyEval(java.lang.String str, boolean runningAverages, Filter<java.lang.String> punctFilter)
punctFilter
- A filter that accepts punctuation words.Method Detail |
---|
protected java.util.Set<?> makeObjects(Tree tree)
makeObjects
in class AbstractEval
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |