/ Модель

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

Контекст
1 024 токена
Параметры
72,4 млн
Лицензия
Apache 2.0
Архитектура
belaid · dense
Базовая модель
Masinissa-73M
Библиотека
transformers
Опубликована
1 ноя 2026

Belaid-75M

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

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

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

Бенчмарки

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

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

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

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

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

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

Belaid-75M — модель классификации токенов, разработанная для восстановления пунктуации и регистра в кабильском языке (Taqbaylit, латинская письменность). Она дообучена на базе agbalu/Masinissa-73M и содержит около 72,4 млн параметров. Модель обрабатывает текст без пунктуации и заглавных букв и для каждого слова предсказывает следующий знак препинания и требуемый регистр.

Модель предназначена для постобработки непрерывных транскриптов распознавания речи, субтитров, расшифровок и архивных текстов. Контекстное окно составляет 1024 токена, поэтому она подходит для многофразовых отрывков и документов. В оценке на кабильском дискурсе точность регистра слов составила 0,940; F1 для точек — 0,630, запятых — 0,623, двоеточий — 0,600 и вопросительных знаков — 0,526. Модель не изменяет написание слов.

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

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Belaid-75M

A 75.1M-parameter (75,147,533) token-classification model for discourse-level punctuation and truecasing in Kabyle (Taqbaylit, kab, Latin script). It processes unpunctuated, lowercased Kabyle text — such as raw output from automatic speech recognition systems, raw subtitles, or unnormalized transcripts — and simultaneously predicts for each word:

  1. Which punctuation mark directly follows it (NONE, COMMA, PERIOD, QUESTION, COLON).
  2. The exact orthographic casing the word requires (LOWER, UPPER_INIT, ALL_CAPS).

Belaid-75M is fine-tuned from agbalu/Masinissa-73M over a 1,024-token context window. Unlike sentence-level models that process only single isolated utterances, Belaid-75M restores punctuation and capitalization across continuous multi-sentence discourse, identifying clause boundaries, sentence terminations, questions, colons, acronyms, and hyphenated clitic capitalisation throughout extended passages.

The model restores punctuation and capitalization without modifying underlying word spellings, functioning as a non-destructive post-processing stage for ASR transcripts and unpunctuated text across a 1,024-subword context window.

Results

Evaluation is conducted on a held-out diagnostic split of continuous multi-sentence discourse comprising 128 context windows and 18,621 words across 16 diverse Kabyle genres (theses, literature, news, essays, and transcribed speech). It is compared against a rule-based baseline that capitalizes the initial word of a chunk and appends a single trailing period.

Held-out continuous discourse — 128 windows, 18,621 words

MetricRule baselineBelaid-75M
Exact word casing accuracy0.0000.940
Sentence-final mark accuracy0.9250.961
Period F1 (internal & terminal)0.0000.630
Comma F10.0000.623
Colon F10.0000.600
Question F10.0000.526
Acronym / all-caps F10.0000.755 (0.971 precision)
False insertions / 1,000 words0.029.9

Per-class performance

LabelSupportPredictedPrecisionRecallF1
NONE15,34315,5150.9530.9640.958
COMMA1,6171,6320.6200.6260.623
PERIOD1,0331,0350.6290.6300.630
COLON1781720.6100.5900.600
QUESTION91800.5630.4950.526

The baseline rule applies only an initial capital and trailing terminal period, which fails to restore internal punctuation marks across multi-sentence discourse (0.000 F1 across all internal marks). Belaid-75M accurately restores internal structure, achieving 0.630 period F1, 0.623 comma F1, 0.600 colon F1, 0.526 question F1, and 0.755 acronym F1. Sentence-final mark accuracy improves from 0.925 to 0.961, exact word casing accuracy reaches 0.940, and acronym precision is 0.971 (correctly restoring terms like MCB, HCA, FFS, and RCD to all-caps while preserving lowercase common nouns).

Comparison with Belaid-31M

Belaid-31M is optimized for short single-utterance sequences (128 subwords), while Belaid-75M is designed for paragraph- and document-scale continuous discourse (1,024 subwords). Each column reports evaluation on the model's target distribution:

Belaid-31MBelaid-75M
BackboneMasinissa-31M, 12 layers, hidden 384Masinissa-73M, 20 layers, hidden 512
Context128 subwords, one utterance1,024 subwords, continuous discourse
Period F10.977 on 5,160 sentences0.630 on internal and terminal periods in running prose
What "exact" means here86.3% of sentences fully correct, marks and capitals94.0% of words cased correctly
Questions0.898 F1 on 861 questions0.526 F1 inside continuous discourse
ALL_CAPSHeld by the utterance model to two casing classes0.755 F1, 0.971 precision
Marks on words the reference leaves bare29.9 per 1,000 words

Isolated utterances and short transcripts are efficiently processed by Belaid-31M, whereas multi-sentence passages, subtitle streams, and continuous documents benefit from the broader 1,024-token receptive field of Belaid-75M.

Intended use

  • Speech recognition post-processing: turn a raw transcript into cased, punctuated Kabyle ready to read.
  • Subtitling and captioning: clause commas, question marks and sentence terminators across a running passage.
  • Archival text: capitals, proper names, acronyms and syntactic marks on uncased prose and OCR, in canonical Kabyle Latin.

Not suitable for:

  • Languages other than Kabyle (Tamazight variants such as Tashelhit, Tarifit, or Shawiya have distinct lexical and syntactic markers).
  • Decision-making systems affecting individuals.
  • Historical epigraphic restoration.

Usage

Belaid-75M runs with standard transformers and torch. The architecture includes custom modeling heads bundled in the repository, enabled via trust_remote_code=True.

from transformers import AutoModelForTokenClassification, AutoTokenizer

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

# Process raw, unpunctuated, lowercased discourse passages:
texts = [
    "acimi ur d-tusiḍ ara iḍelli amek telliḍ tura",
    "deg temlilit n mcb i d-yeḍran deg tizi wezzu nnan-d ilaq ad nenneɣ ɣef teqbaylit",
]

restored = model.restore(texts, tokenizer)
for line in restored:
    print(line)

# Output:
# Acimi ur d-tusiḍ ara iḍelli? Amek telliḍ tura?
# Deg temlilit n MCB i d-yeḍran deg Tizi Wezzu, nnan-d ilaq ad nenneɣ ɣef teqbaylit.

The restore interface

The model.restore(text_or_list, tokenizer) method handles word-to-subword alignment, mapping predicted token logits back onto whitespace-delimited words to ensure that word boundaries and internal clitics receive correct punctuation and casing.

Input normalisation: Always ensure input text adheres to standard Kabyle Latin orthography (ɛ U+025B, ɣ U+0263). The tokenizer uses the 16,000-piece Mammeri Unigram vocabulary from agbalu/Mammeri-Tok.

Label scheme

The model uses two decoupled classification heads:

Punctuation headCasing head
NONE (no trailing mark)LOWER (all lowercase)
COMMA (,)UPPER_INIT (initial capital)
PERIOD (.)ALL_CAPS (acronyms & initialisms)
QUESTION (?)
COLON (:)

Exclamation marks (!) and semicolons (;) are folded into PERIOD during training, reflecting standard Kabyle written conventions where both represent terminal pauses.

Architecture

Belaid-75M consists of two linear token-classification heads built atop the Masinissa-73M transformer backbone:

  • Parameters: 75,147,533
  • Layers: 20 transformer encoder blocks
  • Hidden size: 512
  • Intermediate size: 1,408
  • Attention heads: 8
  • Block residual layers: 4
  • Position embeddings: 32 log-bucketed relative position buckets
  • Context window: 1,024 subwords
  • Precision: BF16 / FP32

The classification heads are kept separate because casing is primarily lexical (names, acronyms, loanwords), whereas punctuation is syntactic and discourse-driven. Decoupled heads prevent joint label space explosion and ensure balanced gradient dynamics.

Training

ParameterSpecification
Training corpus287,900 paragraphs (24,618,923 words, 40,421,740 tokens)
Sources16 verified Kabyle literary, academic, news, and transcribed speech sources
Max context length1,024 subwords
OptimizationAdamW with linear warmup and cosine decay
Effective batch size128 sequences
Training steps16,331 of 22,690 steps (84.4M tokens consumed, early stopping)
Best checkpointStep 12,071 (selected on validation metric)
Validation score0.4795
Training throughput1.35 hours (19,383 tokens/sec)

Checkpoint selection was guided by balanced token-level Macro-F1 across punctuation marks and non-initial casing, rather than raw cross-entropy loss.

Decontamination

Strict decontamination was enforced across all stages:

  • Every paragraph and sentence appearing in the evaluation splits was completely excluded from training.
  • Common Voice validation and test sets were held out from both backbone pretraining and restoration fine-tuning.
  • Raw text was filtered against foreign-script artifacts, non-standard transcription conventions, and corrupted encoding sequences.

Limitations

  • Comma placement variability: Comma precision is 0.620, reflecting substantial stylistic variability across Kabyle writers and editorial standards rather than definitive punctuation errors.
  • Insertion rate: The model predicts 29.9 punctuation marks per 1,000 words where reference text contained no punctuation, primarily resolving clause boundaries in lightly punctuated source texts.
  • Acoustic and prosodic cues: The model processes text transcripts without acoustic or prosodic features; ambiguous intonation patterns cannot be disambiguated from text alone.
  • Dialectal specificity: Trained specifically for Kabyle (kab); other Amazigh varieties (such as Tashelhit, Tarifit, Tamasheq, and Shawiya) possess distinct clitic structures and interrogative syntax.

What was not measured

  • Inter-annotator agreement ceiling: No multi-annotator agreement benchmark exists for Kabyle punctuation, so published F1 numbers cannot be compared to a human consensus ceiling.
  • End-to-end streaming ASR latency: Latency in live streaming scenarios when paired with acoustic models was not formally profiled.

Files

FileSizeDescription
model.safetensors300.6 MB266 tensors in BF16
config.json1.1 KBModel configuration and architecture hyperparameters
configuration_belaid.py2.6 KBHugging Face configuration definition
modeling_belaid.py17.8 KBCustom token classification architecture with restore() method
tokenizer.json1.0 MB16,000-piece Mammeri Unigram tokenizer
mammeri-tok-base-16k.model260.4 KBSentencePiece model file
tokenizer_config.json221 BTokenizer configuration

Reproduction

The source training checkpoint is step 12,071 (SHA-256 9624531ccd16592792b47489b543443235ed93e2bf96e3419a33386cbeed7089).

Evaluation is performed over the held-out continuous discourse diagnostic split (18,621 words, 128 windows). Both the trained model and the rule baseline are scored in a single unified pass. 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 of Greater Kabylia, he was commissioned in the 1940s to record traditional oral tales. Rather than merely transcribing existing folklore, he seized upon the expressive possibilities of the written medium to compose original short stories, essays, and autobiographical reflections in a language that had previously lived almost entirely in the oral domain.

His pioneering collection, Les Cahiers de Belaïd (published posthumously in 1964 by the Fichier de Documentation Berbère), constitutes the very first body of continuous Kabyle narrative prose written in Latin orthography. Setting spoken Kabyle into written prose for the first time required inventing the conventions of the written page from whole cloth: determining where spoken pauses become punctuation marks, how to delimit complex subordinate clauses, where a sentence terminates, and which entities demand capitalization.

Because those exact grammatical and typographic decisions define the objective of punctuation and casing restoration, this model carries his name in homage to his foundational contribution to Kabyle writing.

Citation

@software{agbalu_belaid_75m_2026,
  title  = {Belaid-75M: Discourse-Level Punctuation and Truecasing Restoration for Kabyle},
  author = {AƔBALU},
  year   = {2026},
  url    = {https://huggingface.co/agbalu/Belaid-75M},
  note   = {Discourse-level punctuation and casing restoration over Masinissa-73M with 1,024-token context}
}

Licence

Apache-2.0 on the model weights and code.

Part of AƔBALU, a comprehensive Kabyle language resource and model collection. The naming is homage.

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

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

GPU в ailist

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

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

Модели нужен код из репозитория; запуск откроется после проверки совместимости.

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

0 моделей