mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 17:36:30 +03:00
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)
This commit is contained in:
parent
97647c46cd
commit
ad168ba88c
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user