ALGORITHM - String similarity score/hash

后端 未结 8 1451
遇见更好的自我
遇见更好的自我 2021-02-01 10:16

Is there a method to calculate something like general \"similarity score\" of a string? In a way that I am not comparing two strings together but rather I get some number/scores

8条回答
  •  不要未来只要你来
    2021-02-01 10:30

    There are several such "scores", but they all depend on how you define similarity.

    • I think the python library already has a soundex implementation.
    • you can also compute the Levenshtein distance of two strings
    • NYSIIS?

提交回复
热议问题