mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Fix handling of kwargs in Language.evaluate
Makes it consistent with other methods
This commit is contained in:
parent
d1d30b0442
commit
87ddbdc33e
|
@ -633,7 +633,7 @@ class Language(object):
|
|||
kwargs = component_cfg.get(name, {})
|
||||
kwargs.setdefault("batch_size", batch_size)
|
||||
if not hasattr(pipe, "pipe"):
|
||||
docs = (pipe(doc, **kwargs) for doc in docs)
|
||||
docs = _pipe(pipe, docs, kwargs)
|
||||
else:
|
||||
docs = pipe.pipe(docs, **kwargs)
|
||||
for doc, gold in zip(docs, golds):
|
||||
|
|
Loading…
Reference in New Issue
Block a user