Mova0.6 pre-release

the flag of Cambodia 30. Khmer in Mova

Mova processes multilingual text in two levels. The first assigns languages to sentences and spans. The second uses a language-specific model to supply Universal Dependencies (UD) annotations. For Khmer (km), level one treats Khmer script as other, and level two has no Khmer model. Mova holds Khmer text samples, but it has no annotated Khmer treebank or measured Khmer parser baseline.

Khmer script and level-one span detection

Level one, tools/langseg, assigns a language label to every sentence and span. Its Latin-script component distinguishes English and French using a Latin table, a lexicon for each language and a character 4-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside this support, including Khmer, fall under other. That label does not identify the language as km.

The sentence and span are different units of analysis. Text from a Khmer source can contain Khmer writing, Latin-script names and passages in English. The language of the source gives no assurance that every span is in that language. A Latin-script name embedded in Khmer text also does not acquire a Khmer language label from the surrounding script.

FormRomanizationGlossTranslationCorpus sentence id
“សង្កាត់ស្វាយរៀង”sangkat Svay Riengward Svay.Rieng‘Svay Rieng ward’wiki:km:សង្កាត់ស្វាយរៀង
“Svay Rieng Sangkeat”—Svay.Rieng ward‘Svay Rieng ward’wiki:km:សង្កាត់ស្វាយរៀង

The two forms occur in the same corpus sentence. They illustrate a change of script within a sentence. The table gives the text and its interpretation without assigning a predicted span label or boundary to either form.

For an additional Latin-script language, the supported extension is to add a lexicon and a Lang code. The langseg latin-lexicon command builds a lexicon from an open UD training split. This extension concerns Latin-script language identification. The current classification for Khmer script is other.

Level-two output and Parse=None

Level two in tools/mova-parse looks up a model for the language of each span. In a text with several spans, model availability is determined separately for each language. When a model is missing, the # parse comment reports the language without a model. On the affected token rows, six annotation fields contain _, and MISC contains Parse=None. Khmer has no level-two model, so the Khmer tokens that the output reports carry this unannotated form.

FieldInformation the field representsValue for a token with no model
LEMMADictionary or base form_
UPOSUniversal part of speech_
XPOSLanguage-specific part-of-speech tag_
FEATSGrammatical features_
HEADIndex of the syntactic head, with 0 for the root_
DEPRELDependency relation to the head, including root for the root_
MISCMiscellaneous token-level informationContains Parse=None

The # parse comment records the missing model at the output level. Parse=None records the absence of a parse on a token row. An underscore in HEAD must therefore be read as a missing annotation. In particular, it does not give the token root status. The other underscores likewise leave the lemma, tags, features and relation unspecified. The presence of token rows in this fallback supplies no evidence that their boundaries follow Khmer word segmentation.

Tokenizer, tagger and treebank requirements

A Khmer tokenizer needs a consistent account of word boundaries. Khmer writing commonly runs words together, and spaces may set off larger groups. The absence of a space is therefore insufficient evidence that adjacent material forms a single word. The treatment of digits next to words is one decision the tokenizer and annotated corpus must make consistently.

FormRomanizationGlossTranslationCorpus sentence id
“៣ឃុំ”bei khumthree commune‘three communes’wiki:km:ស្រុកស្ទឹងហាវ
“១០ភូមិ”dap phumten village‘ten villages’wiki:km:ស្រុកស្ទឹងហាវ

In these excerpts, the written number touches the following noun. A segmentation policy has to recover the word boundary at each digit-to-noun transition while keeping the digits of ១០ together as one number. The romanization gives the readings of the numerals. The examples illustrate input for a tokenizer, without representing segmentation supplied by Mova.

A tagger needs word units and annotation conventions that apply consistently across contexts. Once the boundaries have been set, the tagger can assign parts of speech to those units. The treebank must also specify the lemmas and grammatical features used in its annotation. The parser needs a head and dependency relation for each word, including an explicit root. These layers share the same word units. A boundary decision therefore affects which items can receive tags and which items can bear dependency relations.

A treebank baseline needs annotated training and development splits. The training split supplies the analyses from which the tagger and parser learn. The development split supplies reference analyses against which predictions can be scored. Decisions about segmentation, tagging and dependency annotation must be applied consistently across the two splits. Raw text provides material for annotation, but it cannot by itself supply reference heads and relations.

Training and evaluation with UAS and LAS

The en crate provides Mova's tree parser and tagger. The baseline in What every language gets calls for the same training and evaluation procedure for each language.

StepCommandRole in the baseline
Prepare part-of-speech annotationsen xpos-fillPrecede training with XPOS preparation
Trainen trainTrain the tree parser and tagger on the language's UD training split
Evaluateen parse-evalMeasure UAS and LAS on the development split after training on the training split

Unlabeled attachment score (UAS) measures the proportion of scored words assigned the reference head. Labeled attachment score (LAS) measures the proportion assigned both the reference head and the reference dependency relation. For a scored word with a correct head and an incorrect relation, only UAS counts the attachment as correct. A wrong head contributes to neither score, even if the predicted relation matches the reference label. With the same set of scored words, LAS can equal UAS or be lower.

Predicted headPredicted relationCounts for UASCounts for LAS
CorrectCorrectYesYes
CorrectIncorrectYesNo
IncorrectCorrectNoNo
IncorrectIncorrectNoNo

The two scores measure dependency attachment. They do not separately measure script recognition, word segmentation, lemmatization or tagging. They also do not measure interpretation in frames or pragmatics. A measured train-to-development result requires reference trees in the development split.

Khmer corpus and baseline status

Mova's Khmer corpus samples include running prose, headings, lists, captions and text in more than one script. They provide evidence of the forms and boundaries that a Khmer annotation scheme has to account for. The corpus sentence IDs identify the raw examples. They do not identify sentences with reference tags or trees.

Mova currently holds no annotated Khmer treebank. It consequently has no measured Khmer treebank baseline and no Khmer UAS or LAS to report. The absence of a score is distinct from a score of zero, which would describe the outcome of an evaluation. The English and French model files, en.bin and fr.bin, are models for their own languages. The multilingual parser requires a model for the language of the span, and no such file exists for km.

Dependencies of frame and pragmatics processing

Mova's frame, pragmatics and world processing reads English trees. A language label or a span boundary does not supply the syntactic input these components use. The same applies to a Khmer token row with Parse=None. Its missing head and relation leave that row without a dependency analysis for the downstream components to read.

A parse in another language is a prerequisite for giving these components trees from that language. Their current input is English, so the existence of a Khmer parser would establish the availability of Khmer trees. Frame and pragmatic processing of those trees is outside the current Khmer support.

How Mova handles Khmer grammar claims in Squid

Squid reads the grammar manual and turns each grammatical point into a claim. Claims that can be formalized, including rules, closed lists and statistics, wait in Squid's queue for a place in Mova's code. A queued claim records a point of grammar awaiting implementation.

For Khmer, tools/langseg assigns Khmer script to other. There is no level-two model for km, so tools/mova-parse leaves its tokens unannotated, with Parse=None in MISC. Mova does not tokenize, tag, lemmatize or parse Khmer. It holds no annotated Khmer treebank and has measured no treebank baseline. The frame, pragmatics and world components read English trees and have no Khmer trees to read.

The Khmer rules in this manual are unimplemented. The claims needed first are those that support a tokenizer, a tagger and a UD treebank baseline.

Sources for this chapter

This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/km/30-mova-tools/