¡@

Home 

python Programming Glossary: text_a

How to correct bugs in this Damerau-Levenshtein implementation?

http://stackoverflow.com/questions/3431933/how-to-correct-bugs-in-this-damerau-levenshtein-implementation

# EDIT DISTANCE # cpdef unsigned int editdistance text_a text_b Given texts as Unicode strings or ``bytes`` ``bytearray``.. check in # the case of ``bytes`` and ``str`` objects if text_a text_b return 0 #........................................................................................................... integers cdef Array_of_unsigned_int a _cids_from_text text_a cdef Array_of_unsigned_int b _cids_from_text text_b R c_editdistance..