hmar-heritage-org/sentences
Viewer • Updated • 266k • 205 • 2
HmarBERT-mini is a small, 4-layer BERT model trained from scratch for the Hmar language (hmr, ISO 639-3), part of the Zo languages family.
At roughly 16.9M parameters (~32 MB in FP16), it runs quickly on laptops, phones, or basic CPUs.
Training ran in two phases:
hmar-heritage-org/sentences) to learn basic grammar, affixes, and sentence structure.hmar-heritage-org/paragraphs, ~3.86M words) from scripture, prose, essays, and online comments to handle full context up to 512 tokens.tirin, van, Pathien) maps to the same tokens as formal text with accents (tîrin, vân, Pathien).[UNK] tokens.ṭ, kh, th, ng, ch).from transformers import pipeline
unmasker = pipeline("fill-mask", model="azinamotoe/HmarBERT-mini")
# Example 1: Prose
text1 = "Chu zan chun lung an lêng deu rieu leiin a ruolnu chu hla rikawt insaktir dingin kan [MASK] a."
print(unmasker(text1)[0]['sequence'])
# -> "...hla rikawt insaktir dingin kan ngên a."
# Example 2: Scripture
text2 = "A tîrin Pathienin hnuoi le [MASK] a siem a."
print(unmasker(text2)[0]['sequence'])
# -> "A tîrin Pathienin hnuoi le vân a siem a."
For test results, accuracy curves, and qualitative examples across different registers, see:
BENCHMARK.md — Evaluation report and case studiesbenchmark_metrics.json — Training loss and learning rate historybenchmark_predictions.jsonl — Model predictions on the test setTrained on open datasets curated by the Hmar Heritage Foundation (hmar-heritage-org).