From 49a615e7d9e37c5de208f516929733a5bb7cfaed Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sat, 19 Aug 2017 18:50:16 +0200 Subject: [PATCH] Create Vectors object in Vocab --- spacy/vocab.pyx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spacy/vocab.pyx b/spacy/vocab.pyx index 5909872d6..055f2ef24 100644 --- a/spacy/vocab.pyx +++ b/spacy/vocab.pyx @@ -22,6 +22,7 @@ from .structs cimport SerializedLexemeC from .compat import copy_reg, pickle from .lemmatizer import Lemmatizer from .attrs import intify_attrs +from .vectors import Vectors from . import util from . import attrs from . import symbols @@ -63,6 +64,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) property lang: def __get__(self):