From 2edc0aee12bdc433737bc1a1e595eb79b32518eb Mon Sep 17 00:00:00 2001 From: ines Date: Mon, 8 May 2017 19:53:36 +0200 Subject: [PATCH] Update warning message --- spacy/util.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spacy/util.py b/spacy/util.py index bc17e6a91..0429904c0 100644 --- a/spacy/util.py +++ b/spacy/util.py @@ -145,7 +145,8 @@ def read_json(location): def resolve_load_name(name, **overrides): if overrides.get('path') not in (None, False, True): name = overrides.get('path') - prints("To load a model from a path, you can now use the first argument.", + prints("To load a model from a path, you can now use the first argument. " + "The model meta is used to load the required Language class.", "OLD: spacy.load('en', path='/some/path')", "NEW: spacy.load('/some/path')", title="Warning: deprecated argument 'path'") return name