您应该能够使用上述相同的代码并添加几行
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条)