0

我正在尝试使用 Microsoft Analytics API 构建应用程序来分析调查数据的情绪。其中一项调查回复具有强烈的负面含义

就个人而言,世界上没有一家公司需要这个 产品

但 API 返回 50 分。这是什么原因?

4

1 回答 1

0

我刚刚在他们的页面上尝试过,它看起来已经发生了变化,并且报告了 73% 的情绪。

情绪

不过,我想我知道为什么。在“关键短语”中,没有提到“不”这个词。从 中查看停用词nltk,“not”似乎是停用词。

from nltk.corpus import stopwords

stop_words = stopwords.words("english")

[word for word in stop_words if word == "not"]  # Returns ['not']

由于“不”可能已作为停用词被删除,因此没有负面情绪可以给出负面情绪。

于 2018-03-14T18:32:47.073 回答