mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 01:46:28 +03:00
Fix wiring of pre-trained vectors in parser loading
This commit is contained in:
parent
31c2e91c35
commit
2b0efc77ae
|
@ -871,6 +871,7 @@ cdef class Parser:
|
|||
if self.model is True:
|
||||
self.model, cfg = self.Model(self.moves.n_moves,
|
||||
pretrained_dims=self.vocab.vectors_length)
|
||||
cfg['pretrained_dims'] = self.vocab.vectors_length
|
||||
else:
|
||||
cfg = {}
|
||||
cfg['pretrained_dims'] = self.vocab.vectors_length
|
||||
|
|
Loading…
Reference in New Issue
Block a user