我有47篇新闻文章,我想从中提取情感。它们是JSON格式(文章的日期、标题和正文)。我所想要的就是使用TextBlob获得一个带有情感的列表。docs_TextBlob.sentiment) 显然,我得到了以下错误:TypeError: The text argument passed to __init__(text) must be a string, not <class 'pandas.core.series.Series'>关于如何创建带有<em
我在python中使用刮过tweet。我很乐意为每一条推特获取情感。为此,我使用了来自nltk的SentimentIntensityAnalyzer(),并弹出了以下错误。AttributeError: 'Series' object has no attribute 'encode'type(data['Text'])
Out[42]: pandas