I'd like to see if a string exists, even approximately, in another. For
example if "black" exists in "blakbird" or if "beatles" exists in
"beatlemani a". The application is to look though a long list of songs
and return any approximate matches along with a confidence factor. I
have looked at edit distance, but that isn't a good choice for finding
a short string in a longer one. I have also explored
difflib.Sequenc eMatcher and .get_close_matc hes, but what I'd really
like is something like:
a = FindApprox("bea tles", "beatlemani a")
print a
0.857
Any ideas?
jab
example if "black" exists in "blakbird" or if "beatles" exists in
"beatlemani a". The application is to look though a long list of songs
and return any approximate matches along with a confidence factor. I
have looked at edit distance, but that isn't a good choice for finding
a short string in a longer one. I have also explored
difflib.Sequenc eMatcher and .get_close_matc hes, but what I'd really
like is something like:
a = FindApprox("bea tles", "beatlemani a")
print a
0.857
Any ideas?
jab
Comment