Sentence Similarity using WS4J

心不动则不痛 提交于 2019-12-03 13:48:53

问题


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?


回答1:


will i have to write my own algorithm?

Yes. Check this example out.



来源:https://stackoverflow.com/questions/29864751/sentence-similarity-using-ws4j

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!