Skip to content

Implementation of Bayes Naïve algorithm to classify spanish documents

License

Notifications You must be signed in to change notification settings

Serginho/BayesNaive

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bayesnaive

An implementation of Bayes Naïve algorithm to classify documents that are written in spanish language.

Installation

Add this line to your application's Gemfile:

gem 'bayesnaive'

And then execute:

$ bundle

Or install it yourself as:

$ gem install bayesnaive

Usage

require 'bayesnaive'

classifier = Classifier::Bayes.new 'Good', 'Bad'
classifier.train_good "That's good"
classifier.train_bad "That's bad"
category = classifier.classify 'something bad'

puts category

About

Implementation of Bayes Naïve algorithm to classify spanish documents

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages