edu.stanford.nlp.trees
Class TreeLengthComparator
java.lang.Object
edu.stanford.nlp.trees.TreeLengthComparator
- All Implemented Interfaces:
- Comparator
public class TreeLengthComparator
- extends Object
- implements Comparator
A TreeLengthComparator
orders trees by their yield sentence
lengths.
- Author:
- Christopher Manning
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TreeLengthComparator
public TreeLengthComparator()
- Create a new
TreeLengthComparator
.
compare
public int compare(Object o1,
Object o2)
- Compare the two objects.
- Specified by:
compare
in interface Comparator
Stanford NLP Group