Fix vectors pickling

This commit is contained in:
Matthew Honnibal 2017-12-05 12:45:24 +01:00
parent a59518df4f
commit b712de774e

View File

@ -85,7 +85,7 @@ cdef class Vectors:
return len(self.key2row)
def __reduce__(self):
keys_and_rows = self.key2row.items()
keys_and_rows = tuple(self.key2row.items())
return (unpickle_vectors, (keys_and_rows, self.data))
def __getitem__(self, key):