udapi.block.ud.removemwt module

Block ud.RemoveMwt for removing multi-word tokens.

class udapi.block.ud.removemwt.RemoveMwt(zones='all', if_empty_tree='process', **kwargs)[source]

Bases: Block

Substitute MWTs with one word representing the whole MWT.

static guess_deprel(words)[source]

DEPREL of the whole MWT

static guess_feats(words)[source]

FEATS of the whole MWT

static guess_upos(words)[source]

UPOS of the whole MWT

process_tree(root)[source]

Process a UD tree