Get List of Nouns & Adjectives from WordNet

女生的网名这么多〃 提交于 2019-12-04 05:29:53

问题


I am pretty new to Wordnet and so finding it a little confusing to be honest. Just wondering how I am able to generate a full list of nouns and a full list of adjectives from the Wordnet database ?

Thanks


回答1:


If you're using the MySQL version of Wordnet 3.0 you can use the following query:

select lemma from words left join senses on words.wordid = senses.wordid left join synsets on senses.synsetid = synsets.synsetid where pos = 'n'

And replace 'n' with 'a' for the adjectives.

Steve



来源:https://stackoverflow.com/questions/4108757/get-list-of-nouns-adjectives-from-wordnet

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!