skip montanaro dwooqfuuguserssourceforgenet update cvsrootspambayesspambayesspambayes directory sc8prcvs8sourceforgenettmpcvsserv7990 modified files tag coresvr xmlrpcpluginpy log message dump trainingrelated methods think core server manage training index xmlrpcpluginpy rcs file cvsrootspambayesspambayesspambayesatticxmlrpcpluginpyv retrieving revision 1125 retrieving revision 1126 diff c2 r1125 r1126 xmlrpcpluginpy 5 jun 2007 021813 0000 1125 xmlrpcpluginpy 5 jun 2007 024341 0000 1126 2948 return value score method trainform_dict extra_tokens is_spam trains given form tokens ham spam train_mimemsg encoding is_spam trains given mime message ham spam retrain nham nspam retrain scratch saved mime messages get_corpusis_spam string retrieve current ham spam corpus unix mbox format set_corpusstring is_spam set current ham spam corpus string unix mbox format normally followed call retrain following options available plugin section options 2932 5055 xmlrpc_port port listen default 5001 xmlrpc_path path support default sbrpc hambox path server ham corpus default tbd spambox path server spam corpus default tbd 3437 7176 plugin xmlrpc_host plugin xmlrpc_port plugin hambox plugin spambox 5356 8996 def _dispatchself method params method score score_mime train train_mime return getattrself methodparams elif method retrain get_corpus set_corpus return yet implemented method else raise xmlrpclibfault404 supported method 6974 def _dispatchself method params method score score_mime return getattrself methodparams else raise xmlrpclibfault404 supported method 109123 return selfstatebayesspamprobtokens evidencetrue def trainself form_dict extra_tokens is_spam train form extra tokens mime_message form_to_mimeform_dict extra_tokens return selftrain_mimemime_message ascii is_spam def train_mimeself msg encoding is_spam train message tokens selftokenizemsg encoding selfstatebayeslearntokens is_spam return def tokenizeself msg encoding tokenize message make sure bayes instance available 8790 _______________________________________________ spambayescheckins mailing list pnperxdpvsarswdlppythonorg httpmailpythonorgmailmanlistinfospambayescheckins tue 05 aug 2008 172859 0700 spambayescheckins spambayesspambayes xmlrpcpluginpy 1125 1126