mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 01:16:28 +03:00
* Fix repvec_length problem
This commit is contained in:
parent
ac459278d1
commit
388062ae01
|
@ -130,7 +130,7 @@ cdef class Token:
|
|||
|
||||
property vector:
|
||||
def __get__(self):
|
||||
cdef int length = self.vocab.repvec_length
|
||||
cdef int length = self.vocab.vectors_length
|
||||
repvec_view = <float[:length,]>self.c.lex.repvec
|
||||
return numpy.asarray(repvec_view)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user