[Spambayes-checkins] spambayes classifier.py,1.57,1.58

Neale Pickett npickett@users.sourceforge.net
Mon Nov 25 21:02:07 2002


Update of /cvsroot/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv32113

Modified Files:
	classifier.py 
Log Message:
* Pruned Classifier.classify() -- nothing was using it


Index: classifier.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/classifier.py,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** classifier.py	25 Nov 2002 20:49:13 -0000	1.57
--- classifier.py	25 Nov 2002 21:02:03 -0000	1.58
***************
*** 158,177 ****
      # spamprob, depending on option settings.
  
-     def classify(self, message):
-         """Return the classification of a message as a string."""
- 
-         prob = self.spamprob(message.tokenize())
- 
-         message.setSpamprob(prob)       # don't like this
- 
-         if prob < options.ham_cutoff:
-             type = options.header_ham_string
-         elif prob > options.spam_cutoff:
-             type = options.header_spam_string
-         else:
-             type = options.header_unsure_string
- 
-         return type
- 
      def gary_spamprob(self, wordstream, evidence=False):
          """Return best-guess probability that wordstream is spam.
--- 158,161 ----





More information about the Spambayes-checkins mailing list