From 531182f9379f91dee1818edce0c562587957430d Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 13 Oct 2015 15:14:38 +1100 Subject: [PATCH] * Fix Model.__reduce__ --- spacy/_ml.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/_ml.pyx b/spacy/_ml.pyx index b8e381735..2f27badbf 100644 --- a/spacy/_ml.pyx +++ b/spacy/_ml.pyx @@ -71,7 +71,7 @@ cdef class Model: # that aren't necessarily saved. So, if we're part way through training # the model, and then we pickle it, we won't recover the state correctly. self._model.dump(model_loc) - return (Model, (self.n_classes, self.templates, model_loc), + return (Model, (self.n_classes, self._templates, model_loc), None, None) def predict(self, Example eg):