This commit is contained in:
Richard Liaw 2020-06-18 01:09:46 -07:00
parent c865d833dc
commit 8bbf8c78bf

View File

@ -589,7 +589,6 @@ 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):