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