-
Notifications
You must be signed in to change notification settings - Fork 0
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
BUG #2
Comments
Hi! Thank you for the detailed bug report! I confirm that I'm able to reproduce the bug. The problem is that the fields in the input file are separated by spaces, and not by tab characters, as required by the CoNLL-U format, I believe (https://universaldependencies.org/format.html). That's the reason udon2 didn't manage to read the given CoNLL-U file. If you try the file below instead, it should work just fine.
I'm not entirely sure if I'm reading the formatting section too literally and spaces should be allowed, so I would be grateful if you could provide any link, where it is said that spaces and tabs can be used interchangeably (if you have such a link). What I can definitely agree with is that the error message should be better. In fact, I tried the regular Python shell (all other environment specs being the same) and it gives the error message "Failed to split a line of the CONLL-U format: Success" and then exits from the shell. I don't know why IDLE doesn't show this error message, although, again, the message is too cryptic. Depending on whether the spaces should be allowed, I'll come up with a better message. Please let me know what your thoughts on the matter are. |
Many thanks for your response! You're right, the specification of the CoNLL-U format of the Universal Dependencies documentation reads:
I tested the same example with fields separated by tabs and everything worked perfectly. I was mislead by the fact that the Python |
Describe the bug
I followed the documentation (https://udon2.github.io/basic/) and tried to parse a simple conllu file (see example below from https://github.com/EmilStenstrom/conllu/blob/master/README.md) using the IDLE Shell 3.8.10:
It didn't work. Instead, it caused a crash of the shell:
The follwing error was reported:
To Reproduce
Expected behavior
The code above should work according to the documentation: https://udon2.github.io/basic/
Screenshots
If applicable, add screenshots to help explain your problem.
Environment specs (please complete the following information):
Additional context
The text was updated successfully, but these errors were encountered: