Twitter datasets can be found here: http://help.sentiment140.com/for-students
IMDb datasets can be found here: http://ai.stanford.edu/~amaas/data/sentiment/
The twitter datasets are modified for ease of use. The excel files consist of two columns, one containing the class label and other column has tweets, the rest of the columns are deleted.
The IMDb datasets are left intact.
Run:
python sentiment_analysis.py