Permalink
Browse files

update readme

  • Loading branch information...
1 parent ca8bb6d commit 95b5f1440ae623c620ac7377430c5a76e0acca16 @reddavis committed Mar 11, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 README.rdoc
View
@@ -30,9 +30,10 @@ You can also tell your classifier to save itself, so its easy for you to pick up
a = NaiveBayes.new(:spam, :ham)
a.db_filepath = 'path/to/anywhere.nb'
- # Save is called after every train function
a.train(:spam, 'bad', 'word')
a.train(:ham, 'good', 'word')
+
+ a.save
Some time goes past and we want to classify a new document we just received...

0 comments on commit 95b5f14

Please sign in to comment.