From 31c2e91c35ae4299f53b2ca411cd6686cc86748c Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 17 Sep 2017 05:46:55 -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 bf873f0e2..cf18b6e96 100644 --- a/spacy/syntax/nn_parser.pyx +++ b/spacy/syntax/nn_parser.pyx @@ -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 = {}