finding distance between synsets in wordnet
-
03-12-2019 - |
题
I use Java API for wordnet searching(JAWS) for accessing wordnet from java . When i got to read a few papers about semantic similarity with java , they expect me to find the distance between two synsets (is a relationship is used in building the hierarchy). There is no specific method to find the distance between words in JAWS .
Please tell me if there exists some method in java that gives the distance between two words
Example
apple -> fruit-> fruits and vegetables (2)
vegetables -> fruits and vegetables (1)
distance(apple,vegetable) = 3
Is there a built in method that performs this function ?
解决方案
It seems there isn't using only JAWS, but this answer gives a solution.
其他提示
you can use rita wordnet for that : http://rednoise.org/rita/reference/RiWordNet/getDistance/
不隶属于 StackOverflow