This Program uses Mongodb, LingPipe tool kit and MapReduce to classify whether the tweet is positive or negative.
I have collected public tweets when the Government Shutdown was about to begin in US because of Obamacare. I have stored over 15000 tweets on to mongodb. The program for storing public tweet that I have wrote can be found here
https://github.com/kailashjoshi/twitter-mongodb
The data that I have collected for mongodb can be downloaded from
https://dl.dropboxusercontent.com/u/91258003/Obama.zip
1. Install Mongodb and start mongodb with the data downloaded from above
For example ./mongod --dbpath data/db
2. Install Hadoop cluster for running MapReduce Job and start the cluster
3. Install Spring Tool Suite because the program is written on Spring Data
4. Install Maven
- Download the source
- Unzip the folder and open a java class Classify.java
- Edit the path of classifier.txt file (Save and close the file)
- Go to the download source folder from your terminal window
- Run maven command " mvn clean compile package"
- Open Spring Tool Suite and import the project
- Run the project