finding distance between synsets in wordnet
-
03-12-2019 - |
Domanda
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 ?
Soluzione
It seems there isn't using only JAWS, but this answer gives a solution.
Altri suggerimenti
you can use rita wordnet for that : http://rednoise.org/rita/reference/RiWordNet/getDistance/
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow