From 280d419529640d15080113df0b52c656be9efbe4 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Mon, 5 Jun 2017 12:36:04 +0200 Subject: [PATCH] Add pickle method for vectors --- spacy/vectors.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/vectors.pyx b/spacy/vectors.pyx index 36ab1e316..6ef1721e2 100644 --- a/spacy/vectors.pyx +++ b/spacy/vectors.pyx @@ -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):