You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Parenthases (and some other characters) lead to keyerror on inference #226
This is because the list of symbols are the only ones that the model has been trained with, any that are not in that list will generate an error.
One solution is to add more symbols to avoid these errors, this I think is correct if in the dataset those symbols have enough representation, otherwise it can generate artifacts.
Another solution and it is the one that I have used is to add a preprocessing of the text before passing it to the model for inference, this way you make sure that there is no character that is not in the model.
Activity
Pipe1213 commentedon Apr 16, 2025
This is because the list of symbols are the only ones that the model has been trained with, any that are not in that list will generate an error.
One solution is to add more symbols to avoid these errors, this I think is correct if in the dataset those symbols have enough representation, otherwise it can generate artifacts.
Another solution and it is the one that I have used is to add a preprocessing of the text before passing it to the model for inference, this way you make sure that there is no character that is not in the model.