An open API service indexing awesome lists of open source software.

https://github.com/frankfarrell/ireland-sentiment

Sentiment and Analysis for Irish Data Stream
https://github.com/frankfarrell/ireland-sentiment

Last synced: 9 months ago
JSON representation

Sentiment and Analysis for Irish Data Stream

Awesome Lists containing this project

README

          

ireland-sentiment
=================

Sentiment and Analysis for Irish Data Stream

# Prerequisites:

* Erlang
* RabbitMQ
* Python 3+
* Run setup.sh -> installs needed python dependencies
* Get the training data produced here : http://help.sentiment140.com/for-students/
Extract and rename file main sentiment.csv

# To Run:

1. python tornadoapp.py
2. python feed_producer.py

# Server-Side Stack

Tornado
Nltk
Pika twitter client

# Client

Leaflet Map
d3js overlay showing Voronoi tessellation based on tweet sentiment

# Code Description

client.py: A message comes in, it is classified and pushed to all listeners
feed_producer.py : Sets up connection to twitter feed and pushes to queue
handlers.py : Accepts event listeners from clients
tornadoapp.py : Starts tornado application
tweetclassifier.py: sets up Naive Bayes Model based on historic twitter feed