Tableau 用于情感分析的 R 集成 [英] Tableau 's R integration for sentiment analysis

查看:31
本文介绍了Tableau 用于情感分析的 R 集成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能帮我吗.我在youtube上看到关于R中情感分析的视频,那个人展示了如何在Tableau中集成R,但他使用了另一个包,即情感",它不适合我.他使用了sentiment包中的classify_函数,当他在tableau的计算字段"中写公式时,他输入了这个

could you help me. I saw on youtube the video about sentiment analysis in R, and the man showed how integrate R in Tableau, but he used another package , namely "sentiment", it does not suit me. And he used classify _ function from sentiment package and when he wrote formula in "calculate field" in tableau, he entered this

SCRIPT_STR('classify_polarity(.arg,algorithm="Bayes",verbose=TRUE) [,4]',

ATTR([CommentText]))

链接https://boraberan.wordpress.com/2013/12/24/sentiment-analysis-in-tableau-with-r/

但出于各种原因,我使用了此处指定的代码

But for various reasons, i work with code, which specified here

http://chengjun.github.io/en/2014/04/sentiment-analysis-with-machine-learning-in-R/

而且我不知道,根据这段代码,我必须在计算字段中写什么公式.请告诉我,我需要写什么.

And i don't know , on the basis of this code, what formula i must write in the calculate field. Please tell me, what i need write.

推荐答案

据我所知,情绪已经从问题中移除了.但是您会发现 jeffery breen 的情感分析版本最合适.查看此链接了解更多信息.

As far as i know sentiment has been removed from the cran. but you would find sentiment analysis version of jeffery breen most suitable. Check this link for more info.

使用 R 进行情感分析

这篇关于Tableau 用于情感分析的 R 集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆