diff --git a/spacy/vocab.pyx b/spacy/vocab.pyx index 9bfd74046..b82a61906 100644 --- a/spacy/vocab.pyx +++ b/spacy/vocab.pyx @@ -449,6 +449,7 @@ cdef class Vocab: lex = lex_addr if lex.lower < vectors.size(): lex.vector = vectors[lex.lower] + norm = 0.0 for i in range(vec_len): norm += lex.vector[i] * lex.vector[i] lex.l2_norm = sqrt(norm)