Khmer named entity recognition

Neam finds the names in Khmer news

People, organizations and places, pointed out automatically. Here is how it was built, decision by decision, and why each one was needed.

Person Organization Place
លោក ហ៊ុន ម៉ាណែត បានជួបជាមួយក្រសួងសុខាភិបាលនៅរាជធានីភ្នំពេញ។
"Mr. Hun Manet met with the Ministry of Health in Phnom Penh." · Real output of Neam.
The problem

English gives clues. Khmer does not.

English
HunManetmettheMinistryofHealth
✓ spaces between words✓ Capital letters mark names
Khmer
ហ៊ុនម៉ាណែតបានជួបជាមួយក្រសួងសុខាភិបាល
✗ no spaces between words✗ no capital letters✗ invisible characters

Few examples

Almost no labelled Khmer news existed. We had to make our own.

Long names

ក្រសួងធម្មការ និងសាសនា contains "and". Where does it end?

Small computer

It had to run on an ordinary laptop, offline.

How we keep score

Only exactly right counts

Every number on this page is a score out of 100. Missing a name lowers it; marking something wrong lowers it too.

✓ក្រសួងសុខាភិបាល whole name, right type
✗ក្រសួងសុខាភិបាល half a name
✗ក្រសួងសុខាភិបាល right words, wrong type
✗ក្រសួងសុខាភិបាល missed completely

87 / 100 on 10 news articles the model never saw while learning.

How we built it

Eight decisions, and why each was necessary

Each card shows the problem we hit, what we did, and what it changed. Examples are real model output unless marked "illustration".

1
Before anything else

Fix the scorekeeper

55 → 69same model
Why it was necessary: the checking step was cutting correct answers, so good predictions were counted as mistakes. With a broken ruler, every later decision would have been guesswork.
✗ Broken scorekeeper illustration
✓Model said: U.S.A.
✗Counted as: U.S.A → "wrong"
→
✓ Fixed
✓Model said: U.S.A.
✓Counted as: U.S.A. → "right"
2
Where are the words?

Cut the text into words first

foundation
Why it was necessary: the model labels one word at a time, and Khmer doesn't show where words end. Each word also remembers its exact position, so answers point back to the right spot.
✗ One long string
លោកហ៊ុនម៉ាណែតបានជួបជាមួយក្រសួងសុខាភិបាល
→
✓ Words
លោកហ៊ុនម៉ាណែតបានជួបជាមួយក្រសួងសុខាភិបាល
3
Which piece should it look at?

Read each word from its meaningful part

+2.3won 3 of 3 matched tests
Why it was necessary: the model splits words into pieces, and about a third of words start with a blank marker that looks the same for every word. The standard method asked the model to decide from that blank, which has no letters of its own, so it could only lean on clues from the pieces around it.
✗ Standard method
▁រាជរដ្ឋាភិបាលកម្ពុជា
"Is a name starting here?" asked of a blank tile
→
✓ Neam
▁រាជរដ្ឋាភិបាលកម្ពុជា
asked of the first piece with real content
About the numbers

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

4
Names are known by their neighbours

Read long articles in overlapping windows

+5 to 6on organizations
Why it was necessary: the model reads at most about 80 words at a time. Cutting an article into separate chunks leaves words at the edges with context on one side only, and those were the names it missed.
✗ Separate chunks

The red word sits at a chunk edge: it sees only one side.

→
✓ Overlapping windows

Each word is read from the window where it sits most centrally.

Real example

Given one sentence alone, the model missed ក្រសួងធម្មការ និងសាសនា (Ministry of Cults and Religion). Reading it inside the full article, it found it.

5
One opinion is not enough

Ask seven models and average

steadierless luck involved
Why it was necessary: two models trained the same way can differ by up to 8.6 points, purely by chance. Averaging seven smooths out the unlucky ones.
✗ One model
model 5
22%

How sure one model was that ងួន starts a person's name: it would have missed it.

→
✓ Seven models
6
A name can't start in the middle

Choose the best answer for the whole sentence

+2.5 to 3.7every model tested
Why it was necessary: deciding each word on its own often cut names short or produced impossible answers. Checking the whole sentence at once only allows names that start and end properly.
✗ Word by word
→ ភ្លើងទៀន ("candle-light": half the name)
→
✓ Whole sentence
គណបក្សភ្លើងទៀន Candlelight Party
7
Examples must agree

Write one rulebook and teach it

+5.4on unseen news
Why it was necessary: our examples labelled the same kind of phrase in different ways, so the model learned to guess. We wrote the rules down, fixed the examples, and added 64 practice sentences for the most confusing rule.
✗ Mixed examples
article A:ជនជាតិឥណ្ឌូនេស៊ី
article B:ជនជាតិឥណ្ឌូនេស៊ី(not a name)

"Indonesian nationals": a place, or not? illustration

→
✓ One rule
"ជនជាតិ + country" describes people, not a place.
ជនជាតិឥណ្ឌូនេស៊ី ចំនួន ១០នាក់ … នៅខេត្តព្រះសីហនុ

Real output: the province is a place; the nationals are not.

8
Labelling is slow, so spend it well

Label the articles the model is unsure about

+5.2from 21 articles
Why it was necessary: every labelled article costs human time. Labelling articles the model already handles teaches it little. The articles where the seven models disagree are where it is learning.
Rank articles by disagreement illustration

Darker = models disagree more. Outlined = chosen for labelling.

→
✓ Label, check, retrain, repeat
1 Rank2 AI drafts3 Script checks4 Human reviews5 Retrain

Every label is reviewed by a person. Only positions are stored; the news text stays with its publisher.

The journey

Climbing from 62 to 87

Score on 10 unseen articles after each version. The numbered markers match the decisions above.

What we tried that did not help

Bars compare each idea with the model it had to beat.

Results

What it gets right, and what is still hard

Names inside names
មហាសន្និបាតអង្គការសហប្រជាជាតិ (UN General Assembly) → finds only "UN"
Places named like clubs
កីឡដ្ឋានព្រះខ័នរាជស្វាយរៀង (a stadium) → read as the football club
Foreign names
ពូទីន (Putin) → marked as a place
Ordinary words
ស្ថានទូត ("embassy") → marked as an organization

Is the improvement real, or luck?

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).

Use it

Try Neam yourself

Install and run

Runs offline. The first run downloads the model (263 MB).

pip install neam
from 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"])

Cite

@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}
}