mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-31 11:46:22 +03:00
revert
This commit is contained in:
parent
0b9113a1da
commit
b75b636d59
|
@ -1,5 +1,6 @@
|
||||||
from typing import Optional, Dict, List, Union, Sequence
|
from typing import Optional, Dict, List, Union, Sequence
|
||||||
from timeit import default_timer as timer
|
from timeit import default_timer as timer
|
||||||
|
|
||||||
import srsly
|
import srsly
|
||||||
from pydantic import BaseModel, FilePath
|
from pydantic import BaseModel, FilePath
|
||||||
import plac
|
import plac
|
||||||
|
@ -520,6 +521,7 @@ def train_while_improving(
|
||||||
raw_batches = util.minibatch(
|
raw_batches = util.minibatch(
|
||||||
(nlp.make_doc(rt["text"]) for rt in raw_text), size=8
|
(nlp.make_doc(rt["text"]) for rt in raw_text), size=8
|
||||||
)
|
)
|
||||||
|
|
||||||
for step, batch in enumerate(train_data):
|
for step, batch in enumerate(train_data):
|
||||||
dropout = next(dropouts)
|
dropout = next(dropouts)
|
||||||
with nlp.select_pipes(enable=to_enable):
|
with nlp.select_pipes(enable=to_enable):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user