Add pickle method for vectors

This commit is contained in:
Matthew Honnibal 2017-06-05 12:36:04 +02:00
parent 30369d580f
commit 280d419529

View File

@ -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):