[Spambayes-checkins] spambayes/Outlook2000 train.py,1.35,1.36

Tony Meyer anadelonbrin at users.sourceforge.net
Mon Jul 26 01:43:35 CEST 2004


Update of /cvsroot/spambayes/spambayes/Outlook2000
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17787/Outlook2000

Modified Files:
	train.py 
Log Message:
There really isn't any need to force people to select both a ham and a spam
folder when doing manual training, and some people will want to just do one
and not the other.  Remove the restriction that enforced this, and change the
error message appropriately.

If one isn't selected, then the generator just ends up empty, so no other
changes are necessary as far as I can tell (and testing seems to back that up).

Index: train.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/Outlook2000/train.py,v
retrieving revision 1.35
retrieving revision 1.36
diff -C2 -d -r1.35 -r1.36
*** train.py	16 Dec 2003 05:06:33 -0000	1.35
--- train.py	25 Jul 2004 23:43:33 -0000	1.36
***************
*** 129,134 ****
      rescore = config.training.rescore
  
!     if not config.training.ham_folder_ids or not config.training.spam_folder_ids:
!         progress.error("You must specify at least one spam, and one good folder")
          return
  
--- 129,134 ----
      rescore = config.training.rescore
  
!     if not config.training.ham_folder_ids and not config.training.spam_folder_ids:
!         progress.error("You must specify at least one spam or one good folder")
          return
  
***************
*** 151,155 ****
  
      # We do this in possibly 3 stages - train, filter, save
!     # re-scoring is much slower and training (as we actually have to save
      # the message back.)
      # Saving is really slow sometimes, but we only have 1 tick for that anyway
--- 151,155 ----
  
      # We do this in possibly 3 stages - train, filter, save
!     # re-scoring is much slower than training (as we actually have to save
      # the message back.)
      # Saving is really slow sometimes, but we only have 1 tick for that anyway



More information about the Spambayes-checkins mailing list