Skip to content

javaseeds/sentiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

So a few years ago, I was playing with a Twitter reader and running through a really basic "sentiment" analysis tool and I recently dusted off the code and updated it for others to review if they'd like.

The dictionary used here was borrowed from somewhere, I don't remember where, but it takes a non-biased, non-contexual look at the words in live tweets based on a hashtag search.

A good resource for way more inteligent sentiment analysis can be found here: http://sentic.net/

Twitter allows for modest use of their APIs for free but one needs to set up with specific OAuth keys and codes. Those codes are not available here, I have them in a "secret.yml" file not checked in to this repository. Dropwizard nicely allows for on the fly uploads of such information - the links below contain instructions on how to get these keys using your Twitter account.

I have it in my YAML file to look like:

OAuth:
  accessToken: twitterAccessTokenHere
  accessSecret: twitterAccessSecretHere
  consumerKey: twitterConsumerKeyHere
  consumerSecret: twitterConsumerSecretHere

Here are some of the links I culled to build this rudimentary tool

The Links:

(Note: signpost has not been updated for quite sometime, not sure if it's still safe to use - be cautious)

==================================================

start the server

sentiment>java -jar target/sentiment-0.0.X-SNAPSHOT.jar server secret.yml

About

Doing basic work with Twitter APIs and OAuth

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors