diff options
| author | Markus Heiser <markus.heiser@darmarit.de> | 2022-12-10 16:20:09 +0100 |
|---|---|---|
| committer | Markus Heiser <markus.heiser@darmarit.de> | 2022-12-11 11:26:07 +0100 |
| commit | ed901ab18edddcfd566ac37ddb1b429969ccc2ad (patch) | |
| tree | 2d698ac11b6dd96ba4a88984b0919cbecbe52ef9 /searx/settings.yml | |
| parent | 9925a209503cc41e37a1c032548a5fd8fd8ea362 (diff) | |
[mod] improve 'Autodetect search language' plugin
- Add documentation to the plugin
- Harmonize FastText language model with SearXNG's language model
Reosurces::
import fasttext # --> +10 MB
fasttext.load_model(str(data_dir / 'lid.176.ftz')) # --> +4MB
Suggested-by: @dalf
- To speed up and simplify the deployment use fasttext-wheel instead of fasttext
- Building numpy on the Alpine Linux of docker-images takes ages --> install
py3-numpy from Alpines package manager (apk)
- Alpine Linux on docker-images (musl libc) do not support fasttext-wheel (gnu
libc) --> patch Dockerfile and build from fastetxt:
sed -i s/fasttext-wheel/fasttext/ requirements.txt
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'searx/settings.yml')
| -rw-r--r-- | searx/settings.yml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/searx/settings.yml b/searx/settings.yml index 9dc2199e5..3e7c2aae4 100644 --- a/searx/settings.yml +++ b/searx/settings.yml @@ -196,6 +196,9 @@ outgoing: # - 'Open Access DOI rewrite' # - 'Vim-like hotkeys' # - 'Tor check plugin' +# # Read the docs before activate: auto-detection of the language could be +# # detrimental to users expectations / users can activate the plugin in the +# # preferences if they want. # - 'Autodetect search language' # Configuration of the "Hostname replace" plugin: |