aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime/lang_detection_fasttext.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-05-02 17:56:14 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-05-02 17:56:14 +0100
commitbf00268444b2e11ac5378d4986d6d55d1038a775 (patch)
tree15c4651c063bedc7d0372b64cc18f025e9e89c52 /src/libmime/lang_detection_fasttext.h
parent915885232b2cffeab1fe7be02df89fba4fea3255 (diff)
downloadrspamd-bf00268444b2e11ac5378d4986d6d55d1038a775.tar.gz
rspamd-bf00268444b2e11ac5378d4986d6d55d1038a775.zip
[Fix] Feed fasttext language model with the pre-tokenized words
Diffstat (limited to 'src/libmime/lang_detection_fasttext.h')
-rw-r--r--src/libmime/lang_detection_fasttext.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libmime/lang_detection_fasttext.h b/src/libmime/lang_detection_fasttext.h
index 2e8a9fe78..9fb1db222 100644
--- a/src/libmime/lang_detection_fasttext.h
+++ b/src/libmime/lang_detection_fasttext.h
@@ -52,7 +52,7 @@ typedef void * rspamd_fasttext_predict_result_t;
* @return TRUE if language is detected
*/
rspamd_fasttext_predict_result_t rspamd_lang_detection_fasttext_detect(void *ud,
- const char *in, size_t len, int k);
+ GArray *utf_words, int k);
/**
* Get number of languages detected