mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-10 19:57:17 +03:00
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:
parent
eea3b35e3f
commit
e348d4434c
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue
Block a user