diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-04-29 14:53:40 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-04-29 14:53:40 +0100 |
commit | fea5bdc79758530a3c28970c9c19d05e9932de74 (patch) | |
tree | abb8b5076eedde73f59e00e50dbd65188c4109a5 /src/libmime/lang_detection_fasttext.cxx | |
parent | 2426e04a9aa304ad1d24cbceb91493f205bf5b57 (diff) | |
download | rspamd-fea5bdc79758530a3c28970c9c19d05e9932de74.tar.gz rspamd-fea5bdc79758530a3c28970c9c19d05e9932de74.zip |
[Conf] Add language detection configuration
Diffstat (limited to 'src/libmime/lang_detection_fasttext.cxx')
-rw-r--r-- | src/libmime/lang_detection_fasttext.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmime/lang_detection_fasttext.cxx b/src/libmime/lang_detection_fasttext.cxx index d6bd96ca1..9ede47a6e 100644 --- a/src/libmime/lang_detection_fasttext.cxx +++ b/src/libmime/lang_detection_fasttext.cxx @@ -45,10 +45,10 @@ private: public: explicit fasttext_langdet(struct rspamd_config *cfg) { const auto *ucl_obj = cfg->rcl_obj; - const auto *opts_section = ucl_object_find_key(ucl_obj, "options"); + const auto *opts_section = ucl_object_find_key(ucl_obj, "lang_detection"); if (opts_section) { - const auto *model = ucl_object_find_key(opts_section, "fasttext_langdet_model"); + const auto *model = ucl_object_find_key(opts_section, "fasttext_model"); if (model) { try { |