An example on sentiment analysis with R

by Yanchang Zhao, RDataMining.com

There is a nice example on sentiment analysis with R at <http://viksalgorithms.blogspot.com.au/2012/06/tracking-us-sentiments-over-time-in.html>.

In the example, the Wikileaks cable corpus is analyzed to track US sentiments of other countries and their presidents over time. The example describes how to map sentences to a sentiment score of -5 to 5 with the AFINN list. It also introduces named entity recognition with the JRC-Names word list. Moreover, it uses random indexing technique to build up a matrix of topic words and sentiment words.

It is a good example to learn from to start your own sentiment analysis.

About these ads

About Yanchang Zhao

I am a data miner, using R for data mining applications. My work on R and data mining: RDataMining.com; Twitter; Group on Linkedin; and Group on Google.
This entry was posted in Data Mining, R and tagged , , . Bookmark the permalink.

2 Responses to An example on sentiment analysis with R

  1. Pingback: An example on sentiment analysis with R | RDataMining | Social Media Analytics and US Politics | Scoop.it

  2. Raj Kumar says:

    Hi Yanchang,
    Your example on “http://www.rdatamining.com/examples/text-mining” is great.
    However it is possible to do sentiment analysis ( ie score each tweet) for time series plots.
    It is possible to use tweeter specific feature such as ‘RT’ for analysis and than applying page rank algothim/graph rank algrothim to pick up best score.

    Hope to hear from you soon.

    Regards,

    Raj

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s