statistic.conf 604 B

1234567891011121314151617181920212223242526
  1. classifier "bayes" {
  2. # name = "custom"; # 'name' parameter must be set if multiple classifiers are defined
  3. learn_condition = 'return require("lua_bayes_learn").can_learn';
  4. new_schema = true;
  5. tokenizer {
  6. name = "osb";
  7. }
  8. backend = "redis";
  9. min_tokens = 11;
  10. min_learns = 5;
  11. expire = 7776000;
  12. statfile {
  13. symbol = "BAYES_HAM";
  14. spam = false;
  15. }
  16. statfile {
  17. symbol = "BAYES_SPAM";
  18. spam = true;
  19. }
  20. autolearn {
  21. spam_threshold = 12.0;
  22. ham_threshold = -4.5;
  23. check_balance = true;
  24. min_balance = 0.9;
  25. }
  26. }