-
Notifications
You must be signed in to change notification settings - Fork 145
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
Possible bug for partial_ratio? #16
Comments
I have the same problem and it can be reproduced easily using this example
This problem happens when 'python-Levenshtein' is installed. when I removed it, the fuzz give the expected output of 100%. but it still has the same problem with other examples. Any idea ? |
I tried with RapidFuzz and that give the correct result. This seems to suggest this is a bug. For me, RapidFuzz was a drop-in replacement. |
Thank you so much, but the problem with RapidFuzz is that it doesn't have the |
This is caused by ztane/python-Levenshtein#16.
Assuming you search for a drop in replacement for difflib, you might be interested in Note that this issue is well known for fuzzywuzzy: seatgeek/fuzzywuzzy#79 |
@MNassar17 sorry its out of refrence but using the exact matching position what sort of benefits do u extract, exploring for some work use case |
Hi,
Thank you very much for this package, it is really great!
I noticed unexpected behavior for the below example. It is probably just me not understanding how
partial_ratio
is supposed to work but I want to mention it in case it is a bug.Sometimes
partial_ratio
returns a ratio under one hundred even though there is an exact match. The below script shows this behavior. With a longer string it fails but if a shorten it, it returns the expected output.Tested on Windows 10 with Python 3.8
If this is a bug and the solution is not obvious to you, let me know and I will have a look if I can find the issue.
The text was updated successfully, but these errors were encountered: