This repository has been archived by the owner on Aug 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 876
Faulty result of partial ratio (without python-Levenshtein) #264
Comments
I noticed if you delete the preceding space in the longer string, then expected score of 100 is achieved. I couldn't figure out why.
|
@aniketcomps thanks! It works fine when deleting the preceding space, but when I tried to remove that space and the word and space after that, it fails again! Haha. Im using pure-python Sequence matcher as well.
|
As a I described here: #279 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
It is known that partial_ratio calculation yields incorrect results for some combinations of strings when it uses the python-Levenshtein SequenceMatcher #79 (comment)
However after removing it, for certain string cases, fuzzywuzzy without python-Levenshtein does not work.
And interesting enough, installing python-Levenshtein gives the correct score of 100.
This problem seems to happen when the comparison is made between a short and much longer string.
Has anyone faced this before?
The text was updated successfully, but these errors were encountered: