Set model name to empty string if path override exists
Required for parse_package_meta, which composes path of data_path and
model_name (needs to be fixed in the future)
@@ -30,6 +30,7 @@ def load(name, **overrides):
else:
model_path = util.ensure_path(overrides['path'])
data_path = model_path.parent
+ 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 = util.get_lang_class(lang)
