Require help on accessing WordNet hierarchy for implementing algorithm

261 views Asked by At

I am trying to implement Resnik's similarity measure using WordNet hierarchy in java.

Example:- deposit money in bank. In above example suppose I want to disambiguate DEPOSIT & BANK. So, I will have to 1st access nodes of senses of respective words & then apply algorithm.

My question is:- How do I programatically access the WordNet hierarchy/node positions?

2

There are 2 answers

0
variable On BEST ANSWER

I have used the Java WN Similarity project as suggested by @damned

0
Dimoklis On

dirty, not efficient, but obvious?: why don't you calculate all the possible pairs of glosses/senses for the given terms and keep the max similarity score (or before that the corresponding LCS min/max, do not know the details of the algorithm) given that the words are in the same context, e.g. phrase, sentence or paragraph level?