From a563ba33e7b7a80ab05d8bfc08fabe77a1d8c18d Mon Sep 17 00:00:00 2001 From: Eike Kettner Date: Wed, 6 Jan 2021 23:06:13 +0100 Subject: [PATCH] Add new joex option to nix module --- nix/module-joex.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/nix/module-joex.nix b/nix/module-joex.nix index a0590f81..373a6aed 100644 --- a/nix/module-joex.nix +++ b/nix/module-joex.nix @@ -118,6 +118,7 @@ let ]; }; working-dir = "/tmp/docspell-analysis"; + clear-stanford-nlp-interval = "15 minutes"; }; processing = { max-due-date-years = 10; @@ -771,6 +772,14 @@ in { files. ''; }; + clear-stanford-nlp-interval = mkOption { + type = types.str; + default = defaults.text-analysis.clear-stanford-nlp-interval; + description = '' + Idle time after which the NLP caches are cleared to free + memory. If <= 0 clearing the cache is disabled. + ''; + }; regex-ner = mkOption { type = types.submodule({