Skip to content

chaaridev/twitter-sentiment-dataset

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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 :)!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%