langdetect
Port of [language-detection](https://code.google.com/p/language-detection/) (version from 03/03/2014) library to Python.
Installation
$ pip install langdetect
Supported Python versions 2.6, 2.7, 3.x.
Basic usage
To detect the language of the text:
>>> from langdetect import detect
>>> detect("War doesn't show who's right, just who's left.")
'en'
>>> detect("Ein, zwei, drei, vier")
'de'
To find out the probabilities for the top languages:
>>> from langdetect import detect_langs
>>> detect_langs("Otec matka syn.")
[sk:0.572770823327, pl:0.292872522702, cs:0.134356653968]
More information
This library is a direct port of [language-detection](https://code.google.com/p/language-detection/) from Java to Python. All the classes and methods (even unittsets) are unchanged, so for more information see the project’s website or wiki.
Release files for langdetect 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| langdetect-1.0.4.zip | 961.0 kB | Details |
Release files / langdetect-1.0.4.zip
| Download URL | langdetect-1.0.4.zip |
|---|---|
| Size | 961.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2e456e158ac9e917bce4539606388f08e68ba174cb12369e7acdbdf3333f9a5c
|
|
BLAKE2b-256 checksum How to use checksums |
8d320ceaf511f818dbd3b48eeb65e9ad61c5f645446d4f41fefebd85a0b9a4f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |