* Fix Model.__reduce__

This commit is contained in:
Matthew Honnibal 2015-10-13 15:10:04 +11:00
parent f6d74b14de
commit 6c227a6c1f
1 changed files with 1 additions and 1 deletions

View File

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