Word splitting
segment_documentKhmer has no spaces between words. The text is split into words, and each word keeps its exact place in your string.
Neam marks the people, organizations and places in Khmer text and tells you exactly where each one is. It is an open Python library that runs offline on an ordinary laptop.
Real output of the released model, saved from a run of the neam package. Hover a name to find it in the result.
Each of these runs inside one predict call.
segment_documentKhmer has no spaces between words. The text is split into words, and each word keeps its exact place in your string.
normalizeZero-width spaces from web pages are removed for the model only, so positions still match the original.
context_windowsText longer than the model's limit is read in overlapping windows, so no name is cut in half.
ensemble.jsonSeven independently trained models are averaged, which makes results steadier than any single one.
decoding="viterbi"A name can't continue before it has started. The best valid sequence is chosen for the whole text.
extract_article_textFetches a public news page, keeps the article text and drops menus, with safety checks on the address.