mirror of https://github.com/explosion/spaCy.git
* Fix repvec_length problem
This commit is contained in:
parent
ac459278d1
commit
388062ae01
|
@ -130,7 +130,7 @@ cdef class Token:
|
||||||
|
|
||||||
property vector:
|
property vector:
|
||||||
def __get__(self):
|
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
|
repvec_view = <float[:length,]>self.c.lex.repvec
|
||||||
return numpy.asarray(repvec_view)
|
return numpy.asarray(repvec_view)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue