udapi.block.eval.parsing module

Block eval.Parsing for evaluating UAS and LAS - gold and pred must have the same tokens.

class udapi.block.eval.parsing.Parsing(gold_zone, **kwargs)[source]

Bases: BaseWriter

Evaluate labeled and unlabeled attachment score (LAS and UAS).

process_end()[source]

A hook method that is executed after processing all UD data

process_tree(tree)[source]

Process a UD tree