edu.uchsc.ccp.iaa
Class AnnotationSpanIndex

java.lang.Object
  extended by 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.


Constructor Summary
AnnotationSpanIndex(Collection<Annotation> annotations)
           
AnnotationSpanIndex(Collection<Annotation> annotations, int windowSize)
           
 
Method Summary
 Set<Annotation> getExactlyOverlappingAnnotations(Annotation annotation)
           
 Set<Annotation> getNearbyAnnotations(Annotation annotation)
           
 Set<Annotation> getOverlappingAnnotations(Annotation annotation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationSpanIndex

public AnnotationSpanIndex(Collection<Annotation> annotations)

AnnotationSpanIndex

public AnnotationSpanIndex(Collection<Annotation> annotations,
                           int windowSize)
Method Detail

getNearbyAnnotations

public Set<Annotation> getNearbyAnnotations(Annotation annotation)

getOverlappingAnnotations

public Set<Annotation> getOverlappingAnnotations(Annotation annotation)

getExactlyOverlappingAnnotations

public Set<Annotation> getExactlyOverlappingAnnotations(Annotation annotation)