Debian Codegraph @

test/integration/configs/statistic.conf

raw
1 # Bayes statistic configuration
2
3 classifier "bayes" {
4 tokenizer {
5 name = "osb";
6 }
7
8 cache {
9 backend = "redis";
10 }
11
12 min_tokens = 11;
13 min_learns = 1;
14
15 statfile {
16 symbol = "BAYES_SPAM";
17 spam = true;
18 }
19
20 statfile {
21 symbol = "BAYES_HAM";
22 spam = false;
23 }
24
25 learn_condition = "return function(task, is_spam, is_unlearn) return true end";
26 autolearn = false;
27 backend = "redis"
28 }