Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
logankoester committed Jan 26, 2010
1 parent 0a53de6 commit 9182806
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,19 @@ This directory is used when loading the list from disk and takes precedence over

The stopwords file can have comments (indicated with '#'), blank lines are ignored and the encoding must be utf-8.

=== A warning about classifier serialization
If you serialize a classifier and then deserialize it in another process, you need to be careful that the stemmer is reinitialized
the next time you want to use it. Here is an example using ActiveRecord:

class User < ActiveRecord::Base
serialize :classifier, Classifier::Bayes
before_save :remove_stemmer

def remove_stemmer
self.classifier.remove_stemmer
end
end

=== Bayesian Classification

* http://www.process.com/precisemail/bayesian_filtering.htm
Expand Down

0 comments on commit 9182806

Please sign in to comment.