From 9b82586699c96254b687458a048e0b754c72e8be Mon Sep 17 00:00:00 2001 From: palandlom Date: Thu, 18 Feb 2021 11:44:22 +0300 Subject: [PATCH] var batch is useless (#7111) It seems that nlp.update(examples) should be nlp.update(batch) --- website/docs/usage/v3.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/usage/v3.md b/website/docs/usage/v3.md index 64277b453..f8bcb39d1 100644 --- a/website/docs/usage/v3.md +++ b/website/docs/usage/v3.md @@ -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