Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.
/ yuitweets Public archive

💀 A Bayesian tweet classifier that can learn the difference between tweets about the YUI Library and tweets about J-pop idols named Yui. Unmaintained.

License

Notifications You must be signed in to change notification settings

rgrove/yuitweets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YUITweets

YUITweets is a Bayesian tweet classifier that can learn how to distinguish between tweets about the YUI Library and tweets about J-pop idols named Yui.

It consists of two parts:

  1. A Sinatra app that provides a simple voting interface to classify tweets as YUI-related or not YUI-related, as well as RSS feeds for each category of tweets.

  2. A standalone Ruby executable that retrieves Twitter search results, stores them in the database, and attempts to automatically classify them if the classifier is confident enough.

Usage

The best way to use YUITweets is via the official public installation at http://tweets.yuilibrary.com/. This version already has a large classification corpus, and is quickly getting even better at classifying tweets.

If you'd like to hack on your own instance of YUITweets, you'll need Ruby 1.9.1 or higher, MongoDB 1.6.2+, and any Rack-compatible web server. Thin is my favorite. If you don't already have Thin installed, run:

gem install thin

Next, clone the YUITweets git repo:

git clone git://github.com/rgrove/yuitweets.git
cd yuitweets

Build and install the gem to pull in necessary dependencies:

rake install

Copy conf/config.rb.sample to conf/config.rb and edit it to configure your MongoDB connection settings.

Now you should be ready to pull in some tweets and run the local server:

rake tweets
rake devserver

If that worked, YUITweets should be alive at http://localhost:3000/.

Contributing

Patches are more than welcome. Please fork the GitHub repo, create a topic branch for your change, commit your change to the branch, and then send me (rgrove) a GitHub pull request from your branch with a description of the change and why you think I should pick it up.

License

Copyright (c) 2011 Ryan Grove ryan@wonko.com

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

💀 A Bayesian tweet classifier that can learn the difference between tweets about the YUI Library and tweets about J-pop idols named Yui. Unmaintained.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published