Converting adjectives and adverbs to their noun forms

对着背影说爱祢 提交于 2019-12-10 14:53:51

问题


I am experimenting with word sense disambiguation using wordnet for my project. As a part of the project, I would like to convert a derived adjective or an adverb form to it's root noun form.

For example

beautiful ==> beauty wonderful ==> wonder

  1. How can I achieve this? Is there any other dict other than wordnet that provides this kind of transformation?

  2. It would be an added bonus for me if I can map the exact sense of the adjective word to its noun form with exact sense. Is that possible?

Thank you


回答1:


Search google or SO for terms like 'stemming' and 'lemmatization', these terms might help you get what you are looking for.
For example, go to http://qaa.ath.cx/porter_js_demo.html and enter the words 'beautiful' and 'beauty', and you will see they both stem to the same token.
Porter stemmer essentially removes common suffixes found in the english language, so is by no means definitive, but is a pretty good place to start.
You can consider words that map to the same stem to be in some sense synonymous. If you can procure part of speech tags for all these words as well, you will be able to infer that beauty is the noun form of the adjective beautiful.



来源:https://stackoverflow.com/questions/7548479/converting-adjectives-and-adverbs-to-their-noun-forms

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