ham_count += res->value;
}
total_count += res->value;
+ res->st_runtime->total_hits += res->value;
+ res->cl_runtime->processed_tokens ++;
}
}
s = 1 - inv_chi_square (-2. * rt->ham_prob,
2 * rt->processed_tokens);
final_prob = (s + 1 - h) / 2.;
+ msg_debug ("<%s> got ham prob %.2f -> %.2f and spam prob %.2f -> %.2f",
+ task->message_id, rt->ham_prob, h, rt->spam_prob, s);
}
if (rt->processed_tokens > 0 && fabs (final_prob - 0.5) > 0.05) {
if (st_runtime->backend->process_token (t, res,
st_runtime->backend->ctx)) {
- cl_runtime->processed_tokens ++;
if (cl_runtime->clcf->max_tokens > 0 &&
cl_runtime->processed_tokens > cl_runtime->clcf->max_tokens) {