seattlerb/rbayes
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
= rbayes Rubyforge Project: http://rubyforge.org/projects/seattlerb == About rbayes is a bayesian classifier with an email-specific tokenizer. rbayes was originally written by Dan Peterson and later refactored into a single class. == Installing rbayes Install BDB1 from http://moulon.inra.fr/ruby/bdb1.html Then install the gem: $ sudo gem install rbayes == Using rbayes rb = RBayes.new 'inbox.db', # mark a message as tasty: rb.update_db_with email_message, :add_tasty # mark a message as bland: rb.update_db_with email_message, :add_bland # remove a message's tastiness: rb.update_db_with email_message, :remove_tasty # remove a message's blandness: rb.update_db_with email_message, :remove_bland # switch a message from tasty to bland rb.update_db_with email_message, :remove_tasty rb.update_db_with email_message, :add_bland # switch a message from bland to tasty rb.update_db_with email_message, :remove_bland rb.update_db_with email_message, :add_tasty
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published