I am trying to find the similarity between two words (for example "home" and "house") using lesk.
I executed the demo code for finding lesk value given here and I also found the value using online ws4j demo here
Both of them give different values i.e.
Values by executing demo code given in ws4j :
WuPalmer = 0.4
JiangConrath = 0.08467941109843881
LeacockChodorow = 1.1349799328389845
Lin = 0.16528546101187536
Resnik = 1.1692001183611416
Path = 0.1111111111111111
Lesk = 0.0
HirstStOnge = 0.0
Values by online demo:
wup( home#n#8 , house#n#10 ) = 1.0000
jcn( home#n#8 , house#n#10 ) = 12876699.5
lch( home#n#8 , house#n#10 ) = 3.6889
lin( home#n#8 , house#n#10 ) = 1.0000
res( home#v#1 , house#v#2 ) = 9.0735
path( home#n#8 , house#n#10 ) = 1.0000
lesk( home#n#8 , house#n#10 ) = 1571
hso( home#n#8 , house#n#10 ) = 16
Why is so huge difference between these two when they both use same ws4j?? Is there any problem with the demo code ??
Home and House, both are in the same
synset. So forwupandjcn, the value seems right. Which version ofJDKdo you use ? Try this link - http://maraca.d.umn.edu/cgi-bin/similarity/similarity.cgi?word1=home&senses1=all&word2=house&senses2=all&measure=wup&rootnode=yesIt'll also give you the same result.
Use
home#n#1andhouse#n#1in online version, it will give the result like your compiler.