RemoveOverlaps
Synopsis
Removes overlapping annotations from a given layer.
Description
RemoveOverlaps removes overlapping annotations in the layer layer .
RemoveOverlaps scans each specified layer and finds clusters of overlapping annotations. 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 RemoveOverlaps will remove one of the annotations.
annotationComparator controls which annotation is removed.
By default RemoveOverlaps removes all kinds of annotations, keeping the longest one.
Snippet
<removeoverlaps class="RemoveOverlaps">
<layer></layer>
</removeoverlaps>
Mandatory parameters
layer
Name of the layer to clear.
Optional parameters
annotationComparator
Comparator to use in order to choose between overlapping annotations.
documentFilter
Only process document that satisfy this expression.
removeEqual
Either to remove annotations with equal spans.
removeIncluded
Either to remove annotations fully included in another annotation.
removeOverlapping
Either to remove strictly overlapping annotations.
sectionFilter
Process only sections that satisfy this expression.
Deprecated parameters
layerName
Deprecated alias for layer .