2

さまざまな単語の同義語を取得する必要があります....それを行うためにwordnet 3.0バージョンを使用しています...最初の意味、すべての意味、および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);

私は今ここまでやっています....

4

0 に答える 0