var batch is useless (#7111)

It seems that nlp.update(examples) should be nlp.update(batch)
This commit is contained in:
palandlom 2021-02-18 11:44:22 +03:00 committed by svlandeg
parent e6526b0831
commit d18ccdf822

View File

@ -1058,7 +1058,7 @@ nlp.initialize(lambda: examples)
for i in range(20):
random.shuffle(examples)
for batch in minibatch(examples, size=8):
nlp.update(examples)
nlp.update(batch)
```
`Language.begin_training` and `TrainablePipe.begin_training` have been renamed