String similarity score/hash

前端 未结 12 1242
长发绾君心
长发绾君心 2020-12-07 09:52

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 (h

12条回答
  •  遥遥无期
    2020-12-07 10:33

    Maybe use PCA, where the matrix is a list of the differences between the string and a fixed alphabet (à la ABCDEFGHI...). The answer could be simply the length of the principal component.

    Just an idea.

    ready-to-run PCA in C#

提交回复
热议问题