[Spambayes] sb_imapfilter.py AssertionError: hamcount <= nham

Tony Meyer tameyer at ihug.co.nz
Sun Nov 30 18:19:27 EST 2003


> When I classify through sb_imapfilter.py, I am getting an 
> AssertionError. Any ideas? I am using spambayes from CVS; courier 
> IMAP; python 2.2.2; and a fresh database. See below for commands.
[...]
>      assert hamcount <= nham
> AssertionError

How fresh?  This error says that you have a token in your database that has
appeared in more ham than you have trained it on - which isn't possible.
IOW, the database is corrupt.  You can try to manually fix the db via
db_expimp.py, but it's easier (especially if you call it fresh already) to
just retrain from scratch.

If this happens regularly, it would be great to know the sequence of events
that can reproduce it (in a sf bug tracker
<http://sf.net/projects/spambayes>), as we still don't really know what
causes this error.

=Tony Meyer




More information about the Spambayes mailing list