/ Модель

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

Лицензия
Apache 2.0
Базовая модель
albert-khmer-small
Библиотека
transformers
Опубликована
21 окт 2026

neam

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

Neam — ансамбль моделей ALBERT для извлечения имён людей, организаций и мест из новостей на кхмерском языке.

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

Бенчмарки

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

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

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

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

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

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

Neam (នាម) — модель для распознавания именованных сущностей в новостных текстах на кхмерском языке, разработанная Moriarty Puth. Она размечает имена людей (PER), организации (ORG) и места (LOC), возвращая границы сущностей в виде символьных смещений исходного текста. Модель предназначена для поиска, индексирования и вспомогательного чтения новостей.

Система состоит из ансамбля семи дообученных токен-классификаторов ALBERT, основанных на seanghay/albert-khmer-small. Усреднение вероятностей меток сочетается с декодированием Viterbi для схемы IOB2, перекрывающимися окнами контекста до 128 подслов и правилами отображения, учитывающими особенности кхмерского текста. Общий объём моделей — около 265 МБ; ансамбль работает на CPU. Для запуска рекомендуется пакет neam: использование отдельного чекпойнта через стандартный конвейер Transformers даёт заметно худшие результаты.

На отложенной выборке из 10 статей модель показала F1 86,70; автор ожидает около 86–87 F1 на похожих новостях. Основное ограничение — перенос на другие жанры и источники не проверен; качество распознавания организаций ниже, чем для людей и мест. Модель зависит от сегментации khmer-nltk, а оценки уверенности не являются калиброванными вероятностями. Условия распространения — Apache-2.0.

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

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

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

Neam (នាម): Khmer news NER

Neam finds people (PER), organizations (ORG) and places (LOC) in Khmer text and returns character offsets in the original input. It was trained and evaluated on Khmer news.

Paper: Neam: Open Named Entity Recognition for Khmer News with a Small ALBERT Ensemble (preprint, 2026).

Code: github.com/MoriartyPuth/neam (Apache-2.0)

How it was built: moriartyputh.github.io/neam, a visual walkthrough of the pipeline, experiments and results.

Use the neam package to run this model. It is an ensemble of seven ALBERT checkpoints (members/), combined by ensemble.json with Viterbi decoding, overlapping context windows and Khmer-specific display rules. Loading one member with the standard transformers pipeline gives noticeably worse results.

pip install neam
from neam import Neam

ner = Neam.from_pretrained("MoriartyPuth/neam")
result = ner.predict("លោក ហ៊ុន ម៉ាណែត បានជួបជាមួយក្រសួងសុខាភិបាលនៅរាជធានីភ្នំពេញ។")
for entity in result["entities"]:
    print(entity["label"], entity["text"], entity["start"], entity["end"])

Model details

  • Architecture: seven fine-tuned seanghay/albert-khmer-small token classifiers (seeds 42 to 48), with softmax probabilities averaged. Labels are IOB2 over khmer-nltk words, read from each word's first non-▁ subword.
  • Decoding: constrained IOB2 Viterbi with calibrated label scores (O × 0.9, ORG × 1.2, LOC × 0.85). Each word is read in the overlapping 128-subword window that gives it the most context.
  • Display rules:
    • A short honorific such as លោក is joined to a following name; ceremonial titles and ranks (ឯកឧត្តម, សម្តេច, …) are kept outside it.
    • Common place designators (ខេត្ត, ស្រុក, …) are completed.
    • A LOC directly after ជនជាតិ (a nationality phrase) is removed.
    • Sentence punctuation, whitespace and zero-width characters are trimmed from span edges.
  • Size: about 37 MB per member, about 265 MB in total. It runs on a CPU.

Intended use and annotation policy

Neam is for tagging named entities in Khmer news text, for search, indexing or reading aids. It follows docs/annotation_policy.md, in brief:

  • PER covers names. Ceremonial titles (ឯកឧត្តម, សម្តេច, លោកជំទាវ) and ranks are excluded; short honorifics (លោក, លោកស្រី) are included.
  • ORG covers named institutions, including their designator and any country or province in the name (for example រាជរដ្ឋាភិបាលកម្ពុជា and អយ្យការអមសាលាដំបូងខេត្តព្រះសីហនុ).
  • LOC covers places and facilities.
  • Nationality phrases (ជនជាតិ + country), products, events and storms are not entities.

Training data

  • Cleaned Khmer WikiANN and a 1,200-record Khmer fiNERweb sample (PER/ORG/LOC labels only).
  • 117 records from the project's earlier Khmer news sets, plus 31 recent articles from Fresh News, Khmer Press and Kampuchea Thmey (821 entities), chosen where earlier ensembles disagreed most and labelled at character level under the policy. The labels are assistant drafts following the project owner's policy decisions; the owner, a Khmer reader, reviewed the newest 10 articles (399 labels, one correction) and a sample of five earlier articles (121 labels, no errors).
  • A small synthetic curriculum contrasting nationality phrases with the same country used as a place.

Publisher article text is not redistributed with this model.

Training settings: 5 epochs, learning rate 3e-5, batch size 8 with 2-step gradient accumulation, frozen embeddings, and the news data weighted ×3.

Evaluation

Exact character-span F1: an entity counts only if both its boundaries and its type match.

SetArticles / entitiesF1PrecisionRecallPERORGLOC
Validation5 / 11182.2579.285.6100.079.184.8
Held-out (never used for training)10 / 19986.7085.088.498.574.591.8

The PER, ORG and LOC columns are F1. For comparison, the project's earliest model (WikiANN-centred, no news-specific methods) scores 59.5 F1 on the same held-out set.

The validation labels follow the current policy (four bracketed-acronym and title labels were corrected on 2026-10-30, 108 → 111 entities). The previous release (0.1.0, three seeds of the v24 recipe) scores 79.65 / 85.71 on these labels.

Seed variance. Single models of this recipe score between 80.5 and 88.6 on held-out, depending on the random seed; five-model ensembles average 86.8 (range 84.8–88.9). This release uses all seven trained seeds, with no subset chosen after scoring. Expect about 86–87 F1 on similar Khmer news. The newest training articles come from the same sources and weeks as the held-out set, which may flatter the held-out score slightly.

Limitations

  • Domain. Evaluated only on news from three Cambodian publishers, collected in September–October 2026. Accuracy on social media, government documents, informal or older text is untested and likely lower.
  • Organization boundaries are the main weakness (about 75 ORG F1 on held-out). Long institutional names are sometimes cut short or split into designator plus name.
  • Small evaluation sets. 307 entities in total, labelled by the same process as the training data. There has been no independent second-annotator agreement study.
  • Segmentation. It relies on khmer-nltk word segmentation. Unusual spellings and transliterated foreign names can be segmented in ways that hurt boundaries.
  • Scores in the output are model confidences, not calibrated probabilities of correctness.

Citation

If you use Neam, please cite the preprint:

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

License and attribution

  • This model and the neam code are released under Apache-2.0.
  • Base model: seanghay/albert-khmer-small (Apache-2.0).
  • Training data:
    • whoisjones/fiNERweb (MIT).
    • unimelb-nlp/wikiann. Its license is listed as unknown on the Hub; it is derived from Wikipedia.
    • News articles remain the property of their publishers and are not redistributed.

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

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

GPU в ailist

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

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

В репозитории нет config.json: не понять архитектуру модели.

Ревизия весов
86d24e8

0 моделей