Fix vectors_length property in vocab

This commit is contained in:
Matthew Honnibal 2017-08-22 19:00:27 +02:00
parent a21d8f3f0b
commit 5b329acbf2
1 changed files with 1 additions and 1 deletions

View File

@ -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