Hello everyone ,
I tried this but I am getting an error

my code :
import nltk.app.wordnet_app as nwapp
from nltk.corpus import wordnet as wn

word = "recognize"
print("Nominalizing " + word)
verb_synsets = wn.synsets(word, pos=wn.VERB)
print nwapp.get_relations_data(word,verb_synsets)


my error :

Nominalizing recognize
Traceback (most recent call last):
  File "nominalizeme.py", line 8, in <module>
    print nwapp.get_relations_data(word,verb_synsets)
  File "/usr/lib/python2.7/dist-packages/nltk/app/wordnet_app.py", line
412, in get_relations_data
    if synset.pos == wn.NOUN:
AttributeError: 'list' object has no attribute 'pos'



On Wed, Apr 2, 2014 at 4:42 PM, Svetoslav Marinov <
[email protected]> wrote:

> You can try Wordnet. Look at the "derivationally related form" see the
> example in the link:
>
>
> http://wordnetweb.princeton.edu/perl/webwn?o2=1&o0=1&o8=1&o1=1&o7=1&o5=1&o9=&o6=1&o3=1&o4=1&s=improvement&i=11&h=1001000010000#c
>
> Best,
>
> Svetoslav
> ________________________________________
> Från: swapnil marathe <[email protected]>
> Skickat: den 2 april 2014 11:49
> Till: [email protected]
> Ämne: Nominalisation
>
> Hello friends,
>
> My task is to convert any verb into appropriate noun form.
>
> eg: improve - improvement
>      recognize - recognition
>
> etc ...
>
> I tried to figure out but was uncessful.
>

Reply via email to