MIT Java WordNet Interface: Getting WordNet lexicographer classes or super-senses

后端 未结 1 1613
无人共我
无人共我 2021-01-03 13:02

I have a project where I need to get the lexical meaning of a word. I am thinking of using WordNet because it has its own lexicographer classes also called super-senses. I j

相关标签:
1条回答
  • 2021-01-03 13:48

    You should be able to use the same code mentioned above and add few more lines

        IIndexWord idxWord = dict.getIndexWord("dog", POS.NOUN);
        IWordID wordID = idxWord.getWordIDs().get(0);
        IWord word = dict.getWord(wordID);
        ISynset synset = word.getSynset();
        String LexFileName = synset.getLexicalFile().getName();
        System.out.println("Lexical Name : "+ LexFileName);
    
    0 讨论(0)
提交回复
热议问题