mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-10 00:02:19 +03:00
Fix loop
This commit is contained in:
parent
60661ab0fa
commit
97c86072e5
|
@ -221,12 +221,13 @@ def train_while_improving(
|
|||
exclude=exclude,
|
||||
annotates=annotating_components,
|
||||
)
|
||||
nlp.rehearse(
|
||||
subbatch,
|
||||
losses=losses,
|
||||
sgd=False, # type: ignore[arg-type]
|
||||
exclude=exclude,
|
||||
)
|
||||
if use_rehearse:
|
||||
nlp.rehearse(
|
||||
subbatch,
|
||||
losses=losses,
|
||||
sgd=False, # type: ignore[arg-type]
|
||||
exclude=exclude,
|
||||
)
|
||||
# TODO: refactor this so we don't have to run it separately in here
|
||||
for name, proc in nlp.pipeline:
|
||||
if (
|
||||
|
|
Loading…
Reference in New Issue
Block a user