[Spambayes-checkins] spambayes hammiefilter.py,1.4,1.5
Neale Pickett
npickett@users.sourceforge.net
Mon Dec 2 06:02:36 2002
Update of /cvsroot/spambayes/spambayes
In directory sc8-pr-cvs1:/tmp/cvs-serv18116
Modified Files:
hammiefilter.py
Log Message:
* Added -G and -S options to hammiefilter ;)
Index: hammiefilter.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/hammiefilter.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** hammiefilter.py 2 Dec 2002 04:43:37 -0000 1.4
--- hammiefilter.py 2 Dec 2002 06:02:34 -0000 1.5
***************
*** 106,110 ****
h = HammieFilter()
action = h.filter
! opts, args = getopt.getopt(sys.argv[1:], 'hngs')
for opt, arg in opts:
if opt == '-h':
--- 106,110 ----
h = HammieFilter()
action = h.filter
! opts, args = getopt.getopt(sys.argv[1:], 'hngsGS')
for opt, arg in opts:
if opt == '-h':
***************
*** 114,117 ****
--- 114,121 ----
elif opt == '-s':
action = h.train_spam
+ elif opt == '-G':
+ action = h.untrain_ham
+ elif opt == '-S':
+ action = h.untrain_spam
elif opt == "-n":
action = h.newdb
More information about the Spambayes-checkins
mailing list