udapi.block.ud.de.fixhdt module

Block to fix annotation of UD German-HDT.

It was created independently of ud.de.AddMwt but it aims to do essentially the same thing. Future work: make the two blocks converge.

Currently known differences: - This block covers a wider range of contractions. - This block generates morphological features for the syntactic words. - This block does not touch words that look like contractions but do not have PronType=Art (this is a reliable indicator in HDT). - This block overrides the default attachment when the original relation is root, conj, reparandum. - The other block takes advantage of the generic class ud.AddMwt, so it does not have to re-invent common procedures.

class udapi.block.ud.de.fixhdt.FixHDT(zones='all', if_empty_tree='process', **kwargs)[source]

Bases: Block

process_node(node)[source]

Process a UD node

udapi.block.ud.de.fixhdt.mimic_case(up, x)[source]