udapi.block.ud.fixadvmodbyupos module

Block ud.FixAdvmodByUpos will change the dependency relation from advmod to something else if the UPOS is not ADV.

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

Bases: Block

Make sure advmod is not used with UPOS it should not be used with.

process_node(node)[source]

Process a UD node