mirror of https://github.com/explosion/spaCy.git
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