String similarity score/hash

前端 未结 12 1227
长发绾君心
长发绾君心 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:46

    It is unlikely one can get a rather small number from two phrases that, being compared, provide a relevant indication of the similarity of their initial phrases.
    A reason is that the number gives an indication in one dimension, while phrases are evolving in two dimensions, length and intensity.

    The number could evolve as well in length as in intensity but I'm not sure it'll help a lot.

    In two dimensions, you better look at a matrix, which some properties like the determinant (a kind of derivative of the matrix) could give a rough idea of the phrase trend.

提交回复
热议问题