Fix compile error

This commit is contained in:
Matthew Honnibal 2016-10-23 14:50:50 +02:00
parent 2c3a67b693
commit f62088d646

View File

@ -404,7 +404,7 @@ cdef class Vocab:
norm = 0.0
for i in range(vec_len):
norm += lexeme.vector[i] * lexeme.vector[i]
lex.l2_norm = sqrt(norm)
lexeme.l2_norm = sqrt(norm)
self.vectors_length = vec_len
return vec_len