Fix loading of models with pre-trained vectors

This commit is contained in:
Matthew Honnibal 2017-10-01 14:05:32 -05:00
parent 69c7c642c2
commit 2cf0f4622f
1 changed files with 1 additions and 0 deletions

View File

@ -324,6 +324,7 @@ 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):