From 4f8756bb247eca4378911e3305c9c348a2f32e1f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 6 Apr 2017 13:13:57 +0100 Subject: [PATCH] [Minor] Remove metatokens count checks --- src/libstat/classifiers/bayes.c | 9 --------- 1 file changed, 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 " -- 2.39.5