udapi.block.ud.fixrightheaded module

Block ud.FixRightheaded for making sure flat,fixed,appos,goeswith,list is head initial.

Note that deprel=conj should also be left-headed, but it is not included in this fix-block by default because coordinations are more difficult to convert and one should use a specialized block instead.

class udapi.block.ud.fixrightheaded.FixRightheaded(deprels='flat,fixed,appos,goeswith,list', **kwargs)[source]

Bases: Block

Make sure deprel=flat,fixed,… form a head-initial (i.e. left-headed) structure.

process_node(node)[source]

Process a UD node