Use info module for spacy.info()

This commit is contained in:
ines 2017-03-18 13:01:26 +01:00
parent e3e25c0a33
commit cd94ea1095
1 changed files with 3 additions and 3 deletions

View File

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