def levenshtein_similarity(string1, string2):
    return 1 - levenshtein(string1, string2) / float(max(len(string1),  len(string2), 1.0))
Returns the similarity of string1 and string2 as a number between 0.0 and 1.0.
dataset/ETHPy150Open clips/pattern/pattern/metrics.py/levenshtein_similarity