edu.uchsc.ccp.iaa
Class AnnotationSpanIndex
java.lang.Object
edu.uchsc.ccp.iaa.AnnotationSpanIndex
public class AnnotationSpanIndex
- extends Object
This class creates an index on a collection of annotations based on the
proximity of the spans of the annotations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AnnotationSpanIndex
public AnnotationSpanIndex(Collection<Annotation> annotations)
AnnotationSpanIndex
public AnnotationSpanIndex(Collection<Annotation> annotations,
int windowSize)
getNearbyAnnotations
public Set<Annotation> getNearbyAnnotations(Annotation annotation)
getOverlappingAnnotations
public Set<Annotation> getOverlappingAnnotations(Annotation annotation)
getExactlyOverlappingAnnotations
public Set<Annotation> getExactlyOverlappingAnnotations(Annotation annotation)