Skip to content
This repository
branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 dict
Octocat-spinner-32 ext
Octocat-spinner-32 features
Octocat-spinner-32 lib
Octocat-spinner-32 research
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 app.rb
README.md

Twitter Sentiment

Take a tweet, extract a TON of information out of a short bit of text. Let's do this.

Get it running

1. Install RVM (if you have it already, skip to step 2)

(from beginrescueend.com)
bash -s stable < <(curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer)
source ~/.bash_profile

Linux Users

rvm install 1.9.3

Mac Users

Install XCode from the App Store if you haven't already (it's free).

rvm install 1.9.3 --with-gcc=clang

OS X users may be interested in Jewelry Box, a Cocoa UI for RVM.

Windows users

Install Ruby from RubyInstaller

The DevKit is also required to install some of the gems described below

2. Install the necessary gems

gem install bundler
bundle install

3. Run it

bundle exec ./app.rb

Directory Structure

lib/ is where the bulk of the code lies. It is all of the library files used by our app.rb.

  • twitter-sentiment/: libraries in our namespace.

    • input/: libraries that contact the outside world via APIs (generally).

    • output/: libraries that send data outward.

    • parser/: libraries that get data form inputs, parse them, and give weights to be aggregated.

    • prefs/: preferences and constants to be used by any of the aforementioned libraries/files.

dict/ contains the collection of dictionaries (bag of words, or BoW) being used for sentiment analysis.

research/ is a general placeholder for interesting papers and potential BoWs.

Research Leads

AFINN

Descriptions

AFINN: A new word list for sentiment analysis

Simplest Sentiment Analysis in Python

Related

Twitter Mood

ANEW Sentiment-Weighted Word Bank

Measuring User Influence in Twitter

Projects/Papers

Sentiment strength detection in short informal text

Twitter as a Corpus for Sentiment Analysis and Opinion Mining

We Feel Fine

Modeling Statistical Properties of Written Text (lookup!)

Something went wrong with that request. Please try again.