Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sentence Similarity using WS4J

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:enter image description here

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?

like image 765
Manish Avatar asked Nov 09 '22 15:11

Manish


1 Answers

will i have to write my own algorithm?

Yes. Check this example out.

like image 153
Klerisson Avatar answered Nov 15 '22 06:11

Klerisson