Closed jordimas closed 1 year ago
Thank you @jordimas for using my library and for reporting this bug. It is fixed now in Lingua 1.3.1. The cause of the ZeroDivisionError
was an internal numerical underflow of probabilities for long texts. Switching from floats to Decimal
s in the right spot fixed it.
Thanks so much for the quick fix!
Hello.
When running this code with lingua_language_detector version 1.3.0.
I get this error:
I attached the text file that triggers the problem. It works fine with others texts. This happens often in a crawling application that I'm testing.