From 40bf42757f3211215bc3dfdefa8072f6e8bd7281 Mon Sep 17 00:00:00 2001 From: Maarten van Gompel Date: Wed, 23 May 2018 12:27:03 +0200 Subject: [PATCH] fix --- pynlpl/formats/folia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pynlpl/formats/folia.py b/pynlpl/formats/folia.py index c83641cf..2488681d 100644 --- a/pynlpl/formats/folia.py +++ b/pynlpl/formats/folia.py @@ -856,7 +856,7 @@ def textvalidation(self, warnonly=None): if c1 != c2: deviation = i break - msg = "Text for " + self.__class__.__name__ + ", ID " + str(self.id) + ", class " + cls + ", is inconsistent: EXPECTED (after normalization) *****>\n" + deepnormtext + "\n****> BUT FOUND (after normalization) ****>\n" + strictnormtext + "\n******* DEVIATION POINT: " + strictnormtext[min(0,deviation-10):deviation] + "<*HERE*>" + strictnormtext[deviation:deviation+10] + msg = "Text for " + self.__class__.__name__ + ", ID " + str(self.id) + ", class " + cls + ", is inconsistent: EXPECTED (after normalization) *****>\n" + deepnormtext + "\n****> BUT FOUND (after normalization) ****>\n" + strictnormtext + "\n******* DEVIATION POINT: " + strictnormtext[max(0,deviation-10):deviation] + "<*HERE*>" + strictnormtext[deviation:deviation+10] if warnonly: print("TEXT VALIDATION ERROR: " + msg,file=sys.stderr) else: