mirror of https://github.com/explosion/spaCy.git
Fix vectors_length property in vocab
This commit is contained in:
parent
a21d8f3f0b
commit
5b329acbf2
|
@ -244,7 +244,7 @@ cdef class Vocab:
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def vectors_length(self):
|
def vectors_length(self):
|
||||||
return len(self.vectors)
|
return self.vectors.data.shape[0]
|
||||||
|
|
||||||
def clear_vectors(self, new_dim=None):
|
def clear_vectors(self, new_dim=None):
|
||||||
"""Drop the current vector table. Because all vectors must be the same
|
"""Drop the current vector table. Because all vectors must be the same
|
||||||
|
|
Loading…
Reference in New Issue