-
Notifications
You must be signed in to change notification settings - Fork 57
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
Error in check - Probability must be <= 1 but was Infinity #80
Comments
Hi @Kailegh! Can you share a text that throws this error so I can reproduce? Thanks. |
Problem is that it is not consistent, I have tried a lot of times and there is no certain text that raises the Error, I havent been able to discover a patron |
That's strange. But then maybe you could just wrap your code in a retry loop that checks the same text again in the unlikely situation where you see this error? (tenacity is quite good for this sort of thing.) |
I am getting the following error when using the check function
matches = tool.check(text)
I cant find the source of the error, it is raised from different texts and I cant find a way of reproducing it. When I run my scripts it sometimes fails and sometimes just works fine.
I create the tool like this, and only execute it in a single process, since I wanted to reduce the probability of getting errors.
I do not know if you could have a clue of why that happens
Thank you !
The text was updated successfully, but these errors were encountered: