* Set vectors length when unpickling vocab, re Issue #125

This commit is contained in:
Matthew Honnibal 2015-10-26 12:05:08 +11:00
parent ab9dbb42be
commit 314090cc78

View File

@ -375,7 +375,7 @@ def unpickle_vocab(strings_loc, lex_loc, vec_loc, morphology, get_lex_attr,
vocab.strings.load(file_)
vocab.load_lexemes(lex_loc)
if vec_loc is not None:
vocab.load_vectors_from_bin_loc(vec_loc)
vocab.vectors_length = vocab.load_vectors_from_bin_loc(vec_loc)
return vocab