Skip to content

Commit

Permalink
version bump 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
mustafaturan committed Jul 11, 2013
1 parent 53bddc9 commit f50defb
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 3 deletions.
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ Train category with a document.

bayes.train('positive', 'great if you are in a slap happy mood .')
bayes.train('negative', 'bad tracking issue')

### Untrain
Untrain category with a document.

bayes.untrain('positive', 'great if you are in a slap happy mood .')
bayes.untrain('negative', 'bad tracking issue')

### Train batch
Train category with multiple documents.
Expand All @@ -71,6 +77,20 @@ Train category with multiple documents.
'interesting , but not compelling . ',
'seems clever but not especially compelling'
])

### Untrain batch
Untrain category with multiple documents.

bayes.untrain_batch('positive', [
'a feel-good picture in the best sense of the term...',
'it is a feel-good movie about which you can actually feel good.',
'love and money both of them are good choises'
])
bayes.untrain_batch('negative', [
'simplistic , silly and tedious .',
'interesting , but not compelling . ',
'seems clever but not especially compelling'
])

### Classify
Classify a document.
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ task :default => [ :test ]
desc "Run all unit tests"
Rake::TestTask.new do |t|
t.libs << 'lib'
t.test_files = FileList['lib/test/unit/*_test.rb']
t.test_files = FileList['test/unit/*_test.rb']
t.verbose = true
end

Expand Down
2 changes: 1 addition & 1 deletion lib/omnicat/bayes/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Omnicat
module Bayes
VERSION = '0.2.0'
VERSION = '0.2.1'
end
end
2 changes: 1 addition & 1 deletion omnicat-bayes.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ['lib']

spec.add_dependency 'omnicat', '~> 0.2.0'
spec.add_dependency 'omnicat', '~> 0.2.1'
spec.add_development_dependency 'bundler', '~> 1.3'
spec.add_development_dependency 'rake'
end

0 comments on commit f50defb

Please sign in to comment.