Add spacy.blank() loading function

This commit is contained in:
Matthew Honnibal 2017-07-25 18:56:37 +02:00
parent 5771bd1ff8
commit 7c7fac9337

View File

@ -13,5 +13,10 @@ def load(name, **overrides):
return util.load_model(name, **overrides) return util.load_model(name, **overrides)
def blank(name, **kwargs):
LangClass = util.get_lang_class(name)
return LangClass(**kwargs)
def info(model=None, markdown=False): def info(model=None, markdown=False):
return cli_info(None, model, markdown) return cli_info(None, model, markdown)