Package de.unistuttgart.ims.uima.io.xml
Class AnnotationChooser
java.lang.Object
de.unistuttgart.ims.uima.io.xml.AnnotationChooser
- All Implemented Interfaces:
java.util.Comparator<org.apache.uima.jcas.tcas.Annotation>
public class AnnotationChooser
extends java.lang.Object
implements java.util.Comparator<org.apache.uima.jcas.tcas.Annotation>
A comparator for annotations, using the character positions of the involved
annotations. We're ignoring type priorities etc., the ordering is determined
only on character positions.
- Author:
- reiterns
-
Constructor Summary
Constructors Constructor Description AnnotationChooser(int cPos)
-
Method Summary
Modifier and Type Method Description int
compare(org.apache.uima.jcas.tcas.Annotation o1, org.apache.uima.jcas.tcas.Annotation o2)
-
Constructor Details
-
AnnotationChooser
public AnnotationChooser(int cPos)
-
-
Method Details
-
compare
public int compare(org.apache.uima.jcas.tcas.Annotation o1, org.apache.uima.jcas.tcas.Annotation o2)- Specified by:
compare
in interfacejava.util.Comparator<org.apache.uima.jcas.tcas.Annotation>
-