mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
Small fix
Signed-off-by: Avadh Patel <avadh4all@gmail.com>
This commit is contained in:
parent
5b5029890d
commit
a517df55c8
|
@ -887,7 +887,7 @@ cdef class Parser:
|
||||||
path = util.ensure_path(path)
|
path = util.ensure_path(path)
|
||||||
if self.model is True:
|
if self.model is True:
|
||||||
self.cfg['pretrained_dims'] = self.vocab.vectors_length
|
self.cfg['pretrained_dims'] = self.vocab.vectors_length
|
||||||
self.model, cfg = self.Model(from_disk=True, **self.cfg)
|
self.model, cfg = self.Model(**self.cfg)
|
||||||
else:
|
else:
|
||||||
cfg = {}
|
cfg = {}
|
||||||
with (path / 'tok2vec_model').open('rb') as file_:
|
with (path / 'tok2vec_model').open('rb') as file_:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user