Looking for library to estimate likeness of two strings

Lee Capps lcapps at cteresource.org
Thu Feb 7 08:11:33 EST 2008


At 14:01 Wed 06 Feb 2008, agenkin at gmail.com wrote:
>Are there any Python libraries implementing measurement of similarity
>of two strings of Latin characters?
>
>I'm writing a script to guess-merge two tables based on people's
>names, which are not necessarily spelled the same way in both tables
>(especially the given names).  I would like some function that would
>help me make the best guess.
>
>Many thanks in advance!

I used difflib.get_close_matches for something similar:

http://docs.python.org/lib/module-difflib.html

HTH.

-- 
Lee Capps
Technology Specialist
CTE Resource Center





More information about the Python-list mailing list