People, organizations and places, pointed out automatically. Here is how it was built, decision by decision, and why each one was needed.
Almost no labelled Khmer news existed. We had to make our own.
ក្រសួងធម្មការ និងសាសនា contains "and". Where does it end?
It had to run on an ordinary laptop, offline.
Every number on this page is a score out of 100. Missing a name lowers it; marking something wrong lowers it too.
87 / 100 on 10 news articles the model never saw while learning.
Each card shows the problem we hit, what we did, and what it changed. Examples are real model output unless marked "illustration".
In matched tests where only this choice changed, the new method won on all three seeds, by 2.3 points on average. The release that introduced it (v17) rose 9.7 points, the largest step in Neam's history, but that release also changed how the models were trained, so the 9.7 can't all be credited to this fix. Full case study
The red word sits at a chunk edge: it sees only one side.
Each word is read from the window where it sits most centrally.
Given one sentence alone, the model missed ក្រសួងធម្មការ និងសាសនា (Ministry of Cults and Religion). Reading it inside the full article, it found it.
How sure one model was that ងួន starts a person's name: it would have missed it.
"Indonesian nationals": a place, or not? illustration
Real output: the province is a place; the nationals are not.
Darker = models disagree more. Outlined = chosen for labelling.
Every label is reviewed by a person. Only positions are stored; the news text stays with its publisher.
Score on 10 unseen articles after each version. The numbered markers match the decisions above.
Bars compare each idea with the model it had to beat.
We reshuffled the test articles 10,000 times. The green band holds 95% of the results, and all of it is far above zero.
Overall gain from first version to release: +20.8 points (95% of reshuffles: +13.5 to +28.6).
Runs offline. The first run downloads the model (263 MB).
pip install neamfrom neam import Neam
ner = Neam.from_pretrained("MoriartyPuth/neam")
result = ner.predict("លោក ហ៊ុន ម៉ាណែត បានជួបជាមួយក្រសួងសុខាភិបាល")
for e in result["entities"]:
print(e["label"], e["text"], e["start"], e["end"])@misc{puthcambo2026neam,
title = {Neam: Open Named Entity Recognition
for Khmer News with a Small {ALBERT} Ensemble},
author = {{Eav Puthcambo}},
year = {2026},
note = {Preprint, ResearchGate},
url = {https://www.researchgate.net/publication/417187812}
}