问题
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