mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-25 00:34:20 +03:00
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
|
from spacy.tokens import Doc, DocBin
|
||||||
|
|
||||||
nlp = spacy.blank("en")
|
nlp = spacy.blank("en")
|
||||||
docbin = DocBin(nlp.vocab)
|
docbin = DocBin()
|
||||||
words = ["Apple", "is", "looking", "at", "buying", "U.K.", "startup", "."]
|
words = ["Apple", "is", "looking", "at", "buying", "U.K.", "startup", "."]
|
||||||
spaces = [True, True, True, True, True, True, True, False]
|
spaces = [True, True, True, True, True, True, True, False]
|
||||||
ents = ["B-ORG", "O", "O", "O", "O", "B-GPE", "O", "O"]
|
ents = ["B-ORG", "O", "O", "O", "O", "B-GPE", "O", "O"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user