mirror of https://github.com/explosion/spaCy.git
Fix wiring of pre-trained vectors in parser loading
This commit is contained in:
parent
8f913a74ca
commit
31c2e91c35
|
@ -825,6 +825,7 @@ cdef class Parser:
|
|||
if 'model' not in exclude:
|
||||
path = util.ensure_path(path)
|
||||
if self.model is True:
|
||||
self.cfg['pretrained_dims'] = self.vocab.vectors_length
|
||||
self.model, cfg = self.Model(**self.cfg)
|
||||
else:
|
||||
cfg = {}
|
||||
|
|
Loading…
Reference in New Issue