From ed901ab18edddcfd566ac37ddb1b429969ccc2ad Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Sat, 10 Dec 2022 16:20:09 +0100 Subject: [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 --- docs/src/searx.plugins.autodetect_search_language.rst | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 docs/src/searx.plugins.autodetect_search_language.rst (limited to 'docs/src') diff --git a/docs/src/searx.plugins.autodetect_search_language.rst b/docs/src/searx.plugins.autodetect_search_language.rst new file mode 100644 index 000000000..7b66a6bf3 --- /dev/null +++ b/docs/src/searx.plugins.autodetect_search_language.rst @@ -0,0 +1,8 @@ +.. _autodetect search language: + +====================== +Search language plugin +====================== + +.. automodule:: searx.plugins.autodetect_search_language + :members: -- cgit v1.2.3