Fix DocBin init in training example (#6396)

This commit is contained in:
Adriane Boyd 2020-11-17 14:36:44 +01:00
parent de5d05612c
commit 11ac3e0a36

View File

@ -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"]