LingjiaDeng / ws4j

Automatically exported from code.google.com/p/ws4j
0 stars 0 forks source link

Errors in WUP #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.In WuPalmer.java, the depth of synset1 and sysnet2 could be the length of the 
shortest path which also contains a LCS and is no less than the depth of LCS,so 
line "int depth1 = depthFinder.getShortestDepth(synset1) " should be modified.
2.The method getHypernymTrees in PathFinder.java is wrong,history set is not 
necessary.For example,the number of hypernymTree of "decoy" is 4,but this 
version of ws4j only gives 2.

One example to show all above problems is "decoy" and "accomplice".The online 
demo shows the right process of calculation.

Original issue reported on code.google.com by jszjg1...@gmail.com on 2 Nov 2014 at 11:40