udapi.block.ud.ru.fixtoest module

Block to fix annotation of то есть in Russian.

class udapi.block.ud.ru.fixtoest.FixToEst(zones='all', if_empty_tree='process', **kwargs)[source]

Bases: Block

process_node(node)[source]

In the converted data from Kira, the fixed expression “то есть” (“that is”) is treated as a subordinator and attached as “mark”, which later makes it part of complex enhanced relation labels. I believe that this analysis is wrong and that it will be better to label these expressions as “cc”.

set_basic_and_enhanced(node, parent, deprel, edeprel)[source]

Modifies the incoming relation of a node both in the basic tree and in the enhanced graph. If the node does not yet depend in the enhanced graph on the current basic parent, the new relation will be added without removing any old one. If the node already depends multiple times on the current basic parent in the enhanced graph, all such enhanced relations will be removed before adding the new one.