Converting verb tenses in Python

I am trying to convert some verbs at other times for some kind of NLP task.

I am trying to use the NodeBox :: Linguistics library as suggested here: Using NLTK and WordNet; how to transform a simple tense verb into its present, past or past form of communion?

But I believe that this code does not print the correct form of the word:

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

I expect it to print β€œfind,” but actually just print β€œfound.”

  • Is this a bug in the library or am I missing something?
  • Would you recommend using any other library for any other reason?
+5
source share
1 answer

Nodebox uses the Ogden Basic English Word List (2000). https://www.nodebox.net/code/index.php/Linguistics#ogden

From what I see, it seems that "Found" is not part of this list. http://ogden.basic-english.org/word2000.html

+2
source

Source: https://habr.com/ru/post/1247070/


All Articles