udapi.block.ud.fixleaf module

Block ud.FixLeaf checks that function word dependents are leaves. Certain known exceptions are observed (e.g., fixed expressions).

class udapi.block.ud.fixleaf.FixLeaf(deprels='aux,cop,case,mark,cc', **kwargs)[source]

Bases: Block

Make sure that function words are leaves unless one of the known exceptions applies.

process_node(node)[source]

Process a UD node