腾讯云
开发者社区
文档
建议反馈
控制台
登录/注册
首页
学习
活动
专区
圈层
工具
MCP广场
文章/答案/技术大牛
搜索
搜索
关闭
发布
文章
问答
(9999+)
视频
沙龙
1
回答
NameError:未定义名称'
sentiment
‘
、
当我尝试获取我的变量'
sentiment
‘时,我得到了这个错误(NameError: name '
sentiment
’没有定义),即使我把它作为一个全局变量,它也不能工作,如果有人能帮助我的话def sentiments_
analysis
(): if request.method === document.
浏览 4
提问于2019-10-21
得票数 0
1
回答
如何在Python中的dataframe中获取for循环的结果
、
、
这是for循环: print(x)
analysis
= TextBlob(tweet.text) x= x+1 我想有两个专栏,叫做“推特”和“感情”。
浏览 0
提问于2018-03-19
得票数 0
回答已采纳
1
回答
包含本地卷名称的无效字符。如果要传递主机目录,请使用绝对路径。
、
sudo docker run -p 8888:8888 --name=tensorflow_sreedath_py3 -v home/sreedath/Mytest/LSTM-
Sentiment
-
Analysis
:/LSTM-
Sentiment
-
Analysis
-it sreedath/tensorflow_1.1.0_py3 所需输出是在端口8888获得本地主机,但由于错误,本地主机无法工作
浏览 1
提问于2019-01-31
得票数 3
回答已采纳
1
回答
如何使用原始tweet创建新的数据格式
、
、
、
translation in translations: print(a)
analysis
= TextBlob(translation.text) x = x + 1c = ['Tweets
浏览 1
提问于2018-05-17
得票数 0
回答已采纳
1
回答
理解和PySpark - F.when不工作
、
这是我的代码: comprehend = boto3.client(service_name='comprehend', region_name='us-west-2')
sentiment
_
analysis
= comprehend.detect_
sentiment
(Text=text, LanguageCode=langu
浏览 6
提问于2022-01-11
得票数 0
1
回答
从Huggingface模型中提取中性情感
、
、
、
from transformers import pipelinesentence = 'some text
浏览 66
提问于2021-10-26
得票数 0
1
回答
TypeError:
sentiment
_
analysis
()缺少1个必需的位置参数:“极性”?
、
、
def
sentiment
_
analysis
(极性): if x < 0:elif x >0:else:print("neutral") #
analysis
the text
sentiment
new_text= TextBlob(text) processe
浏览 15
提问于2020-04-08
得票数 0
1
回答
OSError:当我尝试在Heroku上部署我的Flask应用程序时,SavedModel文件不存在
、
、
、
、
/twitter_
sentiment
_
analysis
.h5/{saved_model.pbtxt|saved_model.pb} tk = Tokenizer(num_words=1000/twitter_
sentiment
_
analysis</em
浏览 75
提问于2020-11-12
得票数 1
回答已采纳
1
回答
如何使Print()成为Dataframe
encoding="utf-8") as csvfile:for row in rows:
analysis
= TextBlob(sentence) print(
Sentiment
3)
Sentiment
(polarity=0.2)
Sentiment
(
浏览 1
提问于2020-03-20
得票数 0
1
回答
在情感分析任务中给予火炬指数误差的Huggingface
、
、
、
、
API代码:def huggingface_sent(sentenceself.view_fu
浏览 7
提问于2021-11-01
得票数 0
2
回答
数据流模板作业未采用输入参数
、
、
scrap-job --region us-east1 --input
sentiment
_
analysis
.table_viewparser.add_value_provider_argument( help='Input view.
浏览 18
提问于2019-02-07
得票数 1
1
回答
使用Tweepy提取与tweet关联的twitter用户
Very Negative", "rating":
analysis
.
sentiment
Moderately Negative", "rating":
浏览 1
提问于2019-01-25
得票数 0
1
回答
Google Natural language api python陷入无限循环
、
Traceback (most recent call last): main()
浏览 9
提问于2019-03-19
得票数 1
2
回答
如何将来自twitter的情感分析结果写入CSV文件
、
、
、
,access_token_secret) with open("
sentiment
.txtas scorefile:for tweet in public_tweets:
analysis
= TextBlob(tweet.text) print(
analysis</em
浏览 3
提问于2017-06-14
得票数 0
回答已采纳
1
回答
Azure文本分析和Python -从函数拉取值
、
这是一个非常基本的问题,我使用Azure的Text Analytics
sentiment
API构建了一个请求,并希望提取总体的正、中性和负数值。代码如下: def
sentiment
_
analysis
_example(client): response= client.analyze_
sentiment
(documents=documents)[0] print("Docum
浏览 11
提问于2020-10-09
得票数 0
1
回答
Textblob : TypeError:传递给`__init__(Text)的‘text’参数必须是字符串,而不是<class‘panas.core.Series’>,行是列表
、
、
、
、
定义了一个函数,用于从tweet中获取情感:(由我编写) '''Utility function to classify
sentiment
of passed tweet using textblob's
sentiment
method''' # create TextBlob object of passed tweet text
analysis
= TextBlob(
浏览 3
提问于2020-06-27
得票数 0
回答已采纳
1
回答
如何统计一个结果已经出现了多少次?
、
public_tweets = api.search('stackoverflow') print(tweet.text) print(
analysis
.
sentiment
) print ('Positive') elif
浏览 15
提问于2019-02-22
得票数 0
回答已采纳
3
回答
Stop Word Library For
Sentiment
Analysis
工具
、
、
、
我正在构建一个使用谷歌预测API的情绪分析工具。我有一些标记的训练数据,我将使用它们来训练模型。由于这是从社交媒体收集的数据,句子中的大多数单词都是停用词,所以我想在训练模型之前删除它,这是否有助于提高准确性?在java中有没有什么库可以用来删除这些停用词,而不是构建我自己的停用词集。
浏览 7
提问于2015-02-12
得票数 0
1
回答
推特情感分析CSV io.unsupportedOperation错误
、
、
public_tweets = api.search("Estonia")print(tweet.text.encode("utf-8"))print(
analysis
.
sentiment
)api = tweepy.API(auth(scoreFile)tex
浏览 1
提问于2017-01-12
得票数 0
点击加载更多
相关
资讯
Linguistically Regularized LSTMs for Sentiment Classification
Analysis Match模块详解
多语言文本 AI 情感分析 API 数据接口
Meta-analysis and the science of research synthesis
IPA-Analysis Match 模块说明
热门
标签
更多标签
云服务器
ICP备案
对象存储
云点播
实时音视频
活动推荐
运营活动
广告
关闭
领券