MCPcopy Create free account
hub / github.com/GateNLP/gate-core / getCoveringAnnotations

Method getCoveringAnnotations

src/main/java/gate/Utils.java:470–474  ·  view source on GitHub ↗

Get all the annotations from the source annotation set that cover the range of the specified annotation. @param sourceAnnotationSet the annotation set from which to select @param coveredAnnotation the annotation whose range must equal or lie within the selected annotations @return the AnnotationSet

(
    AnnotationSet sourceAnnotationSet,
    Annotation coveredAnnotation)

Source from the content-addressed store, hash-verified

468 * the offset range of the coveredAnnotation
469 */
470 public static AnnotationSet getCoveringAnnotations(
471 AnnotationSet sourceAnnotationSet,
472 Annotation coveredAnnotation) {
473 return getCoveringAnnotations(sourceAnnotationSet,coveredAnnotation,"");
474 }
475
476 /**
477 * Get all the annotations of type targetType

Callers

nothing calls this directly

Calls 9

getCoveringMethod · 0.65
getOffsetMethod · 0.65
getStartNodeMethod · 0.65
getEndNodeMethod · 0.65
getDocumentMethod · 0.65
firstNodeMethod · 0.65
lastNodeMethod · 0.65
isEmptyMethod · 0.45

Tested by

no test coverage detected