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

Method minus

src/main/java/gate/Utils.java:1294–1296  ·  view source on GitHub ↗

Return the given set with the given annotations removed. This returns a new immutable annotation set, which contains all the annotations from origSet except the given annotations. The removal is not based on equality but on the id of the annotation: an annotation in origSet which has the same id as

(AnnotationSet origSet, Annotation... except)

Source from the content-addressed store, hash-verified

1292 * @return A new immutable annotation set with the given annotation removed from the original set
1293 */
1294 public static AnnotationSet minus(AnnotationSet origSet, Annotation... except) {
1295 return minus(origSet, Arrays.asList(except));
1296 }
1297
1298 /**
1299 * Return the given set with the given annotations removed.

Callers 1

Calls 4

addMethod · 0.65
getIdMethod · 0.65
getDocumentMethod · 0.65
containsMethod · 0.45

Tested by 1