Skip to content

This demo also uses Sentiwordnet lexical database to measure the positive or negative sentiment of each sentence of the Obama 2012 victory speech and uses D3.js to visualize the data in "realtime".

Notifications You must be signed in to change notification settings

bertez/Popcornjs-sentiment-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Instructions to install:

WARNING: This demo was coded in one day. Expect unreadable, uncommented, spaghetti code. Sorry about that.

Assuming you have installed python 2.6+, pip and virtualenv.

  1. Clone the repository
  2. cd to the folder
  3. Create the virtual environment: virtualenv venv --distribute
  4. Activate the virtual environment: source venv/bin/activate
  5. Install requeriments: pip install -r requeriments.txt
  6. Follow the instructions here to get the Sentiwordnet database file and place it in the right folder (maybe for testing purposes you can search google for "Sentiwordnet.txt" and get one)
  7. Enable the development server: python server.py
  8. Go to: http://localhost:8080

You can see a working demo here: http://sentiment.dev.ber.to/

Have fun. You can contact me via twitter: @bertez

About

This demo also uses Sentiwordnet lexical database to measure the positive or negative sentiment of each sentence of the Obama 2012 victory speech and uses D3.js to visualize the data in "realtime".

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages