-
Notifications
You must be signed in to change notification settings - Fork 213
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
Empty line handling #183
Comments
|
Yes, very good points. My concern was mostly about the translate mode, where we don't have targets, and also no sacrebleu computation. |
yes, that sounds reasonable. I'll write an error message, then. |
Note: the same assertion error can happen, when the model generate an empty string (i.e. special symbol only, such as |
more informative error message in v2.1.0: Lines 64 to 73 in 32eef89
FYI @juliakreutzer |
In
translate
mode, when a file with empty lines is provided, JoeyNMT's error message is not very helpful:Perhaps one could simply skip the line, or output a warning or more informative error message.
I'm not sure if the other modes are ready to handle empty lines, haven't tested it yet.
Here an example:
The text was updated successfully, but these errors were encountered: