Fix Tok2Vec begin_training

This commit is contained in:
Matthew Honnibal 2020-07-28 15:52:02 +02:00
parent 099e9331c5
commit 9987ea9e4d

View File

@ -196,7 +196,7 @@ class Tok2Vec(Pipe):
DOCS: https://spacy.io/api/tok2vec#begin_training
"""
docs = [Doc(Vocab(), words=["hello"])]
docs = [Doc(self.vocab, words=["hello"])]
self.model.initialize(X=docs)
link_vectors_to_models(self.vocab)