Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. wordnet_senseid = [['[angry, JJ]'], [u'07516354-n'], [u'13987423-n'], ['[sad, JJ]']]
  2.  
  3. for i in wordnet_senseid:
  4. for v in i:
  5. wna = WNAffect('wordnet-1.6/', 'wn-domains-3.2/')
  6. emo = wna.get_emotion(v[0], v[1])
  7.  
  8. print emo
  9.  
  10. output:
  11. None
  12. None
  13. None
  14. None
  15.  
  16. it should be:
  17. anger
  18. none
  19. none
  20. sadness
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement