I have found a lot of information about fuzzy logic, but less information about fuzzywuzzy. I would like to know more about this, the function which determines the logic, if possible, and understand what partial_ratio in Python does.

Any information will be well welcome.


1 Answer 1


In the source code you can find a simple explanation of what does partial ratio in fuzzywuzzy does:

Return the ratio of the most similar substring as a number between 0 and 100

In this code snippet you can find the differences

from fuzzywuzzy import fuzz

fuzz.ratio("this is a test", "this is a test!")
Out:    97

fuzz.partial_ratio("this is a test", "this is a test!")
Out:    100

[1] https://github.com/seatgeek/fuzzywuzzy

[2] https://github.com/seatgeek/fuzzywuzzy/blob/master/fuzzywuzzy/fuzz.py


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.