Add spacy.info(model_name) to show model meta

Allows "previewing" model before loading and making sure it's linked
correctly.
This commit is contained in:
ines 2017-03-16 17:13:40 +01:00
parent eea3b35e3f
commit e348d4434c
1 changed files with 5 additions and 0 deletions

View File

@ -41,3 +41,8 @@ def load(name, **overrides):
overrides['meta'] = meta
overrides['path'] = Path(data_path / name)
return cls(**overrides)
def info(name):
meta = parse_package_meta(util.get_data_path(), name)
print(json.dumps(meta, indent=2))