mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
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)
|
||||
# reset annotation in predicted docs and time tokenization
|
||||
start_time = timer()
|
||||
# this is purely for timing
|
||||
for eg in examples:
|
||||
self.make_doc(eg.reference.text)
|
||||
# apply all pipeline components
|
||||
for name, pipe in self.pipeline:
|
||||
kwargs = component_cfg.get(name, {})
|
||||
|
|
Loading…
Reference in New Issue
Block a user