mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 09:56:28 +03:00
Fix tagger loading
This commit is contained in:
parent
fd20a4af55
commit
6780132821
|
@ -417,7 +417,7 @@ class NeuralTagger(BaseThincComponent):
|
||||||
('vocab', lambda p: self.vocab.from_disk(p)),
|
('vocab', lambda p: self.vocab.from_disk(p)),
|
||||||
('tag_map', load_tag_map),
|
('tag_map', load_tag_map),
|
||||||
('model', load_model),
|
('model', load_model),
|
||||||
('cfg', lambda p: self.cfg.update(ujson.load(p.open()))),
|
('cfg', lambda p: self.cfg.update(_load_cfg(p)))
|
||||||
))
|
))
|
||||||
util.from_disk(path, deserialize, exclude)
|
util.from_disk(path, deserialize, exclude)
|
||||||
return self
|
return self
|
||||||
|
|
Loading…
Reference in New Issue
Block a user