edu.illinois.cs.cogcomp.lbj.coref.ir
Class EntityByFirstMentionComparator

java.lang.Object
  extended by edu.illinois.cs.cogcomp.lbj.coref.ir.EntityByFirstMentionComparator
All Implemented Interfaces:
java.util.Comparator<Entity>

public class EntityByFirstMentionComparator
extends java.lang.Object
implements java.util.Comparator<Entity>

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

EntityByFirstMentionComparator

public EntityByFirstMentionComparator()
Method Detail

compare

public 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).

Specified by:
compare in interface java.util.Comparator<Entity>