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)