使用WS4J的句子相似性 [英] Sentence Similarity using WS4J
本文介绍了使用WS4J的句子相似性的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想用ws4j计算两个句子之间的相似度。
我正在使用WS4J的在线演示@ out。
I want to use ws4j to calculate similarity between two sentence. I am using the Online Demo of WS4J @ WS4J Online demo
I am using the default example sentences given by WS4J. After entering the sentence and hitting on calculate similarity button, i am getting the following output:
Here i am getting the similarity between individual tokens of the sentence.
How do i proceed further from here.I want to get a single value (say 0.5 or 0.8) which denotes the similarity of these 2 sentences.
Is there a standard way of proceeding from here or will i have to write my own algorithm?
解决方案
will i have to write my own algorithm?
Yes. Check this example out.
这篇关于使用WS4J的句子相似性的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文