Skip to main content

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


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.0.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ne_lid-1.0.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file ne_lid-1.0.0.tar.gz.

File metadata

  • Download URL: ne_lid-1.0.0.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

Hashes for ne_lid-1.0.0.tar.gz
Algorithm Hash digest
SHA256 3793a62b6517765856b9dc82077e1769ddbb44ec94a5f1d19b11c2d42d5b2ddf
MD5 b9a811072bbf36d3fe7c854b53e8f4f2
BLAKE2b-256 aaa412c6c1ccc531adc46fa124b5992d40deae85d2de5e9b57c0c6f34815bd20

See more details on using hashes here.

File details

Details for the file ne_lid-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: ne_lid-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.10

File hashes

Hashes for ne_lid-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4c179670322e8702570df13c8d214ea63362ef7efd94fc8f0da0e95419fecd1
MD5 663e6e656181684017af6e72fdc64f78
BLAKE2b-256 81a35e78b2fe7b4c8bd76350223c080896e9f1ddd331884e5bd7d925715327ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page