How to get inflections for a word using Wordnet

ぃ、小莉子 提交于 2019-12-10 01:45:52

问题


I want to get inflectional forms for a word using Wordnet.

E.g. If the word is make, then its inflections are

made, makes, making

I tried all the options of the wn command but I did not get the inflections for a word.

Any idea how to get these?


回答1:


I am not sure wordnet was intended to inflect words. Just found this little writeup about how WordNet(R) makes use of the Morphy algorithm to make a morphological determination of the head term associated with an inflected form https://github.com/jdee/dubsar/wiki/Inflections. I needed some inflection for a project of mine (Python) a little ago and I used https://github.com/pwdyson/inflect.py and https://bitbucket.org/cnu/montylingua3/overview/ (required some hacking, also take a look at the original http://web.media.mit.edu/~hugo/montylingua/)



来源:https://stackoverflow.com/questions/9653815/how-to-get-inflections-for-a-word-using-wordnet

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