mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-24 00:46:28 +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)
|
||||
|
||||
|
||||
def blank(name, **kwargs):
|
||||
LangClass = util.get_lang_class(name)
|
||||
return LangClass(**kwargs)
|
||||
|
||||
|
||||
def info(model=None, markdown=False):
|
||||
return cli_info(None, model, markdown)
|
||||
|
|
Loading…
Reference in New Issue
Block a user