From 314090cc7829949e80cd3ddbd494d4b7557e8519 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 26 Oct 2015 12:05:08 +1100 Subject: [PATCH] * Set vectors length when unpickling vocab, re Issue #125 --- spacy/vocab.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/vocab.pyx b/spacy/vocab.pyx index f14a8e8c6..4317a96e8 100644 --- a/spacy/vocab.pyx +++ b/spacy/vocab.pyx @@ -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