udapi.block.corefud.fixparentheses module

class udapi.block.corefud.fixparentheses.FixParentheses(mark=True, **kwargs)[source]

Bases: Block

Find mentions that contain opening parenthesis but do not contain the closing one (or the other way around). If the missing parenthesis is an immediate neighbour of the mention span, add it to the span.

process_coref_mention(mention)[source]

This method is called on each coreference mention in the document.