Open HOZHENWAI opened 5 months ago
One of the advantage of the Levenshtein library is that the distance function works on any iterable like list and tuple.
from Levenshtein import distance distance([0,1,2,3,4,5], [5,4,1,2,3])
versus
from fast_edit_distance import edit_distance edit_distance([0,1,2,3,4,5], [5,4,1,2,3])
Obvious workaround would simply be to convert the iterable into string but we would have to check on the efficiency of the conversion.
One of the advantage of the Levenshtein library is that the distance function works on any iterable like list and tuple.
versus