No commit activity in last 3 years
No release in over 3 years
A simple bayesian classifier
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

simple_classifier¶ ↑

Bayesian Classification without a lot of fuss

Installation¶ ↑

  • gem install simple_classifier

simple_classifier depends on Martin Porter’s stemmer gem, which should be installed when you run the command above.

Usage¶ ↑

require 'simple_classifier'
b = Classifier::Bayes.new 'Interesting', 'Uninteresting'
b.train_interesting "here are some good words. I hope you love them"
b.train_uninteresting "here are some bad words, I hate you"
b.classify "I hate bad words and you" # returns 'Uninteresting'

More info on Bayesian Classification¶ ↑

Authors ¶ ↑

  • Ben Orenstein ben.orenstein@gmail.com

  • Lucas Carlson lucas@rufy.com

This library is released under the terms of the GNU LGPL. See LICENSE for more details.