Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.06 KB

README.md

File metadata and controls

41 lines (26 loc) · 1.06 KB

emotionannotate

For the SMILE project

Set up

Python 2.7 with pip 7.1.2

Use 'pip install -r requirements.txt' to install all relevant Python dependancies.

Run web app

cd src

python app.py

Run batch classification

If you have a list of tweets that you want to run our emotion classifier on, you can:

cd src

python Classification.py

Then follow the instructions.

More info in src/readme.txt

Input/output data format

Input and output are both in json format. For example,

{"tweetid":"614912375288893440", "text":"@britishmuseum awesome museum"}

as an input entry,

{"tweetid":"614912375288893440", "text":"@britishmuseum awesome museum", "emotions":{"anger":"no","disgust":"no","happy":"yes","sad":"no","surprise":"no"} }

as its output.

Reference