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: |
filter_expr | The filter expression to use to filter the documents. The expression should be a valid Python test and uses the variable TYPE: |
| RETURNS | DESCRIPTION |
|---|---|
Dict[str, float] | |