From 039d609362138bd26d6c53f087a48c0888d9c887 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 17 Sep 2017 12:29:39 -0500 Subject: [PATCH] Remove hard-coded default vectors width --- spacy/vocab.pyx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spacy/vocab.pyx b/spacy/vocab.pyx index bf7fb6903..b4a244287 100644 --- a/spacy/vocab.pyx +++ b/spacy/vocab.pyx @@ -65,7 +65,7 @@ cdef class Vocab: self.strings.add(name) self.lex_attr_getters = lex_attr_getters self.morphology = Morphology(self.strings, tag_map, lemmatizer) - self.vectors = Vectors(self.strings, 300) + self.vectors = Vectors(self.strings) property lang: def __get__(self): @@ -336,7 +336,7 @@ cdef class Vocab: return None else: return self.vectors.to_bytes(exclude='strings.json') - + getters = OrderedDict(( ('strings', lambda: self.strings.to_bytes()), ('lexemes', lambda: self.lexemes_to_bytes()),