Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 JAWS-Java API 进行 wordnet 搜索。我一直在搜索,但无法找到如何计算给定单词可以具有的意义的数量。它有什么功能吗?在找到如何标记单义词之后。
如果一个词只属于一个同义词集,则它只有一个含义 -> 单义词。
JAWS 代码片段:
WordNetDatabase database = WordNetDatabase.getFileInstance(); Synset[] synsets = database.getSynsets("monosemous"); if(synsets.length == 0) //not found else if(synsets.length == 1) //monosemous word
PS:“monosemous”是单义词。