udapi.block.util.mark module

util.Mark is a special block for marking nodes specified by parameters.

class udapi.block.util.mark.Mark(node, mark=1, mark_attr='Mark', add=True, print_stats=False, empty=False, **kwargs)[source]

Bases: Block

Mark nodes specified by parameters.

Example usage from command line:: # see non-projective trees with non-projective edges highlighted udapy -TM util.Mark node=’node.is_nonprojective()’ < in | less -R

process_empty_node(empty_node)[source]

Process an empty node (in enhanced dependencies)

process_end()[source]

A hook method that is executed after processing all UD data

process_node(node)[source]

Process a UD node