views:

56

answers:

1

Hi

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 function which would give me verb in expected form as follows.

v = 'go'
present = present_tense(v)
print present # prints "going"

past = past_tense(v)
print past # prints "went"

Any suggestion or help would be useful.

Thanks in advance.

+2  A: 

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

print en.verb.present("gave")
>>> give
msbmsb
Very good, I think I am looking for this one only... Let me try it.
Software Enthusiastic