-
Notifications
You must be signed in to change notification settings - Fork 6
module__org.bibliome.alvisnlp.modules.RemoveOverlaps
#org.bibliome.alvisnlp.modules.RemoveOverlaps
Removes overlapping annotations from a given layer.
org.bibliome.alvisnlp.modules.RemoveOverlaps removes overlapping annotations in the layer layerName.
org.bibliome.alvisnlp.modules.RemoveOverlaps scans each specified layer and finds clusters of overlapping annotations. org.bibliome.alvisnlp.modules.RemoveOverlaps distinguishes three overlapping situations:
- equal: two annotations have exactly the same span;
- included: one annotation includes the other completely;
- overlapping: one annotation overlaps with the head or the tail of the other annotation.
removeEqual, removeIncluded and removeOverlapping specify the behavior for each situation.
If the parameter is true, then org.bibliome.alvisnlp.modules.RemoveOverlaps will remove one of the annotations.
annotationComparator controls which annotation is removed.
By default *org.bibliome.alvisnlp.modules.RemoveOverlaps* removes all kinds of annotations, keeping the longest one.
Optional
Type: String
Name of the layer to clear.
Default value: length
Type: AnnotationComparator
Comparator to use in order to choose between overlapping annotations.
Default value: true
Type: Expression
Only process document that satisfy this filter.
Default value: true
Type: Boolean
Either to remove annotations with equal spans.
Default value: true
Type: Boolean
Either to remove annotations fully included in another annotation.
Default value: true
Type: Boolean
Either to remove strictly overlapping annotations.
Default value: true
Type: Expression
Process only sections that satisfy this filter.