Update warning message

This commit is contained in:
ines 2017-05-08 19:53:36 +02:00
parent 6025cdb992
commit 2edc0aee12

View File

@ -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