Fix parser model loading

This commit is contained in:
Matthew Honnibal 2018-05-15 18:43:46 +02:00
parent dc1a479fbd
commit 8446b35ce0
1 changed files with 1 additions and 1 deletions

View File

@ -531,7 +531,7 @@ cdef class Parser:
self.model, cfg = self.Model(**self.cfg)
else:
cfg = {}
with (path / 'tok2vec_model').open('rb') as file_:
with (path / 'model').open('rb') as file_:
bytes_data = file_.read()
self.model.from_bytes(bytes_data)
self.cfg.update(cfg)