/simple-sentiment-analysis

A sentiment analysis application with Node.js, Express, sentiment, and twitter

Primary LanguageJavaScriptEclipse Public License 1.0EPL-1.0

Simple Sentiment Analysis

Ambivalent Smiley

Sample application demonstrating how to build a sentiment analysis app usind Node.js and a couple modules.
The application takes a keyword or hashtag, connects to Twitter to get a stream of matching tweets, and runs those tweets through a sentiment-analysis module to produce a sentiment score.

You can play with an instance of the application running at http://simplesentimentanalysisforpulse.mybluemix.net/

Configure

Provide the Twitter credentials via the following environment variables:

  • TWITTER_CONSUMER_KEY
  • TWITTER_CONSUMER_SECRET
  • TWITTER_ACCESS_TOKEN_KEY
  • TWITTER_ACCESS_TOKEN_SECRET

Run

npm install
node app.js

Tutorial

This app is based on the following tutorial:

Comments

  • The final app doesn't work with just the snippets from the online tutorial => Some code is missing!