diff --git a/spacy/vocab.pyx b/spacy/vocab.pyx index dc141552d..f65c81da1 100644 --- a/spacy/vocab.pyx +++ b/spacy/vocab.pyx @@ -244,7 +244,7 @@ cdef class Vocab: @property def vectors_length(self): - return len(self.vectors) + return self.vectors.data.shape[0] def clear_vectors(self, new_dim=None): """Drop the current vector table. Because all vectors must be the same