Dear all,
according to Wikipedia, "the Levenshtein distance between two words is the minimum number of single-character edits (i.e. insertions, deletions or substitutions) required to change one word into the other."
I have found a code that returns the similarity of two strings according to the Levenshtein Distance. I would like to change the code in such a way that it ignores deletions/insertions, so, for example, the comparison of "apple tree" and "apple trees" returns a similarity value of 100%, whereas "big apple tree" and "big pear tree" returns (14-4)/14=10/14
I cant really figure out where in this code deletions and insertions are counted, maybe somebody sees it?
Thank you for your help!
Source:
http://www.vbforums.com/showthread.p...wo-words-in-VB
Bookmarks