Lingua-Py
Visit Toollingua-py is a natural language detection library for Python that offers highly accurate language detection for both short and mixed-language texts. It supports 75 languages and operates offline.
At a glance
Trending
lingua-py is a natural language detection library for Python that offers highly accurate language detection for both short and mixed-language texts. It supports 75 languages and operates offline.
Trending
About
lingua-py is a robust natural language detection library for Python, designed to accurately identify the language of text, even for short snippets and mixed-language content. Unlike many other libraries, it focuses on quality over quantity, supporting 75 languages with high precision. It employs a hybrid approach, combining rule-based and statistical Naive Bayes methods, without relying on neural networks or external APIs, allowing for complete offline functionality. The library is optimized for performance and memory efficiency, utilizing compiled Python bindings to a native Rust implementation and storing language models as finite-state transducers (FSTs) that can be searched on disk. This makes it suitable for low-resource environments and ensures fast detection speeds, outperforming many pure Python alternatives.
Capabilities
Pricing & Plans
Open Source
Free
FAQs
Trending