From a517df55c8d2a00fe9e9ece35763ad586e1caa13 Mon Sep 17 00:00:00 2001 From: Avadh Patel Date: Sun, 21 Jan 2018 15:20:45 -0600 Subject: [PATCH] Small fix Signed-off-by: Avadh Patel --- spacy/syntax/nn_parser.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/syntax/nn_parser.pyx b/spacy/syntax/nn_parser.pyx index f8a3bb30e..a1563e03e 100644 --- a/spacy/syntax/nn_parser.pyx +++ b/spacy/syntax/nn_parser.pyx @@ -887,7 +887,7 @@ cdef class Parser: path = util.ensure_path(path) if self.model is True: self.cfg['pretrained_dims'] = self.vocab.vectors_length - self.model, cfg = self.Model(from_disk=True, **self.cfg) + self.model, cfg = self.Model(**self.cfg) else: cfg = {} with (path / 'tok2vec_model').open('rb') as file_: