From 929f2792a7e37f525d02a407e8c58b63428d6e1a Mon Sep 17 00:00:00 2001 From: Gregory Howard Date: Wed, 3 May 2017 15:41:07 +0200 Subject: [PATCH] Rennaming cls in module. cls is now a class --- spacy/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spacy/__init__.py b/spacy/__init__.py index bcac2471c..9ff902728 100644 --- a/spacy/__init__.py +++ b/spacy/__init__.py @@ -29,7 +29,8 @@ def load(name, **overrides): model_name = '' meta = util.parse_package_meta(data_path, model_name, require=False) lang = meta['lang'] if meta and 'lang' in meta else name - cls = importlib.import_module("."+lang, "spacy") + module = importlib.import_module("."+lang, "spacy") + cls = module.EXPORT overrides['meta'] = meta overrides['path'] = model_path - return cls.EXPORT(**overrides) + return cls(**overrides)