6 Replies Latest reply on Aug 31, 2018 11:43 AM by Jun Ge

    Twitter Sentiment Analysis Using R

    Shivi Bhatia

      Hi All,

       

      i am working on a twitter sentiment analysis for which i have used R to run the sentiment for me. I am referring to very helpful article from Bora Beran here:

       

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

       

      I was successfully able to run the r script yesterday using R serve () and even the sentiments worked fine. But today the same script shows the error as "could not find classify_polarity().

       

      Please note i have downloaded sentiment package from archive in R and is working fine in R Studio. Similarly have checked the connection in Tableau and it shows connection successfully.

      Made some changes to the script as :

      SCRIPT_STR('library(sentiment);

      classify_polarity(.arg1,algorithm=”bayes”,verbose=TRUE)[,4]',

      ATTR([Status Text]))

       

      But the error is get is attached in the png file. Please advice what could be possible issue.