--- /dev/null
+# Language detection configuration
+# Please don't modify this file as your changes might be overwritten with
+# the next update.
+#
+# You can modify 'local.d/lang_detection.inc' to add and merge
+# parameters defined inside this section
+#
+# You can modify 'override.d/lang_detection.inc' to strictly override all
+# parameters defined inside this section
+
.include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/options.inc"
}
+lang_detection {
+ .include "$CONFDIR/lang_detection.inc"
+ .include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/lang_detection.inc"
+ .include(try=true; priority=10) "$LOCAL_CONFDIR/override.d/lang_detection.inc"
+}
+
.include(try=true; duplicate=merge) "$CONFDIR/cgp.inc"
.include(try=true; priority=1,duplicate=merge) "$LOCAL_CONFDIR/local.d/cgp.inc"
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 {