Whatlang Py

Simple bindings to the whatlang Rust package
Alternatives To Whatlang Py
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Tokenizers6,601131a day ago72April 13, 2022244apache-2.0Rust
💥 Fast State-of-the-Art Tokenizers optimized for Research and Production
Whatlang Rs80112113 months ago30May 07, 20227mitRust
Natural language detection library for Rust. Try demo online: https://whatlang.org/
Pypostal615839 months ago14March 25, 202236mitC
Python bindings to libpostal for fast international address parsing/normalization
Jieba Rs4865113 months ago39October 03, 202210mitRust
The Jieba Chinese Word Segmentation Implemented in Rust
Link Grammar362
2 days ago1February 27, 201885lgpl-2.1C
The CMU Link Grammar natural language parser
Node Postal17672a year ago10December 13, 202110mitC++
NodeJS bindings to libpostal for fast international address parsing/normalization
2 years ago4June 14, 202014apache-2.0Rust
Simple NLP in Rust with Python bindings
6 months ago6July 06, 20174mitElixir
Elixir binding for Libpostal - a library for parsing/normalizing street addresses around the world. Powered by statistical NLP and open geo data.
Open Nlp88
208 years ago7May 28, 20142otherRuby
Ruby bindings to the OpenNLP Java toolkit.
Ruby Nlp87
9 years agoRuby
Ruby Binding for Stanford Pos-Tagger and Name Entity Recognizer
Alternatives To Whatlang Py
Select To Compare

Alternative Project Comparisons


bindings by Cathal Garvey, Copyright 2017, released under MIT license.


This simply wraps the Whatlang-rs library by Sergey Potapov, exposing a single function to Python which returns a tuple of (language code, script code).


From Source

You will require:

Then: python3 setup.py install --user. The --user part is essential, as Rustup doesn't perform a system installation of Rust. Possibly, you could use a system-managed Rust toolchain (e.g. apt-get install cargo) to permit a system-wide install of the library. Or, you could just use python3 setup.py build and then manually install the library system-wide.

Linux x86-64, Python 3.5

[sudo] pip3 install https://github.com/cathalgarvey/whatlang-py/raw/master/dist/whatlang-0.0.1-cp35-cp35m-linux_x86_64.whl


  1. Download this repository
  2. Change directory to the dist subdirectory
  3. [sudo] pip3 install *.whl


There is only one function in the library: detect_language, which accepts a single unicode string and returns a pair of strings or raises a ValueError on failure.

The strings returned correspond to the three-character language code, and three-character script code. These are enumerated in Whatlang's docs as the Enums Lang and Script and are returned as strings in the same leading-uppercase format.

Popular Bindings Projects
Popular Natural Language Processing Projects
Popular Libraries Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Language Detection