mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-26 17:24:41 +03:00
* Fix Model.__reduce__
This commit is contained in:
parent
6c227a6c1f
commit
531182f937
|
@ -71,7 +71,7 @@ cdef class Model:
|
||||||
# that aren't necessarily saved. So, if we're part way through training
|
# 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.
|
# the model, and then we pickle it, we won't recover the state correctly.
|
||||||
self._model.dump(model_loc)
|
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)
|
None, None)
|
||||||
|
|
||||||
def predict(self, Example eg):
|
def predict(self, Example eg):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user