|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.trees.TreeLengthComparator
public class TreeLengthComparator
A TreeLengthComparator
orders trees by their yield sentence
lengths.
Constructor Summary | |
---|---|
TreeLengthComparator()
Create a new TreeLengthComparator . |
Method Summary | |
---|---|
int |
compare(Tree t1,
Tree t2)
Compare the two objects. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public TreeLengthComparator()
TreeLengthComparator
.
Method Detail |
---|
public int compare(Tree t1, Tree t2)
compare
in interface java.util.Comparator<Tree>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |