diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-01-13 17:06:05 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-01-13 17:06:05 +0000 |
commit | 88950e4e4f563caba44a14a40b1180be27b772d0 (patch) | |
tree | e8119334a369b1c2877e9fffdfe0a8d29c864046 /src/libmime/lang_detection.h | |
parent | cb8f401b5fa59ec5dbb76a7f22db7a616ecc3821 (diff) | |
download | rspamd-88950e4e4f563caba44a14a40b1180be27b772d0.tar.gz rspamd-88950e4e4f563caba44a14a40b1180be27b772d0.zip |
[Project] Implement logic of ngramms application
Diffstat (limited to 'src/libmime/lang_detection.h')
-rw-r--r-- | src/libmime/lang_detection.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libmime/lang_detection.h b/src/libmime/lang_detection.h index 79be098be..9373b09f2 100644 --- a/src/libmime/lang_detection.h +++ b/src/libmime/lang_detection.h @@ -26,7 +26,6 @@ struct rspamd_language_elt; struct rspamd_lang_detector_res { gdouble prob; - gdouble total_words; const gchar *lang; struct rspamd_language_elt *elt; }; @@ -53,9 +52,9 @@ void rspamd_language_detector_to_ucs (struct rspamd_lang_detector *d, * @param d * @param ucs_tokens * @param words_len - * @return language code or NULL if language has not been detected + * @return array of struct rspamd_lang_detector_res sorted by freq descending */ -const gchar * rspamd_language_detector_detect (struct rspamd_lang_detector *d, +GPtrArray * rspamd_language_detector_detect (struct rspamd_lang_detector *d, GPtrArray *ucs_tokens, gsize words_len); #endif |