diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-06 13:13:57 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-06 13:13:57 +0100 |
commit | 4f8756bb247eca4378911e3305c9c348a2f32e1f (patch) | |
tree | 598f1345b846c9d9c1c2bffcf841e5e53e2a11cb /src/libstat/classifiers | |
parent | 16caa3bb55e3d46f32dc8b422820142e4298efb8 (diff) | |
download | rspamd-4f8756bb247eca4378911e3305c9c348a2f32e1f.tar.gz rspamd-4f8756bb247eca4378911e3305c9c348a2f32e1f.zip |
[Minor] Remove metatokens count checks
Diffstat (limited to 'src/libstat/classifiers')
-rw-r--r-- | src/libstat/classifiers/bayes.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/libstat/classifiers/bayes.c b/src/libstat/classifiers/bayes.c index 7441153ff..e26cd7a02 100644 --- a/src/libstat/classifiers/bayes.c +++ b/src/libstat/classifiers/bayes.c @@ -336,15 +336,6 @@ bayes_classify (struct rspamd_classifier * ctx, *pprob = final_prob; rspamd_mempool_set_variable (task->task_pool, "bayes_prob", pprob, NULL); - if (cl.text_tokens <= (cl.processed_tokens - cl.text_tokens) / 2) { - msg_info_bayes ("ignore bayes probability %.2f since we have " - "much more metatokens (%d) than text tokens (%d)", - final_prob, - cl.processed_tokens - cl.text_tokens, cl.text_tokens); - - return TRUE; - } - if (ctx->cfg->min_tokens > 0 && cl.text_tokens < ctx->cfg->min_tokens * 0.1) { msg_info_bayes ("ignore bayes probability %.2f since we have " |