LevensteinDistance - Commons Lang 3.0 API

后端 未结 1 1046
借酒劲吻你
借酒劲吻你 2021-02-08 22:32

With Commons Lang api I can calculate the similarity between two strings through the LevensteinDistance. The result is the number of changes needed to change one string into ano

相关标签:
1条回答
  • 2021-02-08 23:19

    Just divide by some number. The question is what number? Probably the maximum possible distance for the given pair of strings. I think that's the length of the longer string (ie all the characters are different, plus a few more were added, compared with the shorter string).

    0 讨论(0)
提交回复
热议问题