mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-25 09:26:27 +03:00
Add spacy.blank() loading function
This commit is contained in:
parent
5771bd1ff8
commit
7c7fac9337
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user