我需要获取不同单词的同义词......我正在使用wordnet 3.0版本来做到这一点......用于获取first sence,all sence和WSD的同义词的方法或函数名称是什么......
ws=new JWS(dir,"3.0");
jcn=ws.getJiangAndConrath();
idict=ws.getDictionary();
idict.open();
IIndexWord idxWord = idict.getIndexWord("pine", POS.VERB);
wlist = idxWord.getWordIDs();
wordID = (IWordID)wlist.get(0);
iword = idict.getWord(wordID);
best_sense = iword.getSynset().getGloss();
System.out.println("Sense of pine "+best_sense);
我已经做到了,直到现在......