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 GitHub
parent fc4fb6eb3a
commit 9b82586699
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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