为什么senti_分类器没有给出任何极性?

2024-04-24 08:12:12 发布

您现在位置:Python中文网/ 问答频道 /正文

我被一件小事困住了。我需要使用python中senti_分类器模块的单词的极性。我正在执行以下操作:

from senti_classifier import senti_classifier
senti_classifier.polarity_scores(["good"])

这给了我(0,0)作为正数和负数。事实上,任何事情的分数都是零。在

在下载语料库时使用nltk.下载(),我下载了/corpo/sentiwordnet和corpora/wordnet/和tokenizers/punkt/

我不知道我哪里出错了!在


Tags: 模块fromimport分类器单词事情goodclassifier