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.
- Clone the repository
cd
to the folder- Create the virtual environment:
virtualenv venv --distribute
- Activate the virtual environment:
source venv/bin/activate
- Install requeriments:
pip install -r requeriments.txt
- 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)
- Enable the development server:
python server.py
- 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