Code Monkey home page Code Monkey logo

yuitweets's Introduction

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 [email protected]

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.

yuitweets's People

Contributors

rgrove avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.