Dont link vectors in vocab deserialize

This commit is contained in:
Matthew Honnibal 2017-09-26 06:45:47 -05:00
parent 18a27c7579
commit 5aaef3e7b8
1 changed files with 0 additions and 2 deletions

View File

@ -324,7 +324,6 @@ cdef class Vocab:
self.lexemes_from_bytes(file_.read())
if self.vectors is not None:
self.vectors.from_disk(path, exclude='strings.json')
link_vectors_to_models(self)
return self
def to_bytes(self, **exclude):
@ -364,7 +363,6 @@ cdef class Vocab:
('vectors', lambda b: serialize_vectors(b))
))
util.from_bytes(bytes_data, setters, exclude)
link_vectors_to_models(self)
return self
def lexemes_to_bytes(self):