mirror of
https://github.com/explosion/spaCy.git
synced 2025-06-05 13:43:24 +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
|
self.key2i[self.strings.add(string)] = i
|
||||||
|
|
||||||
def __reduce__(self):
|
def __reduce__(self):
|
||||||
raise NotImplementedError
|
return (Vectors, (self.strings, self.data))
|
||||||
|
|
||||||
def __getitem__(self, key):
|
def __getitem__(self, key):
|
||||||
if isinstance(key, basestring):
|
if isinstance(key, basestring):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user