[spambayes-bugs] [ spambayes-Bugs-830369 ] classify trouble

SourceForge.net noreply at sourceforge.net
Sun Oct 26 01:55:45 EST 2003


Bugs item #830369, was opened at 2003-10-26 06:55
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=830369&group_id=61702

Category: imapfilter
Group: Source code 1.0a6
Status: Open
Resolution: None
Priority: 5
Submitted By: Bip (bippo312)
Assigned to: Tony Meyer (anadelonbrin)
Summary: classify trouble

Initial Comment:
I'm using sb_imapfilter.py from 1.0a6 on winXP with 
python2.3, 

It's been working fine for a while, but recently it's been 
giving an assertion error message when I try to classify 
my inbox.  Training seems to work fine.  The only thing I 
did out of the ordinary (I think!) was to erase all the 
emails in my spam training folder (roughly 1000 emails).  
Would this cause the problem?


C:\Program Files\Python23\Scripts>sb_imapfilter.py -c -p
SpamBayes IMAP Filter Beta1, version 0.1
(September 2003), using SpamBayes IMAP Filter Web 
Interface Alpha2, version 0.02
and engine SpamBayes Beta2, version 0.2 (July 2003).

Password: <correct password here>
Traceback (most recent call last):
  File "C:\Program Files\Python23
\Scripts\sb_imapfilter.py", line 824, in ? run()

  File "C:\Program Files\Python23
\Scripts\sb_imapfilter.py", line 814, in run   
imap_filter.Filter()

  File "C:\Program Files\Python23
\Scripts\sb_imapfilter.py", line 675, in Filter
    self.unsure_folder)

  File "C:\Program Files\Python23
\Scripts\sb_imapfilter.py", line 594, in Filter
    evidence=True)

 File "C:\PROGRA~1\PYTHON23\Lib\site-
packages\spambayes\classifier.py", line 15
8, in chi2_spamprob
    clues = self._getclues(wordstream)

  File "C:\PROGRA~1\PYTHON23\Lib\site-
packages\spambayes\classifier.py", line 39
5, in _getclues
    prob = self.probability(record)

  File "C:\PROGRA~1\PYTHON23\Lib\site-
packages\spambayes\classifier.py", line 24
5, in probability
    assert spamcount <= nspam
AssertionError


I stuck in a quick 'print' statement for spamcount and 
nspam, nspam was 1293, spamcount was 1296..  

nspam is probably right, the imap web interface tells me 
that trained spam = 1293 and trained ham = 178

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=830369&group_id=61702



More information about the Spambayes-bugs mailing list