mirror of https://github.com/explosion/spaCy.git
Fix parser model loading
This commit is contained in:
parent
dc1a479fbd
commit
8446b35ce0
|
@ -531,7 +531,7 @@ cdef class Parser:
|
||||||
self.model, cfg = self.Model(**self.cfg)
|
self.model, cfg = self.Model(**self.cfg)
|
||||||
else:
|
else:
|
||||||
cfg = {}
|
cfg = {}
|
||||||
with (path / 'tok2vec_model').open('rb') as file_:
|
with (path / 'model').open('rb') as file_:
|
||||||
bytes_data = file_.read()
|
bytes_data = file_.read()
|
||||||
self.model.from_bytes(bytes_data)
|
self.model.from_bytes(bytes_data)
|
||||||
self.cfg.update(cfg)
|
self.cfg.update(cfg)
|
||||||
|
|
Loading…
Reference in New Issue