mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 17:06:29 +03:00
issue5230 changed reference to function to anonymous function
This commit is contained in:
parent
6700006830
commit
cef0c909b9
|
@ -202,7 +202,7 @@ class Pipe(object):
|
|||
serialize["cfg"] = lambda p: srsly.write_json(p, self.cfg)
|
||||
serialize["vocab"] = lambda p: self.vocab.to_disk(p)
|
||||
if self.model not in (None, True, False):
|
||||
serialize["model"] = self.model.to_disk
|
||||
serialize["model"] = lambda p: self.model.to_disk(p)
|
||||
exclude = util.get_serialization_exclude(serialize, exclude, kwargs)
|
||||
util.to_disk(path, serialize, exclude)
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user