diff --git a/spacy/syntax/nn_parser.pyx b/spacy/syntax/nn_parser.pyx index cf18b6e96..532a69b36 100644 --- a/spacy/syntax/nn_parser.pyx +++ b/spacy/syntax/nn_parser.pyx @@ -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