Using WN-Affect to detect emotion/mood of a string

前端 未结 2 1054
青春惊慌失措
青春惊慌失措 2020-12-09 06:23

I downloaded WN-Affect. I am however not sure how to use it to detect the mood of a sentence. For example if I have a string \"I hate football.\" I want to be able to detec

2条回答
  •  借酒劲吻你
    2020-12-09 06:41

    WordNet-Affect uses WordNet 1.6 offsets.

    However, WordNet 1.6 is still available for download. You can use the nltk.corpus.WordNetCorpusReader class to load it. I wrote all the code to do it here.

提交回复
热议问题