mirror of https://github.com/explosion/spaCy.git
Restore tokenization timing in Language.evaluate (#9305)
Restore tokenization timing steps that were accidentally removed in #6765.
This commit is contained in:
parent
a361df00cd
commit
e750c1760c
|
@ -1369,6 +1369,9 @@ class Language:
|
||||||
scorer = Scorer(**kwargs)
|
scorer = Scorer(**kwargs)
|
||||||
# reset annotation in predicted docs and time tokenization
|
# reset annotation in predicted docs and time tokenization
|
||||||
start_time = timer()
|
start_time = timer()
|
||||||
|
# this is purely for timing
|
||||||
|
for eg in examples:
|
||||||
|
self.make_doc(eg.reference.text)
|
||||||
# apply all pipeline components
|
# apply all pipeline components
|
||||||
for name, pipe in self.pipeline:
|
for name, pipe in self.pipeline:
|
||||||
kwargs = component_cfg.get(name, {})
|
kwargs = component_cfg.get(name, {})
|
||||||
|
|
Loading…
Reference in New Issue