nlp - Finding the Polarity of particular word using sentiWordNet -


i working on opinion mining algorithm in which, trying find polarity of particular word.

algorithm states - search other pos categories noun, adjective, adverb , accumulate polarity values using sentiwordnet.

i integrated sentiwordnet in current system , working determining polarity of sentence. want polarity particular word.

i found 1 method senti_classifier.synsets_score() seem useful unable find documentation related this.

can describe usage of above method or guide me documentation site.? there other way can find polarity of particular word?

thanks in advance

you can use example code petter törnberg provided on sentiwordnet site. calculates sentiment score of each word in thesaurus weighted average of scores of synsets.