From 6de81ae3105e8d1d3a386a97688f9fef31a4a7e1 Mon Sep 17 00:00:00 2001 From: Ines Montani Date: Sun, 24 Feb 2019 15:11:28 +0100 Subject: [PATCH] Fix formatting of errors --- spacy/errors.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/spacy/errors.py b/spacy/errors.py index f2bee10a5..8a2d95b10 100644 --- a/spacy/errors.py +++ b/spacy/errors.py @@ -290,7 +290,8 @@ class Errors(object): "NBOR_RELOP.") E101 = ("NODE_NAME should be a new node and NBOR_NAME should already have " "have been declared in previous edges.") - E102 = ("Can't merge non-disjoint spans. '{token}' is already part of tokens to merge") + E102 = ("Can't merge non-disjoint spans. '{token}' is already part of " + "tokens to merge.") E103 = ("Trying to set conflicting doc.ents: '{span1}' and '{span2}'. A token" " can only be part of one entity, so make sure the entities you're " "setting don't overlap.") @@ -318,12 +319,12 @@ class Errors(object): "So instead of pickling the span, pickle the Doc it belongs to or " "use Span.as_doc to convert the span to a standalone Doc object.") E113 = ("The newly split token can only have one root (head = 0).") - E114 = ("The newly split token needs to have a root (head = 0)") - E115 = ("All subtokens must have associated heads") + E114 = ("The newly split token needs to have a root (head = 0).") + E115 = ("All subtokens must have associated heads.") E116 = ("Cannot currently add labels to pre-trained text classifier. Add " "labels before training begins. This functionality was available " "in previous versions, but had significant bugs that led to poor " - "performance") + "performance.") E117 = ("The newly split tokens must match the text of the original token. " "New orths: {new}. Old text: {old}.")