diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-01-15 21:10:33 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-01-15 21:10:33 +0000 |
commit | 98f063228f4ca570ec8d40bc1a07bc785fe94e14 (patch) | |
tree | 7a88de89b1722b938d52cbb8d2ab40ebb1515100 /src/libmime/lang_detection.h | |
parent | dc77c863434b31c195fd95c9b81b1a25dcc80385 (diff) | |
download | rspamd-98f063228f4ca570ec8d40bc1a07bc785fe94e14.tar.gz rspamd-98f063228f4ca570ec8d40bc1a07bc785fe94e14.zip |
[Minor] Improve language detection debug logging
Diffstat (limited to 'src/libmime/lang_detection.h')
-rw-r--r-- | src/libmime/lang_detection.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libmime/lang_detection.h b/src/libmime/lang_detection.h index 048e425f6..0058801b8 100644 --- a/src/libmime/lang_detection.h +++ b/src/libmime/lang_detection.h @@ -23,6 +23,7 @@ struct rspamd_lang_detector; struct rspamd_language_elt; +struct rspamd_task; struct rspamd_lang_detector_res { gdouble prob; @@ -54,7 +55,8 @@ void rspamd_language_detector_to_ucs (struct rspamd_lang_detector *d, * @param words_len * @return array of struct rspamd_lang_detector_res sorted by freq descending */ -GPtrArray * rspamd_language_detector_detect (struct rspamd_lang_detector *d, +GPtrArray * rspamd_language_detector_detect (struct rspamd_task *task, + struct rspamd_lang_detector *d, GArray *ucs_tokens, gsize words_len); #endif |