From 2b0efc77ae3bd4ab97353b4f55be7ae36e8523ad Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 17 Sep 2017 05:47:34 -0500 Subject: [PATCH] Fix wiring of pre-trained vectors in parser loading --- spacy/syntax/nn_parser.pyx | 1 + 1 file changed, 1 insertion(+) 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