Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error reading sentence #40

Closed
david-kuehn opened this issue Apr 19, 2024 · 6 comments
Closed

Error reading sentence #40

david-kuehn opened this issue Apr 19, 2024 · 6 comments

Comments

@david-kuehn
Copy link

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.

@jerekupari
Copy link

jerekupari commented Apr 19, 2024

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

@david-kuehn
Copy link
Author

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

@jerekupari
Copy link

Great.

I noticed that Trankit does not write the # text = ... line when using the trankit2conllu() function.
nlp-uoregon/trankit#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.

@jheinecke
Copy link
Member

I'll have a look at that.

@jheinecke
Copy link
Member

It's done: get V2.25.5!

You surprised me in a good moment :-)

@jerekupari
Copy link

It works! Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants