mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +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)
|
||||
|
||||
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):
|
||||
|
|
Loading…
Reference in New Issue
Block a user