Skip to content
Snippets Groups Projects
Commit b2e19864 authored by Franck Dary's avatar Franck Dary
Browse files

Improved error message in conlluCheckProblems.py

parent 651a04d8
No related branches found
No related tags found
No related merge requests found
......@@ -110,7 +110,7 @@ def checkSentence(sentence, conllMCD, conllMCDr) :
break
currentNode = id2index[govStr]
if currentNode in alreadySeen :
errorAndExit("ERROR line %d loop in governors :"%(i+1), sentence)
errorAndExit("ERROR line %d (id=%s) loop in governors :"%(currentNode+1, sentence[currentNode][idIndex]), sentence)
################################################################################
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment