Is there an algorithm that tells the semantic similarity of two phrases

后端 未结 11 1272
孤独总比滥情好
孤独总比滥情好 2020-11-27 09:44

input: phrase 1, phrase 2

output: semantic similarity value (between 0 and 1), or the probability these two phrases are talking about the same thing

11条回答
  •  爱一瞬间的悲伤
    2020-11-27 10:28

    I would look into latent semantic indexing for this. I believe you can create something similar to a vector space search index but with semantically related terms being closer together i.e. having a smaller angle between them. If I learn more I will post here.

提交回复
热议问题