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
When using the SmoothingFunction's method4 with a a single word as a hypothesis I get the following error. Which is of course because math.log(1) is 0.
I ended up using just method2 or method1 which doesn't use the function that throws the error, but I guess it would be useful to report it, as some other poor soul may stumble with it.
Looking at the problem, the develop branch has fixed the possibility of dividing by zero by adding hyp_len > 1. However, when passing in a hypothesis of length 1 (like in the example given), it throws the following...
When using the SmoothingFunction's method4 with a a single word as a hypothesis I get the following error. Which is of course because math.log(1) is 0.
I ended up using just method2 or method1 which doesn't use the function that throws the error, but I guess it would be useful to report it, as some other poor soul may stumble with it.
The text was updated successfully, but these errors were encountered: