Alex Rivera | Logout

Good Python modules for fuzzy string comparison?

Asked 2009-03-25T16:25:08.447
231

I'm looking for a Python module that can do simple fuzzy string comparisons. Specifically, I'd like a percentage of how similar the strings are. I know this is potentially subjective so I was hoping to find a library that can do positional comparisons as well as longest similar string matches, among other things.

Basically, I'm hoping to find something that is simple enough to yield a single percentage while still configurable enough that I can specify what type of comparison(s) to do.

Edit
Report

1 Answer

8

Another alternative would be to use the recently released package FuzzyWuzzy. The various functions supported by the package are also described in this blogpost.

answered 2011-08-29T18:41:14.373

Your Answer