From 566f727b8c2386a614bb6909550c173357c39af6 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sun, 1 Dec 2013 18:17:24 +0000 Subject: [PATCH] Explicitly set in_class field while learning. --- src/classifiers/bayes.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/classifiers/bayes.c b/src/classifiers/bayes.c index 184a63802..ae291de24 100644 --- a/src/classifiers/bayes.c +++ b/src/classifiers/bayes.c @@ -472,6 +472,7 @@ bayes_learn_spam (struct classifier_ctx* ctx, statfile_pool_t *pool, data.pool = pool; data.now = time (NULL); data.ctx = ctx; + data.in_class = TRUE; data.processed_tokens = 0; if (ctx->cfg->opts && (value = g_hash_table_lookup (ctx->cfg->opts, "max_tokens")) != NULL) { -- 2.39.5