Question

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?

Was it helpful?

Solution 2

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

OTHER TIPS

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?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top