Your updated find_near_matches_with_ngrams systematically omits the first match in the output list. On the other hand, the last match is systematically duplicated. Can you fix that please?
See examples:
One exact match and two mismatches present in string
Hi Tal,
Your updated find_near_matches_with_ngrams systematically omits the first match in the output list. On the other hand, the last match is systematically duplicated. Can you fix that please?
See examples:
One exact match and two mismatches present in string
fuzzysearch.find_near_matches_with_ngrams("GGGTTLTTSS","XXXXXXXXXXXXXXXXXXXGGGTTVTTSSAAAAAAAAAAAAAGGGTTVTTSSAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBGGGTTLTTSS", 1) Out[9]: [Match(start=42, end=52, dist=1), Match(start=99, end=109, dist=0), Match(start=99, end=109, dist=0)]
Two exact match and one mismatches present in string
fuzzysearch.find_near_matches_with_ngrams("GGGTTLTTSS","XXXXXXXXXXXXXXXXXXXGGGTTVTTSSAAAAAAAAAAAAAGGGTTLTTSSAAAAAAAAAAAAAAAAAAAAAABBBBBBBBBBBBBBBBBBBBBBBBBGGGTTLTTSS", 1) Out[8]: [Match(start=42, end=52, dist=0), Match(start=42, end=52, dist=0), Match(start=99, end=109, dist=0)]
One exact match and one mismatch present in string
Thanks!