Python中的动词时态转换

2024-06-02 12:11:59 发布

您现在位置:Python中文网/ 问答频道 /正文

我试着把某些动词转换成其他时态来完成一些NLP任务。在

我尝试使用NodeBox::Linguistics库,如下所示: Using NLTK and WordNet; how do I convert simple tense verb into its present, past or past participle form?

但我发现这段代码并没有打印出单词的正确形式:

print en.verb.present("found")
print en.verb.infinitive("found")

我希望它打印“find”,但实际上它只打印“found”。在

  1. 这是图书馆里的错误还是我遗漏了什么?在
  2. 您是否建议您出于其他原因使用其他库?在

Tags: andnlp动词wordnetenusingpastprint