From 8446b35ce0c41096464eb1224cbf4a7de51fdb6b Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 15 May 2018 18:43:46 +0200 Subject: [PATCH] Fix parser model loading --- 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 7304583ba..a0accf3ac 100644 --- a/spacy/syntax/nn_parser.pyx +++ b/spacy/syntax/nn_parser.pyx @@ -531,7 +531,7 @@ cdef class Parser: self.model, cfg = self.Model(**self.cfg) else: cfg = {} - with (path / 'tok2vec_model').open('rb') as file_: + with (path / 'model').open('rb') as file_: bytes_data = file_.read() self.model.from_bytes(bytes_data) self.cfg.update(cfg)