From c065359459c3c5dcc54e7c81d42af929aeb1909f Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 18 Dec 2016 22:15:29 +0100 Subject: [PATCH] Fix path-override bug in spacy.load --- spacy/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/__init__.py b/spacy/__init__.py index 35dec257a..8bb1c2129 100644 --- a/spacy/__init__.py +++ b/spacy/__init__.py @@ -46,4 +46,5 @@ def load(name, **overrides): overrides['add_vectors'] = lambda vocab: vocab.load_vectors_from_bin_loc(vec_path) path = util.match_best_version(target_name, target_version, data_path) cls = get_lang_class(target_name) - return cls(path=path, **overrides) + overrides['path'] = path + return cls(**overrides)