From 96726ec1f62ade72b7904b2b21b4a893f93d0ca8 Mon Sep 17 00:00:00 2001 From: Adriane Boyd Date: Tue, 17 Nov 2020 14:36:44 +0100 Subject: [PATCH] Fix DocBin init in training example (#6396) --- website/docs/usage/training.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/usage/training.md b/website/docs/usage/training.md index 274ea5989..58c846e9d 100644 --- a/website/docs/usage/training.md +++ b/website/docs/usage/training.md @@ -969,7 +969,7 @@ import spacy from spacy.tokens import Doc, DocBin nlp = spacy.blank("en") -docbin = DocBin(nlp.vocab) +docbin = DocBin() words = ["Apple", "is", "looking", "at", "buying", "U.K.", "startup", "."] spaces = [True, True, True, True, True, True, True, False] ents = ["B-ORG", "O", "O", "O", "O", "B-GPE", "O", "O"]