From 6c227a6c1fc855fb4e2c3a9406a14ea177ea69c2 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 13 Oct 2015 15:10:04 +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 bc789e7d6..b8e381735 100644 --- a/spacy/_ml.pyx +++ b/spacy/_ml.pyx @@ -63,7 +63,7 @@ cdef class Model: self._model.load(self.model_loc, freq_thresh=0) def __reduce__(self): - model_loc = tempfile.mkstemp() + _, model_loc = tempfile.mkstemp() # TODO: This is a potentially buggy implementation. We're not really # given a good guarantee that all internal state is saved correctly here, # since there are learning parameters for e.g. the model averaging in