udapi.block.ud.fixpunctchild module

Block ud.FixPunctChild for making sure punctuation nodes have no children.

class udapi.block.ud.fixpunctchild.FixPunctChild(zones='all', if_empty_tree='process', **kwargs)[source]

Bases: Block

Make sure punct nodes have no children by rehanging the children upwards.

process_node(node)[source]

Process a UD node