Hello, tbbeta.

http://klirik.narod.ru/arc/baes04cmacro.tbp (70kb)

This is macro version of bayesit04c. (Just copy it to Program Files\Bayesit and
install using "Preferences" - "Plugins" menu of TB. It is not standalone! Ordinal 
BayesIt
filter must be also installed).

It contains (in addition to antispam filtration) two user macroses.

%SPAMINESS("token") returns a spaminess value for a token
(zero is non-spam, 1 is spam)

%BAYESBASE returns the number of significant words in current base. If the base
is not prepared yet (it takes about 10 second since starting The Bat!), it will
return appropriate message.

Here is an example of usage:

,----- [ quick template "Bayesreport" ]
| ---- Base report ------
| %BAYESBASE
| ------ Report by mail delivering time -----------
| less then 30 min: %SPAMINESS("t hhour")
| 30 min to hour: %SPAMINESS("t hour")
| hour to 6 hours: %SPAMINESS("t 6hour")
| 6 hours to 1 day: %SPAMINESS("t day")
| more than 1 day: %SPAMINESS("t days")
| 
| ----- Report by images -----------
| %SPAMINESS("F image<2k")
| %SPAMINESS("F image2to10k")
| %SPAMINESS("F image>10k")
| 
`-----

will output something like this:

---- Base report ------
Regarding base: 119229 word(s)
------ Report by mail delivering time -----------
less then 30 min: t hhour = 0.226899
30 min to hour: t hour = 0.255147
hour to 6 hours: t 6hour = 0.302035
6 hours to 1 day: t day = 0.285936
more than 1 day: t days = 0.414731

----- Report by images -----------
F image<2k = 0.704202
F image2to10k = 0.700122
F image>10k = 0.187783

-- 
Sincerely,
 Alexey.
Using TB 2.0b5 on WinXP Pro SP1 (2600), spelling by ORFO2002 (CSAPI) 
..with Kaspersky Antivirus Plugin (ver 3.5 Gold) & antispam filter BayesIt! 0.4b

  mailto:[EMAIL PROTECTED]


________________________________________________________
 Current beta is 2.0b5 | "Using TBBETA" information:
http://www.silverstones.com/thebat/TBUDLInfo.html

Reply via email to