Fix ignoring of punct labels

This commit is contained in:
Matthew Honnibal 2020-09-05 14:08:34 +02:00
parent c443c82722
commit dae22f3dfa

View File

@ -156,7 +156,7 @@ cdef class DependencyParser(Parser):
results = {}
results.update(Scorer.score_spans(examples, "sents", **kwargs))
kwargs.setdefault("getter", dep_getter)
kwargs.setdefault("ignore_label", ("p", "punct"))
kwargs.setdefault("ignore_labels", ("p", "punct"))
results.update(Scorer.score_deps(examples, "dep", **kwargs))
del results["sents_per_type"]
return results