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