[warning: 99% OT] does anything like this exist ?...
xnews2 at fredp.lautre.net
Wed Oct 27 10:47:14 CEST 2004
Andrew Dalke <adalke at mindspring.com> said :
> I upgraded to Spambayes 1.0. I think I needed to change something,
> but I've forgotten. I've attached my current version (sans passwords
> and identifing mailing list information) to this post.
Thanks for that, Andrew !
> It does not contribute. It can't. That is, it computes a spam value
> for a message but since it doesn't know if that classification is
> correct it can't train itself.
> Every few months I export all my saved mail (inbox, sent, various
> archive folders) as "ham". I also save all the spam that gets through
> my filter so I can export it as "spam." I then train SpamBayes on
> those two data sets and use the result for my filter program.
I more or less suspected something such, sounds natural. Thanks for the
> I didn't make those additions to the attached file. Feel free to do
> so, and to update the Wiki. Shouldn't be more than a dozen or two
> lines of code. Eg, to have a file of blacklisted subjects you could
> use WhiteListFrom (which reads lines from a file, and reloads if the
> file's timestamp changed) and tweak the test condition.
Usual python mantra : first make it work, then (maybe) make it better. I'll
probably skip the "then make it faster" part :-)
> Enjoy, and thank you for your kind comments regarding my code. That
> program has really helped with my email sanity. Thanks also to the
> SpamBayes people and to Kevin Altis for his virus killer code I used.
Oh, so he _is_ the Kevin (of PythonCard fame) who appears in the comments,
I'd been wondering... There probably still is an old, unfinished "sample"
of mine in the PyCard CVS, called "fpop.py" :)
YAFAP : http://www.multimania.com/fredp/
More information about the Python-list