No description, website, or topics provided.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.

README.md

Overview

This code serves as an extension to Sanders Analytics twitter sentiment corpus, originally designed for training and testing Twitter sentiment analysis algorithms. Since twitter has since deprecated their original API, the code had to be modified to support the current version (v1.1). Accordingly, support for OAuth2 has been added, and the running time of the script has been significantly improved.

Running this script will generate ~5K hand-classified tweets. For more information, please refer to 'readme.pdf'.

Installation

  1. Install python-oauth2 lib (unless already installed):
git clone git://github.com/simplegeo/python-oauth2/
cd python-oauth2
sudo python setup.py build  
sudo python setup.py install
  1. Create a twitter app, and update the global OAuth2 properties in 'install.py'.
  2. Run python install.py. If it fails with an SSL error, run as a superuser - sudo python install.py.
  3. Hit enter three times to accept the defaults (make sure rawdata folder exists), or set your own paths.
  4. Wait until completion (~9h). You should have a new file called full-corpus.csv with the entire labeled dataset.

Enjoy data-mining :)!