From 67801328219ecebc38d6bc762eafc72c865a0bfd Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 25 Jul 2017 19:41:11 +0200 Subject: [PATCH] Fix tagger loading --- spacy/pipeline.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/pipeline.pyx b/spacy/pipeline.pyx index d48cae26d..947f0a1f1 100644 --- a/spacy/pipeline.pyx +++ b/spacy/pipeline.pyx @@ -417,7 +417,7 @@ class NeuralTagger(BaseThincComponent): ('vocab', lambda p: self.vocab.from_disk(p)), ('tag_map', load_tag_map), ('model', load_model), - ('cfg', lambda p: self.cfg.update(ujson.load(p.open()))), + ('cfg', lambda p: self.cfg.update(_load_cfg(p))) )) util.from_disk(path, deserialize, exclude) return self