conllueditor icon indicating copy to clipboard operation
conllueditor copied to clipboard

Error reading sentence

Open david-kuehn opened this issue 1 year ago • 6 comments

Hello,

I'm running into an error when pressing "Read Sentence" that I haven't been able to get past. I am using the latest version and JDK v18. The error is below:

"General error: Cannot invoke "String.length()" because the return value of "com.orange.labs.conllparser.ConllSentence.getText()" is null"

It appears that the CONLL-U file is being successfully loaded, because I am able to see the statistics when I click on the filename in the editor, but if I try to press any of the buttons below, I get the error.

david-kuehn avatar Apr 19 '24 18:04 david-kuehn

I get the same error if there is no # text = line at the beginning of the sentence.

jerekupari avatar Apr 19 '24 18:04 jerekupari

I was able to get this issue resolved by revising the formatting of the CONLL-U file that I was trying to load.

david-kuehn avatar Apr 19 '24 18:04 david-kuehn

Great.

I noticed that Trankit does not write the # text = ... line when using the trankit2conllu() function. https://github.com/nlp-uoregon/trankit/issues/85

It would be nice if ConlluEditor would be able to load the file nevertheless, maybe with the --relax switch. Looking at the GUI I don't see why the # text would be necessary, but of course that doesn't mean it is easy to do.

jerekupari avatar Apr 19 '24 18:04 jerekupari

I'll have a look at that.

jheinecke avatar Apr 19 '24 19:04 jheinecke

It's done: get V2.25.5!

You surprised me in a good moment :-)

jheinecke avatar Apr 19 '24 19:04 jheinecke

It works! Thanks :)

jerekupari avatar Apr 23 '24 09:04 jerekupari