Language identification for Northeast Indian languages
Project description
ne-lid
Language identification for Northeast Indian languages.
11 languages · 99.09% accuracy · fastText · CC-BY-4.0
Install
pip install ne-lid
Usage
from ne_lid import NELID
model = NELID() # downloads from HuggingFace on first run
# Single prediction
result = model.predict('Ki paidbah shnong ki la ia shim bynta')
print(result) # {'lang': 'kha', 'score': 0.9999}
# Top-3 predictions
results = model.predict('Ka sngi ka lieh', k=3)
print(results)
# List supported languages
model.languages()
Supported Languages
| Code | Language | Accuracy |
|---|---|---|
| asm | Assamese | 100% |
| brx | Bodo | 99% |
| eng | English | 98% |
| grt | Garo | 100% |
| hin | Hindi | 97% |
| kha | Khasi | 99% |
| trp | Kokborok | 100% |
| mni | Meitei | 100% |
| lus | Mizo | 99% |
| nag | Nagamese | 100% |
| njz | Nyishi | 99% |
Overall test accuracy: 99.09%
Links
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
ne_lid-1.0.1.tar.gz
(2.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ne_lid-1.0.1.tar.gz.
File metadata
- Download URL: ne_lid-1.0.1.tar.gz
- Upload date:
- Size: 2.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0fa3478ed20c2aca7f4b2a1d454a1fd1e1b2d706887b9360e8f83a66758167e8
|
|
| MD5 |
ca777bb697fab2e7830774b4ddce4054
|
|
| BLAKE2b-256 |
e62e4f1093bcf50245e5a602e820c7d359649b01f5ade1cd60279c5dec4d0c41
|
File details
Details for the file ne_lid-1.0.1-py3-none-any.whl.
File metadata
- Download URL: ne_lid-1.0.1-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
682114df57990c48ff646f7e831be927ac880b5ebf159a259bebddd7f288e03e
|
|
| MD5 |
fa783ea2a8efbb216e216fb42c432a3d
|
|
| BLAKE2b-256 |
b423370c0edda3d96d9bea584485cd9eeffa25fe710811ecf67767ed44f90b10
|