mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Fix Tok2Vec begin_training
This commit is contained in:
parent
099e9331c5
commit
9987ea9e4d
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user