Return to Snippet

Revision: 49507
at July 22, 2011 23:06 by magicrebirth


Initial Code
>>> import difflib

>>> difflib.SequenceMatcher(None, 'abcde', 'abcde').ratio()
1.0

>>> difflib.SequenceMatcher(None, 'abcde', 'zbcde').ratio()
0.80000000000000004

>>> difflib.SequenceMatcher(None, 'abcde', 'zyzzy').ratio()
0.0

Initial URL
http://stackoverflow.com/questions/682367/good-python-modules-for-fuzzy-string-comparison

Initial Description
http://docs.python.org/library/difflib.html

Initial Title
Statistical String Comparison

Initial Tags

                                

Initial Language
Python