commit 5fea03d: [Minor] Langdet: Increase cut-off limit
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Jun 5 13:07:03 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-06-05 13:59:29 +0100
URL: https://github.com/rspamd/rspamd/commit/5fea03d7fb799392ba290643b27e585e49d5e590
[Minor] Langdet: Increase cut-off limit
---
src/libmime/lang_detection.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libmime/lang_detection.c b/src/libmime/lang_detection.c
index 873135e03..aad01ec8a 100644
--- a/src/libmime/lang_detection.c
+++ b/src/libmime/lang_detection.c
@@ -30,7 +30,7 @@
#include <unicode/ustring.h>
#include <math.h>
-static const gsize default_short_text_limit = 20;
+static const gsize default_short_text_limit = 10;
static const gsize default_words = 80;
static const gdouble update_prob = 0.6;
static const gchar *default_languages_path = RSPAMD_SHAREDIR "/languages";
More information about the Commits
mailing list