Sha256: 618ac1f6c2aa2de5c9a8b58316c9b04bf6368aa808d090404478137d1f1549a1

Contents?: true

Size: 797 Bytes

Versions: 2

Compression:

Stored size: 797 Bytes

Contents

# Classiphier
[![Build Status](https://travis-ci.org/alejandrodevs/classiphier.png?branch=master)](https://travis-ci.org/alejandrodevs/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

2 entries across 2 versions & 1 rubygems

Version Path
classiphier-0.1.2 README.md
classiphier-0.1.1 README.md