Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wordnet_senseid = [['[angry, JJ]'], [u'07516354-n'], [u'13987423-n'], ['[sad, JJ]']]
- for i in wordnet_senseid:
- for v in i:
- wna = WNAffect('wordnet-1.6/', 'wn-domains-3.2/')
- emo = wna.get_emotion(v[0], v[1])
- print emo
- output:
- None
- None
- None
- None
- it should be:
- anger
- none
- none
- sadness
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement