udapi.block.util.wc module

Wc is a special block for printing statistics (word count etc).

class udapi.block.util.wc.Wc(tsv=False, **kwargs)[source]

Bases: Block

Special block for printing statistics (word count etc).

process_end()[source]

A hook method that is executed after processing all UD data

process_tree(tree)[source]

Process a UD tree