Using NLTK and WordNet; how do I convert simple tense verb into its present, past or past participle form?

后端 未结 4 1907
悲哀的现实
悲哀的现实 2020-11-27 15:20

Using NLTK and WordNet, how do I convert simple tense verb into its present, past or past participle form?

For example:

I want to write a fu

4条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-27 15:41

    I think what you're looking for is the NodeBox::Linguistics library. It does exactly that:

    print en.verb.present("gave")
    >>> give
    

提交回复
热议问题