udapi.block.corefud.delete module

Delete coreference annotation (Entity|Bridge|SplitAnte) and optionally also empty nodes.

class udapi.block.corefud.delete.Delete(coref=True, empty=False, misc=False, **kwargs)[source]

Bases: Block

is_root_reachable_by_deps(node, parents_to_ignore=None)[source]

Check if the root node is reachable from node, possibly after deleting the parents_to_ignore nodes.

process_document(doc)[source]

Process a UD document