/ Модель

Характеристики

Размер весов
838 МБ
Лицензия
CC BY 4.0
Библиотека
fasttext
Опубликована
14 янв 2026

ne-lid

Классификация текстаТекст → label6 профессий

NE-LID — быстрая fastText-модель для определения языка предложения на 11 языках Северо-Восточной Индии.

878скачиваний за 30 дней1лайквеса обновлены11 июл 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

NE-LID — модель MWire Labs для определения языка отдельного предложения на языках Северо-Восточной Индии. Она предназначена для классификации текста на один из 11 поддерживаемых языков, включая ассамский, бодо, английский, хинди и языки региона с ограниченными ресурсами.

Модель построена на fastText и использует символьные n-граммы длиной от 2 до 5 символов. По данным карточки, она обучена на 22 000 предложениях, имеет размер около 10 МБ и показывает точность 99,09% на тестовой выборке. Репозиторий содержит бинарную модель fastText и сжатый вариант.

Модель рассчитана на моноязычные предложения; качество может снижаться на очень коротком тексте и смешении языков. Она не предназначена для определения языка отдельных слов или целых документов. Лицензия — CC BY 4.0.

Сценарии применения

  • определение языка коротких сообщений на языках Северо-Восточной Индии
  • маршрутизация текста в соответствующий языковой обработчик
  • фильтрация и сортировка предложений по языку
  • разметка языков в корпусах региональных текстов

Ограничения

Модель ориентирована на моноязычные предложения и может хуже работать с код-свитчингом и входами длиной до двух токенов. Она не предназначена для определения языка на уровне отдельных слов или документов.

Для каких профессий подходит6

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

NE-LID: Northeast Language Identification

License Accuracy

NE-LID is a sentence-level language identification model for low-resource languages of Northeast India, trained using a character n-gram fastText classifier.

The model achieves near-ceiling accuracy (99.1%) and is designed to be fast, robust, and reproducible, especially for script-diverse and low-resource settings.


Supported Languages (11)

LanguageFamilyScript
AssameseIndo-AryanBengali-Assamese
BodoTibeto-BurmanDevanagari
EnglishGermanicLatin
GaroTibeto-BurmanLatin
HindiIndo-AryanDevanagari
KhasiAustroasiaticLatin
KokborokTibeto-BurmanLatin
MeiteiTibeto-BurmanBengali
MizoTibeto-BurmanLatin
NagaTibeto-BurmanLatin
NyishiTibeto-BurmanLatin

Model Details

  • Model type: fastText supervised classifier
  • Architecture: Character n-grams (2–5)
  • Task: Sentence-level Language Identification (LID)
  • Training data: 22,000 sentences (2,000 per language)
  • Train / Dev / Test split: 70% / 15% / 15% (stratified)
  • Evaluation accuracy: 99.09% (macro-F1: 0.99)
  • Model size: ~10 MB
  • Inference speed: <5ms per sentence

Why fastText?

Extensive experiments show that character-level models outperform transformer-based language models (e.g., NE-BERT, XLM-R) for Northeast Indian LID.

Key findings:

  • Transformer models (NE-BERT, XLM-R) achieved only 9-37% accuracy on challenging samples
  • fastText maintained 99%+ accuracy even on script-diverse, low-resource languages
  • Character n-grams capture orthographic patterns better than subword tokenization for these languages

This model therefore prioritizes:

  • ✅ Script awareness
  • ✅ Orthographic cues
  • ✅ Low-resource robustness

Performance

LanguagePrecisionRecallF1-ScoreSupport
Assamese1.001.001.00300
Bodo0.990.980.99300
English0.960.990.98300
Garo0.991.001.00300
Hindi0.960.970.97300
Khasi1.000.990.99300
Kokborok1.000.991.00300
Meitei1.000.991.00300
Mizo0.990.990.99300
Naga1.001.001.00300
Nyishi1.000.990.99300
Overall0.990.990.993,300

Test Accuracy: 99.09%



Benchmark Comparison

NE-LID significantly outperforms existing language identification systems on Northeast Indian languages:

ModelOverall AccuracyCoverage (11 languages)
NE-LID (Ours)99.09%11/11 ✅
GlotLID73.12%9/11 (missing Garo, Naga)
OpenLID (Meta)42.03%5/11
IndicLID (AI4Bharat)39.30%4/11
LangDetect (Google)24.33%3/11

Benchmark Comparison

Key Findings:

  • NE-LID achieves 2.7× higher accuracy than the best competitor (GlotLID)
  • Existing multilingual models fail to support 6-7 Northeast Indian languages
  • Character n-gram approach outperforms transformer-based models for script-diverse, low-resource languages

Installation

pip install fasttext

Usage

Basic Usage (Python)

import fasttext

# Load the model
model = fasttext.load_model("ne_lid.bin")

# Predict language
text = "Ki paidbah shnong ki la ia shim bynta ha ka jingïalang"
labels, probs = model.predict(text)

print(f"Language: {labels[0].replace('__label__', '')}")
print(f"Confidence: {probs[0]:.4f}")

Output:

Language: khasi
Confidence: 0.9999

Batch Prediction

texts = [
    "Ka sngi ka lieh",
    "আজি মই বজাৰলৈ গৈছিলোঁ",
    "Mizo tawng hi a ṭha hle"
]

predictions = model.predict(texts)
for text, (label, prob) in zip(texts, zip(*predictions)):
    lang = label.replace('__label__', '')
    print(f"{text[:30]:30} → {lang:10} ({prob:.3f})")

Get Top-K Predictions

# Get top 3 language predictions
labels, probs = model.predict(text, k=3)

for label, prob in zip(labels, probs):
    lang = label.replace('__label__', '')
    print(f"{lang}: {prob:.4f}")

Limitations

  • Designed for monolingual sentences – not optimized for code-mixed text
  • Sentence-level only – not designed for word-level or document-level LID
  • Performance may degrade on extremely short inputs (≤2 tokens)
  • English/Hindi confusion at 96-97% (expected due to loanwords and script overlap)

Model Files

  • ne_lid.bin - Main fastText model (binary format)
  • ne_lid.ftz - Compressed model (optional, for smaller deployments)

Training Details

Data Sources:

  • Training corpus derived from NE-BERT dataset
  • 2,000 sentences per language, stratified by length and script
  • Balanced across language families (Austroasiatic, Tibeto-Burman, Indo-Aryan)

Hyperparameters:

  • Learning rate: 0.1
  • Epochs: 25
  • Word n-grams: 1-3
  • Character n-grams: 2-5
  • Loss function: Softmax

License

This model is released under Creative Commons Attribution 4.0 International (CC BY 4.0).

You are free to:

  • ✅ Share — copy and redistribute the material
  • ✅ Adapt — remix, transform, and build upon the material

Under the following terms:

  • Attribution — You must give appropriate credit to MWire Labs

Citation

If you use NE-LID in your research or applications, please cite:

@inproceedings{nyalang-2026-ne,
  title = {NE-LID: A Fast and Accurate Language Identification System for Northeast Indian Languages},
  author = {Nyalang, Badal},
  booktitle = {Proceedings of the 8th Workshop on Indian Language Data: Resources and Evaluation},
  year = {2026},
  pages = {104--108},
  address = {Palma, Mallorca, Spain},
  publisher = {European Language Resources Association (ELRA)},
  doi = {10.63317/2q69fiyg73p6}
}

About MWire Labs

MWire Labs is an AI research organization based in Shillong, Meghalaya, India, specializing in language technology for Northeast India's indigenous languages.

Repository: MWirelabs/ne-lid
Contact: MWire Labs


Acknowledgments

We thank the open-source community and contributors to the NE-BERT corpus that made this work possible.


Last Updated: January 2026
Version: 1.0.0

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · fasttext

Нельзя запустить

Модели fastText требуют отдельного рантайма.

Ревизия весов
76d8a2f

0 моделей