Mova0.6 pre-release

the flag of Mongolia 27. Mongolian in Mova

Mova has Mongolian text samples under the language code mn. It has no Mongolian treebank, parser model or measured parsing baseline. This chapter describes how Mongolian text passes through the multilingual pipeline and what data would be needed to produce its first Universal Dependencies (UD) analyses.

Mongolian script coverage in language segmentation

Level 1 of tools/mova-parse uses tools/langseg to assign a language label to each sentence and span. The segmenter distinguishes English and French in Latin script using a Latin-script table, a lexicon for each language and a character 4-gram model. It also distinguishes varieties written in Hebrew script and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside its coverage fall under other.

Mongolian Cyrillic and the traditional Mongolian script fall under other. The label carries no Mongolian language identification. The route for adding a Latin-script language uses a lexicon built from an open UD training split with langseg latin-lexicon and a corresponding Lang code. That route concerns Latin-script language identification.

Mixed writing can occur within a single Mongolian expression. The corpus has the following possessive form, with a Latin-script name and a Cyrillic suffix. It illustrates why a change of script can occur within a single grammatical unit.

FormRomanizationGlossTranslation
Studio Pierrot-ийнStudio Pierrot-iinStudio Pierrot-GEN‘Studio Pierrot’s’

Corpus sentence wiki:mn:Tokyo Ghoul.

Level-two model lookup and Parse=None output

Level 2 uses the language assigned to a span to select a parser model. It looks under $MOVA_DATA for that language’s directory, then in its models subdirectory for a .bin file named after the language code. A missing model is reported in the # parse comment. The tokens without a parse carry the following values in the output.

FieldValueAnnotation unavailable
LEMMA_Lemma
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Morphological features
HEAD_Syntactic head
DEPREL_Dependency relation
MISCParse=NoneExplicit status marker for the missing parse

Mongolian has no level-2 model, so its tokens are left unannotated with Parse=None in MISC. The status means the parser did not supply an analysis. For example, _ in FEATS supplies no evidence that a form lacks inflection, and _ in HEAD gives no evidence about where the root of the sentence is. The output can contain token rows even though Mova has no Mongolian tokenizer.

The state of the Mongolian package and held treebank data

The package specification in What every language gets calls for the same parsing baseline for each language. The Mongolian material includes Wikipedia text samples with corpus identifiers. Mova holds no annotated Mongolian treebank. The samples therefore supply attested forms and contexts, but there are no held reference tags or dependency trees against which to score a model.

The samples include article prose as well as fragments with page markup and compressed formatting. The form below is an example of compressed formatting. It places the digits directly against the abbreviated unit. This is a concrete case for a tokenizer specification and can serve as an example before any reference token boundaries have been assigned to it.

FormRomanizationGlossTranslation
24мин24min24 minute.ABBR‘24 minutes’

Corpus sentence wiki:mn:Tokyo Ghoul.

UD training and the unmeasured UAS and LAS baseline

The en crate provides Mova’s own tree parser and tagger. The training workflow runs en xpos-fill before en train. Training uses the language’s UD training split. Then en parse-eval measures performance on the development split. English and French have model files, en.bin and fr.bin respectively.

MeasureWhat a scored token must get right
UAS, unlabeled attachment scoreIts syntactic head matches the reference head.
LAS, labeled attachment scoreBoth its syntactic head and its dependency relation match the reference annotation.

These scores measure attachment to a head. Neither score by itself measures tokenization, tagging or lemmatization accuracy. A Mongolian train-to-development result requires a training split and a development split with reference annotations. With no held Mongolian treebank, there is no measured UAS or LAS for mn. Parse=None is an output status and carries no score.

Frames, pragmatics and their current input requirements

Mova’s frame, pragmatics and world components (prag, world) read English trees. For another language, a parsed tree is a prerequisite to having input at this stage. A Mongolian token row with empty HEAD and DEPREL fields provides no syntactic analysis for these components to read. Mongolian currently supplies no such trees, and English is the language of the trees the components currently read.

The corpus expression below shows the sort of information an analysis would have to make explicit. The two verbs denote related events. The first is a converb, and the second is a participial form. The written sequence alone supplies neither a dependency annotation for the two verbs nor a frame analysis of their events.

FormRomanizationGlossTranslation
үүсч хөгжсөнüüsch khögjsönarise-CVB develop-PTCP‘arose and developed’

Corpus sentence wiki:mn:Кино урлагийн түүх.

Squid claims and the implementation queue

Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable claims, including rules, closed lists and statistics, wait in Squid’s implementation queue for a place in Mova’s code. A queued claim records a point that can be implemented. Its presence in the queue confers no behavior on the segmenter, tagger or parser.

A grammatical description can specify the form and function of a suffix, for example, while leaving a separate UD annotation decision about the word that bears it. The genitive in the phrase below belongs to ‘cell’. In the phrase, ‘white’ modifies ‘cell’, and ‘white cells’ specifies what is being counted. A claim about the genitive ending captures one part of that analysis. A reference tree must also encode the attachments between the words.

FormRomanizationGlossTranslation
Цагаан эсийн тооTsagaan esiin toowhite cell-GEN number‘the number of white cells’

Corpus sentence wiki:mn:Цусны цагаан эс.

The data needed for tokenization, tagging and a parsing baseline

A tokenization specification needs examples with reference sentence and word boundaries. The Mongolian samples show several boundary decisions that matter for later annotation. A foreign name can take a Cyrillic case ending, a numeral can run directly into an abbreviated unit, and a suffix can appear after the closing quotation mark of a name. Punctuation around quoted names and fragments of page markup also need consistent treatment in the reference text. For a corpus covering both Mongolian writing systems, the boundary rules need examples in each script.

FormRomanizationGlossTranslation
"Тироль"-с"Tirol"-sTyrol-ABL‘from “Tyrol”’

Corpus sentence wiki:mn:Тироль.

The quotation marks interrupt the written sequence between the name and its case ending. The tokenization and tagging conventions need to agree on how to represent the ending and associate the ablative with the name. Here and in the earlier examples, GEN and ABL denote genitive and ablative, ABBR denotes an abbreviation, and CVB and PTCP denote a converb and a participle.

Tagging data need lemmas, universal parts of speech and morphological features assigned to tokens in context, with a convention for language-specific tags. For inflected forms, the annotation must identify the lemma and distinguish features carried by the form from those supplied only by the surrounding phrase. Dependency data additionally need reference heads and relation labels. These annotations must use the same tokenization conventions across the training and development splits so that training and evaluation refer to the same kinds of units. Together those splits supply the data for the package’s train-to-development baseline.

How Mova handles Mongolian text today

tools/mova-parse first uses tools/langseg to label sentences and spans. Mongolian Cyrillic and the traditional Mongolian script fall under other. At level 2, the parser uses a model for the span’s assigned language when one exists. There is no model for mn. The output reports a missing model in the # parse comment, leaves LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL as _ on unparsed tokens, and records Parse=None in MISC. Mova does not tokenize, tag, lemmatize or parse Mongolian.

Mova holds no annotated Mongolian treebank, so the baseline called for in What every language gets is unmeasured. The en workflow uses en xpos-fill before en train and measures development-set UAS and LAS with en parse-eval. Mongolian supplies no parsed trees to the frame, pragmatics and world components (prag, world), which currently read English trees.

Squid turns the manual’s grammatical points into claims and queues the formalizable ones. The Mongolian rules described in the manual have yet to be implemented. The first points needed 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/mn/27-mova-tools/