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
while testing Simplemma language detection in Annif (see NatLibFi/Annif#626), I stumbled on a ZeroDivisionError when calling in_target_language. It's pretty easy to trigger for example by passing an empty string:
Hello,
while testing Simplemma language detection in Annif (see NatLibFi/Annif#626), I stumbled on a ZeroDivisionError when calling
in_target_language
. It's pretty easy to trigger for example by passing an empty string:Other inputs can trigger this as well, for example any string that consists of only punctuation and/or spaces.
I can work around this in the calling code but I think it would be worth fixing in Simplemma itself.
The text was updated successfully, but these errors were encountered: