Turn media insight into action

  • Home
  • Expertise
  • About
  • Pricing
  • Blog
  • Contact

Oct 05 2012

Text analysis using R

Just a brief post to express my excitement at generating some (meaningful) results using R. While many might see it as early days, this is the first tangible list of incidence of key emotions from a Twitter stream relating to Sony mobiles:

> dataSet <- read.csv(“SonyUKMentions.csv”)
> em <- classify_emotion(dataSet$Summary, algorithm = “bayes”)
> print(xtable(table(em[, “BEST_FIT”]), caption = “Tweet emotion”))
% latex table generated in R 2.15.1 by xtable 1.7-0 package
% Fri Oct 05 16:39:53 2012
begin{table}[ht]
begin{center}
begin{tabular}{rr}
  hline
 & V1
  hline
anger &  21
  disgust &   7
  fear &  13
  joy & 275
  sadness &  12
  surprise &  12

All that effort for the last 6 lines! I am going to carry on experimenting with the sentiment package, apply it to other feeds and try some other packages, possibly involving graphs…

 

Written by Michael Blowers · Categorized: Uncategorized

Comments

  1. Mat Morrison says

    October 5, 2012 at 7:17 pm

    What packages are you using? And are you normally a LaTex person?

    Reply
  2. Michael Blowers says

    October 31, 2012 at 5:33 pm

    Hi Mat, Sorry delay in replying. I was using TwitteR to collect and Sentiment (plus other associated) packages to do the Baysian bit.

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Thanks, please prove you are not a robot * Time limit is exhausted. Please reload the CAPTCHA.

Updates by Email

Please complete this form to sign-up to receive my blog posts by email. You can unsubscribe at any time and your email address will not be used for any other purpose.

About

Media analyst with a half an eye on what's coming down the road. Often caught out but always fascinated by the possibilities. Read More…

  • Email
  • Facebook
  • Google+
  • LinkedIn
  • Twitter
  • YouTube

Recent Tweets

Tweets by @michaelblowers

Tweets by @MediaEvaluatio1

Categories

  • #PRstack
  • AMEC
  • CIPR
  • Events
  • Future PR/Comms
  • Google Analytics
  • Google Cloud Natural Language
  • Influencer metrics
  • Integrated Evaluation Framework
  • Lead generation
  • Media Analysis
  • Media Evaluation
  • Media Research
  • PESO model
  • PR Awards
  • PR Evaluation
  • PR Measurement
  • PR Tools
  • Public Relations
  • Sentiment measurement
  • SMART Objectives
  • Social media listening
  • Uncategorized

Archives

  • Home
  • Blog
  • Expertise
  • About
  • Pricing
  • Awards
  • In-house
  • PR Agencies
  • Contact
  • Cookies, etc

Copyright © 2023 · Altitude Pro Theme on Genesis Framework · WordPress · Log in

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Read More
Privacy & Cookies Policy
Necessary
Always Enabled