udapi.block.ud.ca.elque module

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

class udapi.block.ud.ca.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.ca.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.