mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
searx.utils.detect_language : add model from fastlangid
The project fastlangid has a FastText model to achieve higher accuracy for Japanese, Korean, Chinese languages. This commits includes the model from this project, and change searx.utils.detect_language to rely on that model as a second stage. The model is lazy loaded when the base model detect Japanese, Korean or Chinese. https://github.com/currentslab/fastlangid
This commit is contained in:
parent
7dfcc3386e
commit
931e1f6503
2 changed files with 51 additions and 13 deletions
BIN
searx/data/model_s.ftz
Normal file
BIN
searx/data/model_s.ftz
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue