mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-11 08:42:28 +03:00
Fix vectors pickling
This commit is contained in:
parent
a59518df4f
commit
b712de774e
|
@ -85,7 +85,7 @@ cdef class Vectors:
|
||||||
return len(self.key2row)
|
return len(self.key2row)
|
||||||
|
|
||||||
def __reduce__(self):
|
def __reduce__(self):
|
||||||
keys_and_rows = self.key2row.items()
|
keys_and_rows = tuple(self.key2row.items())
|
||||||
return (unpickle_vectors, (keys_and_rows, self.data))
|
return (unpickle_vectors, (keys_and_rows, self.data))
|
||||||
|
|
||||||
def __getitem__(self, key):
|
def __getitem__(self, key):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user