sentdecoder is a real time twitter based sentiment analysis engine built using java. This engine can fetch tweets based on user query and run several types of analysis on them. The results of the analysis are displayed using Chartjs charts to make them visually promising.
- Live Dashboard for sentiment analysis.
- Stream or non stream type analysis.
- Generating report of any type of analysis.
- Option to do zonal analysis/predicting sentiment of a country.
- History of all analysis done.
- User account management.
- Stunning visualizations for the sentiment results obtained.
- Geoplotting feature in case of zonal analysis.
- Option to choose more than one source for fetching user reviews. (Currently only fetching Twitter).
- Stream plotting at near real time (no delay).
- User logs in to the system.
- Open any one of the four analysis options.
- Types the query and starts the analysis.
- System calls the Python scripts underneath to do the analysis work.
- Analysis completes in 20 seconds and reults are returned to the web application.
- Results are plotted in the graphs.
- User can do any other analysis or generate report of the results.
- Java 1.7+
- Eclipse for Java EE developers
- Apache Tomcat 8.0+
- Python (Anaconda distribution)
- Chartjs
- jsPDF
- MySql Server
- Add the Tomcat server to eclipse.
- Add the JRE system library to eclipse.
pip install -r requirements.txt
(File provided in the repository)
- Create a new user in MySql.
- Create a new database for the user.
- Create table Users in that database with the following specification:
Field | Type | NULL | Key | Extra |
---|---|---|---|---|
user_id | int(6) unsigned | NOT NULL | PRIMARY KEY | AUTO_INCREMENT |
firstname | varchar(30) | NOT NULL | NIL | NIL |
lastname | varchar(30) | NOT NULL | NIL | NIL |
company | varchar(30) | NULLABLE | NIL | NIL |
varchar(50) | NOT NULL | UNIQUE | NIL | |
passwd | varchar(50) | NOT NULL | NIL | NIL |
- Import the project in eclipse.
- If importing doesn't work then create a project with the same name and copy all files.
- Edit the Path.java file (Add your own paths to files).
- Edit the DatabaseConnection.java file and change the database link with your own.
- Save everything and run the application.
- Create a new account/Log In to your account.
- Open Guide page for instructions.
- Use the application accordingly.