mirror of https://github.com/explosion/spaCy.git
Fix DocBin init in training example (#6396)
This commit is contained in:
parent
a7e7d6c6c9
commit
96726ec1f6
|
@ -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"]
|
||||
|
|
Loading…
Reference in New Issue