[Spambayes] The joys of error messages.
papaDoc
papaDoc at videotron.ca
Tue May 11 11:45:35 EDT 2004
Hi Alex,
> Hi, I'm having problems when running spambayes (python
> sb_imapfilter.py -c -t -v ) and am getting the following errors:
>
> Classifying
> *****.*Traceback (most recent call last):
> File "sb_imapfilter.py", line 928, in ?
> run()
> File "sb_imapfilter.py", line 918, in run
> imap_filter.Filter()
> File "sb_imapfilter.py", line 789, in Filter
> self.unsure_folder)
> File "sb_imapfilter.py", line 707, in Filter
> evidence=True)
> File "D:\Python23\Lib\site-packages\spambayes\classifier.py", line
> 190, in chi
> 2_spamprob
> clues = self._getclues(wordstream)
> File "D:\Python23\Lib\site-packages\spambayes\classifier.py", line
> 493, in _ge
> tclues
> tup = self._worddistanceget(word)
> File "D:\Python23\Lib\site-packages\spambayes\classifier.py", line
> 508, in _wo
> rddistanceget
> prob = self.probability(record)
> File "D:\Python23\Lib\site-packages\spambayes\classifier.py", line
> 308, in pro
> bability
> assert hamcount <= nham
> AssertionError
>
> Wondering if anyone knows what's going on or what to do to solve it,
> as I can no longer filter spam.
Usually this mean that there is a problem with the database and you will
probably need to retrain from scratch.
When you train or untrain a message try to use always the original
mesage not a copy since Spambayes
add Header to the mail indicating "This message was train as ham/spam"
and when you untrain. the It can
undo what it did.
What can be interesting is what did you do to get this ? Since this is
still an open problem.
Remi
--
/"\
\ /
X ASCII Ribbon Campaign
/ \ Against HTML Email
More information about the Spambayes
mailing list