From f4ce7bb7e9782b4100ddf9d28c8ecfc331a4a1c1 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Fri, 8 Feb 2019 18:09:23 +0100 Subject: [PATCH] Fix typo and deprecation message (resolves #3195) [ci skip] --- spacy/errors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/errors.py b/spacy/errors.py index e4c879751..89fb9c289 100644 --- a/spacy/errors.py +++ b/spacy/errors.py @@ -286,7 +286,7 @@ class Errors(object): "setting don't overlap.") E104 = ("Can't find JSON schema for '{name}'.") E105 = ("The Doc.print_tree() method is now deprecated. Please use " - "Doc.json() instead.") + "Doc.to_json() instead or write your own function.") E106 = ("Can't find doc._.{attr} attribute specified in the underscore " "settings: {opts}") E107 = ("Value of doc._.{attr} is not JSON-serializable: {value}")