Display Bayes tokens?

2009-07-21 Thread Peter Sabaini
Hi, I'd like to verify the tokens Bayes uses to classify; consulting man sa-learn leads me to believe that sa-learn --dump or alternatively sa-learn --backup should do just that. However the output consists of lines which look like t 3 28 1219966305 73e5bd1906 t

Re: Display Bayes tokens?

2009-07-21 Thread Hajdú Zoltán
Hello, The 'stored tokens' are the last 5 bytes of the SHA1 hashed 'real token'. There is no (effective) way to decode the stored versions to their original format. But you can verify that a given token does exists in the database (tkate the last 5 bytes of the SHA1 hashed token...).

Re: Display Bayes tokens?

2009-07-21 Thread Jonas Eckerman
Peter Sabaini wrote: I'd like to verify the tokens Bayes uses to classify; [...] Is this encoded in some way? Yes. If you use SQL for bayes you can use my plugin CollectTokens plugin to collect new tokens indexed by the encoded value used by the bayes system. That way you can look upp