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.