mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-13 10:46:29 +03:00
Fix compile error
This commit is contained in:
parent
2c3a67b693
commit
f62088d646
|
@ -404,7 +404,7 @@ cdef class Vocab:
|
||||||
norm = 0.0
|
norm = 0.0
|
||||||
for i in range(vec_len):
|
for i in range(vec_len):
|
||||||
norm += lexeme.vector[i] * lexeme.vector[i]
|
norm += lexeme.vector[i] * lexeme.vector[i]
|
||||||
lex.l2_norm = sqrt(norm)
|
lexeme.l2_norm = sqrt(norm)
|
||||||
self.vectors_length = vec_len
|
self.vectors_length = vec_len
|
||||||
return vec_len
|
return vec_len
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user