mirror of https://github.com/explosion/spaCy.git
Fix Language.evaluate
This commit is contained in:
parent
f762c36e61
commit
ad56641324
|
@ -597,6 +597,8 @@ class Language(object):
|
||||||
):
|
):
|
||||||
if scorer is None:
|
if scorer is None:
|
||||||
scorer = Scorer()
|
scorer = Scorer()
|
||||||
|
if component_cfg is None:
|
||||||
|
component_cfg = {}
|
||||||
docs, golds = zip(*docs_golds)
|
docs, golds = zip(*docs_golds)
|
||||||
docs = list(docs)
|
docs = list(docs)
|
||||||
golds = list(golds)
|
golds = list(golds)
|
||||||
|
|
Loading…
Reference in New Issue