udapi.block.ud.es.fixtenerque module

Block to fix spurious auxiliary verbs in UD Spanish-AnCora.

class udapi.block.ud.es.fixtenerque.FixTenerQue(zones='all', if_empty_tree='process', **kwargs)[source]

Bases: Block

process_node(node)[source]

Some Spanish treebanks treat the verb ‘tener’ in constructions such as ‘tener que comer’ as auxiliary. This is wrong and the validator will flag it as an error. This block fixes such annotations.

EDIT: ‘ir a comer’ is processed the same way.

reattach(node, parent, deprel)[source]

Changes the incoming dependency relation to a node. Makes sure that the same change is done in the basic tree and in the enhanced graph.