Skip to content

bwang482/emotionannotate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

For the SMILE project

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages