/ Модель

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

Контекст
512 токенов
Параметры
30,9 млн
Лицензия
Apache 2.0
Архитектура
belaid · dense
Базовая модель
Masinissa-31M
Библиотека
transformers
Опубликована
15 авг 2026

Belaid-31M

Разметка токеновТекст → label3 профессии

Модель восстанавливает пунктуацию и заглавные буквы в неразмеченном тексте на кабильском языке, в том числе после распознавания речи.

138скачиваний за 30 дней0лайковвеса обновлены6 ноя 2026

Бенчмарки

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

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

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

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

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

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

Belaid-31M — модель на 30,9 млн параметров, разработанная для восстановления пунктуации и регистра букв в текстах на кабильском языке (Taqbaylit) латиницей. Это дообучение agbalu/Masinissa-31M для поклассовой разметки токенов; модель принимает текст без пунктуации и заглавных букв и предсказывает знак после каждого слова и его регистр. Контекст ограничен 512 токенами.

Модель предназначена прежде всего для постобработки текста распознавания речи, а также для подготовки субтитров, титров и текстовых корпусов к чтению. На тесте Common Voice указаны macro-F1 0,793 по знакам и точное совпадение всего предложения в 86,3% случаев; на отложенной прозе показатели ниже. Модель сохраняет исходное написание слов и работает только с текстом, не используя аудио.

Она рассчитана на одну реплику за раз и не сегментирует абзацы на предложения. Расстановка запятых менее надёжна, а перенос на другие берберские языки не подтверждён. Для загрузки используются Transformers, PyTorch и код архитектуры из репозитория с trust_remote_code=True. Лицензия — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Belaid-31M

[!TIP] Utterance vs. Discourse Restorers: Belaid-31M is optimized for single-utterance speech restoration (128 subwords, based on Masinissa-31M), achieving 86.3% whole-sentence exact match and 0.793 macro-F1. For paragraph-length or continuous prose, Belaid-75M provides a 1,024-token context window based on Masinissa-73M.

A 31.4M-parameter punctuation and capitalization restoration model for Kabyle (Taqbaylit, kab_Latn), fine-tuned from agbalu/Masinissa-31M.

Belaid-31M processes unpunctuated and uncased text—such as raw ASR transcripts from agbalu/Fadhma-300M—and predicts sentence punctuation marks and word capitalization per token. It operates strictly via token classification without modifying underlying character spellings.

Evaluation Results

Common Voice In-Domain Test (5,160 sentences, 26,969 words)

Scored on decontaminated Common Voice 22.0 test sentences against a standard heuristic baseline (capitalizing initial words and appending a terminal period):

MetricBaselineBelaid-31M
Macro-F1 over marks0.2270.793
Sentence-final mark accuracy0.8370.970
Exact match (marks + casing, whole sentence)0.5920.863
Non-initial proper noun capitalization F10.0000.933

Per-class performance on punctuation marks:

LabelSupportPredictedPrecisionRecallF1
NONE20,90420,8970.9890.9880.988
COMMA8048430.6800.7130.696
PERIOD4,3574,3510.9780.9760.977
QUESTION8618380.9110.8860.898
COLON43400.6250.5810.602

Kabyle lexical question markers (acu, anida, amek, melmi) enable high question mark precision and recall (0.898 F1). Non-initial proper nouns reach 0.933 F1.

Out-of-Domain Evaluation (45,028 long-form records, 1,000,928 words)

Evaluated on held-out long-form prose (imsidag/kabyle-corpus-hca):

MetricBaselineBelaid-31M
Macro-F1 over marks0.1680.635
Sentence-final mark accuracy0.9250.955
Non-initial proper noun capitalization F10.0000.674
COMMA F10.0000.580
COLON F10.0000.721

Intended Use

  • ASR Post-Processing: Restoring standard punctuation and capitalization on raw acoustic transcripts from Fadhma-300M.
  • Text Normalization: Re-casing and punctuating web-scraped or lowercased Kabyle corpora.
  • Input Scope: Single-utterance inputs up to 128 subwords. For multi-sentence paragraphs, use Belaid-75M.
  • Out of Scope: Structural document segmentation or paragraph re-breaking.

Usage

from transformers import AutoModelForTokenClassification, AutoTokenizer

REPO = "agbalu/Belaid-31M"
model = AutoModelForTokenClassification.from_pretrained(REPO, trust_remote_code=True).eval()
tokenizer = AutoTokenizer.from_pretrained(REPO, trust_remote_code=True)

sentences = [
    "ur zmireɣ ara ad d-aseɣ assa",
    "anida i tedduḍ a yelli",
]

restored = model.restore(sentences, tokenizer)
print(restored)
# Output: ['Ur zmireɣ ara ad d-aseɣ assa.', 'Anida i tedduḍ a yelli?']

The restore() helper aligns subword predictions back to whole surface words, applying capitalization to word characters and attaching punctuation marks.

Label Scheme

  • Punctuation (5 classes): NONE, COMMA, PERIOD, QUESTION, COLON. Exclamation marks and semicolons are mapped to PERIOD due to sparse training support.
  • Casing (2 classes): LOWER, UPPER_INIT (capitalized first letter).

Architecture

ParameterValue
Backboneagbalu/Masinissa-31M
Total Parameters31,423,751 (299,911 across two classification heads)
Layers / Hidden / Heads12 layers / 384 hidden / 6 attention heads
Intermediate Dimension1,280 (gated GLU)
Positional EmbeddingsLog-bucketed relative positions (32 buckets, max window 512)
Context Window128 subwords
Vocabulary16,000 SentencePiece Unigram (agbalu/Mammeri-Tok)

Two dedicated linear heads independently predict punctuation marks and word capitalization over the encoder hidden states.

Training Recipe

ParameterValue
Training Examples1,262,922 sentences
Epochs3 epochs
Checkpoint SelectionStep 11,097 (selected based on peak validation macro-F1: 0.8041 marks, 0.9368 casing)
DecontaminationExcluded all Common Voice sentences overlapping with pretraining corpora to ensure strict isolation

Limitations

  • Utterance Scope: Optimized for single-sentence inputs. In continuous multi-sentence discourse, use Belaid-75M.
  • Comma Ambiguity: Comma placement reflects empirical patterns in corpus texts; precision is 0.680 on in-domain test data.
  • Acoustic Information: Operates purely on text features; audio pauses or pitch contours are not accessible to the model.

Files

FileSizeDescription
model.safetensors~125.7 MBModel weights (115 tensors, 31,423,751 parameters)
config.json< 2 KBModel configuration
modeling_belaid.py, configuration_belaid.py< 25 KBTransformers modeling and configuration code
tokenizer.json, tokenizer_config.json~1.0 MBFast tokenizer configuration
agbalu-tok-base-16k.model260 KBRaw SentencePiece unigram model

Reproduction

Fine-tuned from agbalu/Masinissa-31M for 3 epochs with linear learning rate warmup and decay. Evaluation compares the model and the heuristic baseline over identical test splits. All reported metrics reproduce deterministically from the published checkpoint.

The name

Belaïd At Ali (1909–1950) is the foundational figure of written Kabyle prose literature. Born in the village of Taourirt Amrane in the Ouacif region, he was commissioned in the 1940s to record traditional oral tales. Rather than merely transcribing them, he composed original short stories, essays, and autobiographical narratives in a language that had carried neither. Les Cahiers de Belaïd, published posthumously in 1964 by the Fichier de Documentation Berbère, is the first extensive body of Kabyle prose in Latin characters.

Writing prose where none existed meant deciding where a spoken pause becomes a punctuation mark, where a clause breaks, where a sentence ends, and what takes a capital — with no written precedent to follow. That exact set of syntactic and orthographic decisions is this model's objective, and it is why the model carries his name in homage to his pioneering contribution to Kabyle writing.

Citation

@software{agbalu_belaid_2026,
  title  = {Belaid-31M: Punctuation and Casing Restoration for Kabyle},
  author = {AƔBALU},
  year   = {2026},
  url    = {https://huggingface.co/agbalu/Belaid-31M},
  note   = {Two token-classification heads over Masinissa-31M; macro-F1 0.793 over marks}
}

Licence

  • Weights & Code: Apache-2.0.
  • Training Corpus: Derived from AƔBALU-Text v1.

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

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

GPU в ailist

Универсальный рантайм · transformers · token-classification

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

Модели нужен код из репозитория; автор пока не в списке доверенных организаций.

Класс архитектуры
BelaidForTokenClassification
Ревизия весов
b71edcf

0 моделей