string similarity in python

anton muhin antonmuhin.REMOVE.ME.FOR.REAL.MAIL at rambler.ru
Mon Nov 24 06:08:09 EST 2003


Achim Domma wrote:
> Hi,
> 
> I have a list of lets say 100-1000 strings and want to know which one is
> most similar to a reference string. Does somebody know such a library for
> Python? I don't need complicated scientific stuff, I think the most simple
> ones will do it for my data.
> 
> regards,
> Achim
> 
> 

get_close_matches function in standard difflib module might be what you 
are looking for.

regards,
anton.





More information about the Python-list mailing list