From 7c7fac93372eb30445d2e36fa21631ce4937f046 Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Tue, 25 Jul 2017 18:56:37 +0200 Subject: [PATCH] Add spacy.blank() loading function --- spacy/__init__.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spacy/__init__.py b/spacy/__init__.py index 068282b1a..1cb7c0cbd 100644 --- a/spacy/__init__.py +++ b/spacy/__init__.py @@ -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)