diff --git a/spacy/util.py b/spacy/util.py index 20f2d3b26..fe2d18f57 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -31,7 +31,7 @@ def get_lang_class(name): return LANGUAGES[lang] -def load_lang_class(lang, depth='.'): +def load_lang_class(lang): module = importlib.import_module('.lang.%s' % lang, 'spacy') return getattr(module, module.__all__[0])