Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
proycon committed May 23, 2018
1 parent ecaca49 commit 40bf427
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pynlpl/formats/folia.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 40bf427

Please sign in to comment.