Makes the language classification script from the GiellaLT's corpus tools available as a python module (GiellaLT's website, original repo).
The source code as well as the language model files are released under the GPL-3.0 license.
Installation
pip install gielladetect
Usage
import gielladetect
text = "Lurer du på hva som rører seg innenfor veggene til Nasjonalbiblioteket på Solli plass i Oslo?"
gielladetect.detect(text)
# Result: 'nob'
# To restrict detection to a subset of languages:
gielladetect.detect(text, ['nob', 'nno', 'eng'])
# Result: 'nob'
Supported languages
Using ISO 639-3 codes.
| Code | Name |
|---|---|
| ara | Arabic |
| bxr | Russia Buriat |
| ckb | Central Kurdish |
| dan | Danish |
| deu | German |
| eng | English |
| est | Estonian |
| fao | Faroese |
| fas | Persian |
| fin | Finnish |
| fit | Tornedalen Finnish |
| fkv | Kven Finnish |
| fra | French |
| hbs | Serbo-Croatian |
| isl | Icelandic |
| ita | Italian |
| kal | Kalaallisut |
| kmr | Northern Kurdish |
| koi | Komi-Permyak |
| kpv | Komi-Zyrian |
| krl | Karelian |
| mdf | Moksha |
| mhr | Eastern Mari |
| mns | Mansi |
| mrj | Western Mari |
| myv | Erzya |
| nno | Norwegian Nynorsk |
| nob | Norwegian Bokmål |
| olo | Livvi |
| pol | Polish |
| rmf | Kalo Finnish Romani |
| rmn | Balkan Romani |
| rmu | Tavringer Romani |
| rmy | Vlax Romani |
| ron | Romanian |
| rus | Russian |
| sma | Southern Sami |
| sme | Northern Sami |
| smj | Lule Sami |
| smn | Inari Sami |
| sms | Skolt Sami |
| som | Somali |
| spa | Spanish |
| swe | Swedish |
| tur | Turkish |
| udm | Udmurt |
| urd | Urdu |
| vep | Veps |
| vie | Vietnamese |
| yid | Yiddish |
| yrk | Nenets |
Metadata
Release files for gielladetect 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 | Provenance | Actions |
|---|---|---|---|---|
| gielladetect-1.0.4.tar.gz | 3.9 MB | Without provenance | Details for gielladetect-1.0.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gielladetect-1.0.4-py3-none-any.whl | Python 3 | none | any | Details for gielladetect-1.0.4-py3-none-any.whl |
Total release size: 7.9 MB
Release files / gielladetect-1.0.4.tar.gz
| Download URL | gielladetect-1.0.4.tar.gz |
|---|---|
| Size | 3.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
31c9f63c48d484fcdf6f5956019a3b0501528d2db232f1ff4c62910fba3a826f
|
|
BLAKE2b-256 checksum How to use checksums |
d1f46a382cfe62a52b15f8bb7d7b1d9587c9e95ac274f52f49b0e0f18c61e296
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Release files / gielladetect-1.0.4-py3-none-any.whl
| Download URL | gielladetect-1.0.4-py3-none-any.whl |
|---|---|
| Size | 4.0 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6c3da513ecf30f85701c933acfc42918636a620732a6ca1607428571fdefa357
|
|
BLAKE2b-256 checksum How to use checksums |
10cafa53205200a5629add01d60fea543d8ab0839a5e9786943365747f61b630
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.12
|
Security for gielladetect 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.