Browse files

moved bags of words to dict/ and an example twitter ruby file, to be …

…turned into a class
  • Loading branch information...
1 parent 2b51fa7 commit 293bd09f24bf42a9470cbf695ec2ae466a7f7f59 Jake McGinty committed Feb 16, 2012
@@ -4,6 +4,23 @@ We've all seen those interesting visualizations about twitter "moods." Most of t
Let's do this.
+Directory Structure
+`dict/` contains the collection of dictionaries (bag of words, or BoW) being used for sentiment analysis.
+`lib/` contains the generalized libraries used by our toolkit.
+`research/` is a general placeholder for interesting papers and potential BoWs.
+Preparing your environment
+The toolbox requires JRuby, as it interacts with Java libraries, which only the JRuby VM supports. It is highly recommended you use [RVM]( to manage the various Ruby VMs. OS X users can use [Jewelry Box](
+With RVM installed:
+ rvm install jruby
+ rvm use jruby
+ sudo gem install twitter
Research Leads
@@ -27,4 +44,6 @@ Projects/Papers
[Twitter as a Corpus for Sentiment Analysis and Opinion Mining](
-[We Feel Fine](
+[We Feel Fine](
0 research/AFINN/AFINN-111.txt → dict/AFINN-111.txt
File renamed without changes.
0 research/AFINN/AFINN-96.txt → dict/AFINN-96.txt
File renamed without changes.
13 lib/sigmusic/connectors/twitter.rb
@@ -0,0 +1,13 @@
+require 'rubygems'
+require 'tweetstream'
+#require 'sigmusic/prefs/defaults'
+#require 'sigmusic/prefs/secrets'
+poo =
+ :consumer_key => 'xW42O1MOwxqqFdq7BxqSg',
+ :consumer_secret => 'UcBrgpAYiikKIVJw9Rkog0QK2EzJdVcselCbC8HAVmQ',
+ :oauth_token => '92918151-Bb5J5q0l9o14vxcLLvUwZwPqra4FKxFUpqE08aNUo',
+ :oauth_token_secret => 'cUQtc5NnfwKdSHFJGDX2hog6EijdL1zgQuHioAElY')
+poo.follow(480959867) do |status|
+ puts "[#{status.user.screen_name}] #{status.text}"

0 comments on commit 293bd09

Please sign in to comment.