Вопрос

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

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

Другие советы

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?

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top