문제

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/

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top