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

Method intersect

src/main/java/gate/Utils.java:1394–1396  ·  view source on GitHub ↗

Return the subset from the original set that matches one of the given annotations. This returns a new immutable annotation set, which contains all the annotations from origSet which are also among the annotations given. The check for matching annotations is not based on equality but on the id of th

(AnnotationSet origSet, Annotation... others)

Source from the content-addressed store, hash-verified

1392 * @return A new immutable annotation set with the interesection between original set and given annotations
1393 */
1394 public static AnnotationSet intersect(AnnotationSet origSet, Annotation... others) {
1395 return intersect(origSet,Arrays.asList(others));
1396 }
1397
1398 public static AnnotationSet intersect(AnnotationSet origSet, Collection<Annotation> others) {
1399 if(others.isEmpty()) {

Callers 15

paintMethod · 0.80
paintIconMethod · 0.80
paintMethod · 0.80
paintIconMethod · 0.80
paintMethod · 0.80
paintIconMethod · 0.80
paintMethod · 0.80
paintIconMethod · 0.80
paintMethod · 0.80
paintIconMethod · 0.80
paintMethod · 0.80

Calls 5

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

Tested by 1