Use info module for spacy.info()

This commit is contained in:
ines 2017-03-18 13:01:26 +01:00
parent e3e25c0a33
commit cd94ea1095

View File

@ -5,6 +5,7 @@ import json
from pathlib import Path from pathlib import Path
from .util import set_lang_class, get_lang_class, parse_package_meta from .util import set_lang_class, get_lang_class, parse_package_meta
from .deprecated import resolve_model_name from .deprecated import resolve_model_name
from .info import info
from . import en from . import en
from . import de from . import de
@ -48,6 +49,5 @@ def load(name, **overrides):
return cls(**overrides) return cls(**overrides)
def info(name): def info(name, markdown):
meta = parse_package_meta(util.get_data_path(), name, require=True) info(name, markdown)
print(json.dumps(meta, indent=2))