Pregunta

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?

¿Fue útil?

Solución 2

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

Otros consejos

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?

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top