私は wordnet の上位語を認識していますが、すべての用語には多くの意味があるため、単語の文脈上の意味を見つけるために Lesk アルゴリズムを使用せざるを得ません。
その過程で、私は質問を見なければなりませんでした。答えとして指定されているこのアルゴリズムを実装しようとしています。
しかし、私の主な問題は、「2つのノード間のノード数の逆数の積」を見つけることです
2 つの単語間のノードの数を調べるにはどうすればよいですか。
ハイパーニムを使用しようとすると、階層内の現在の単語の 1 レベル上の単語のセットが返されます
例: アプリケーションという単語を使用する場合。Wordnet は 6 つの意味を提案し、それぞれの意味にはルート ワードのセットがあります。階層の次のレベルとしてどの単語を考慮する必要がありますか?
for the 1th meaning of application the hypernyms are
request petition postulation
for the 2th meaning of application the hypernyms are
use usage utilization utilisation employment exercise
for the 3th meaning of application the hypernyms are
program programme computer program computer programme
for the 4th meaning of application the hypernyms are
manual labor manual labour
for the 5th meaning of application the hypernyms are
remedy curative cure therapeutic
for the 6th meaning of application the hypernyms are
effort elbow grease exertion travail sweat
距離を見つけるために、ルートに構築する階層内の次の単語としてどの単語を考慮する必要がありますか?
助けてください、私は緊急に必要です