mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
Add pickle method for vectors
This commit is contained in:
parent
30369d580f
commit
280d419529
|
@ -27,7 +27,7 @@ cdef class Vectors:
|
|||
self.key2i[self.strings.add(string)] = i
|
||||
|
||||
def __reduce__(self):
|
||||
raise NotImplementedError
|
||||
return (Vectors, (self.strings, self.data))
|
||||
|
||||
def __getitem__(self, key):
|
||||
if isinstance(key, basestring):
|
||||
|
|
Loading…
Reference in New Issue
Block a user