udapi.block.corefud.mergesamespan module¶
- class udapi.block.corefud.mergesamespan.MergeSameSpan(same_entity_only=False, **kwargs)[source]¶
Bases:
Block
Multiple same-span mentions are considered invalid in CoNLL-U, whether they belong to the same entity or not. If they occur, merge them into one. Note: We currently do not have mentions across sentence boundaries in the CorefUD data, so this block processes one sentence at a time.