Sha256: 70614e62b3340c0c5b329e925a451012c46a246e5454ced954fd5619fe701911
Contents?: true
Size: 807 Bytes
Versions: 1
Compression:
Stored size: 807 Bytes
Contents
# Classiphier [![Build Status](https://travis-ci.org/alejandrogutierrez/classiphier.png?branch=master)](https://travis-ci.org/alejandrogutierrez/classiphier) Classifier module using Bayesian's theorem. *This is another implementation based on cardmagic/classifier.* ## Installation Add this line to your Gemfile: ```ruby gem 'classiphier' ``` Run the bundle command to install it. ## Getting started ```ruby require 'classiphier' classifier = Classiphier::Bayes.new classifier.train :positive, 'This is a great tweet. I like it!' classifier.train :positive, 'With great power comes great responsibility' classifier.train :negative, 'This tweet is not good. I hate it!' classifier.train :negative, 'Here are some bad words, I hate you' classifier.classify 'I like these tweets' # => :positive ```
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
classiphier-0.1.0 | README.md |