udapi.block.ud.es.elque module

This block searches for relative clauses modifying a determiner (‘el que, el cual…’). It is written for Spanish but a similar block should work for other Romance languages.

class udapi.block.ud.es.elque.ElQue(fix=False, **kwargs)[source]

Bases: Block

fix_pattern(adp, el, que, verb)[source]
print_pattern(adp, el, que, verb)[source]
process_node(node)[source]

Process a UD node

udapi.block.ud.es.elque.attach(node, parent, deprel=None)[source]

Attach a node to a new parent with a new deprel in the basic tree. In addition, if there are enhanced dependencies and there is just one incoming enhanced relation (this is the case in AnCora), this relation will be modified accordingly.