Skip to content

edsnlp.metrics.dep_parsing

dependency_parsing_metric [source]

Compute the UAS and LAS scores for dependency parsing.

Parameters

PARAMETER DESCRIPTION
examples

The examples to score, either a tuple of (golds, preds) or a list of spacy.training.Example objects

TYPE: Examples

filter_expr

The filter expression to use to filter the documents. The expression should be a valid Python test and uses the variable doc to refer to the reference (gold) document.

TYPE: Optional[str] DEFAULT: None

RETURNS DESCRIPTION
Dict[str, float]