veil.config.overlap_resolver

Classes

OverlapResolverConfig([iou_threshold, ...])

Configuration for overlap resolution between spans from different detectors.

class veil.config.overlap_resolver.OverlapResolverConfig(iou_threshold=0.75, overlap_policy='same_type_only')[source]

Bases: object

Configuration for overlap resolution between spans from different detectors.

IoU threshold controls when two spans are considered conflicting: - If IoU > threshold, they conflict and the lower-priority span is dropped. - With threshold=0.0, any real overlap is considered a conflict.

Parameters:
  • iou_threshold (float)

  • overlap_policy (str)

iou_threshold: float = 0.75
overlap_policy: str = 'same_type_only'