|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.illinois.cs.cogcomp.lbj.coref.ir.EntityByFirstMentionComparator
public class EntityByFirstMentionComparator
Comparator for entities that which orders entities by the order of appearance of their mentions.
Constructor Summary | |
---|---|
EntityByFirstMentionComparator()
|
Method Summary | |
---|---|
int |
compare(Entity o1,
Entity o2)
Sorts by smallest character number of entity's first (according to Mention's compare function) mention's extent (Start, then end). |
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 EntityByFirstMentionComparator()
Method Detail |
---|
public int compare(Entity o1, Entity o2)
compare
in interface java.util.Comparator<Entity>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |