我們如何找到synset中的單詞短語?尤其是,藉此同義詞集的形容詞「黃牌警告」:synset中的wordnet word短語
預訂,從事,休耕 - (提前預訂)
我使用RitaWN Java包(共發現版本是2.1 ),並且似乎無法找到這些短語。在上面的例子,當我運行
RiWordnet wordnet = new RiWordnet(null);
String[] syn = wordnet.getSynset(word, "a", true);
for(int i = 0; i < syn.length; i++)
System.out.println(syn[i]);
它只輸出
預訂接合
雖然 「休耕」 未列入。
我測試了很多,並沒有找到所有的短語。又如:
商品,商品好,好 - (商業物品)
那麼 「好交易」 不會從getSynset()方法返回。那麼我們怎麼才能真正得到短語?
(從http://rednoise.org/rita/wordnet/documentation/index.htm獲得ritawn包)