Mova0.6 pre-release

the flag of Laos 29. Lao in Mova

Mova’s multilingual parser has a language segmentation stage and a dependency parsing stage. Lao (lo) has no level-two model and no annotated treebank in Mova. This chapter describes what the parser can report for Lao text, what a Lao baseline would measure, and how grammatical descriptions enter Squid’s implementation queue.

Language segmentation and the treatment of Lao script

Level one assigns a language label to each sentence and span. A sentence can contain material in several languages, so its label and the labels of its spans serve different purposes. Level two uses the language assigned to a span to select its parsing model.

tools/langseg distinguishes English and French in Latin script using its 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. Lao script falls under other. This label covers scripts outside the recognized set and therefore leaves the language identity of a Lao-script span unresolved. The lo label on a corpus item identifies its source language. A run of the parser determines its own span labels from the text.

A Lao page can include material in another script. The following corpus excerpt places an English technical term after its Lao counterpart. The spaces in the romanization show the units used for the gloss. Tone is omitted in the romanizations throughout this chapter.

FormRomanizationGlossTranslation
ລົດໄຟຟ້າຂະໜາດໜັກ (heavy rail transit)lot fai-fa khanat nak (heavy rail transit)train electric size heavy (heavy rail transit)heavy electric rail (heavy rail transit)

Corpus sentence wiki:lo:ທາງລົດໄຟ ວຽງຈັນ-ບໍ່ເຕັນ.

The Latin-script material is within the scope of English and French identification. Its actual label depends on the segmenter, and a recognized English span is eligible for English parsing. Lao-script material on the same page remains under other. The lexicon route for adding another Latin-script language applies to text in that script.

Level-two model availability and Parse=None output

tools/mova-parse looks up a model for the language assigned to each span. A span with an available model can receive a dependency analysis. For a language with no model the # parse comment reports the missing model, and the token rows have the following values. Lao has no level-two model.

ColumnValueMeaning for an unparsed token row
LEMMA_Lemma unavailable
UPOS_Universal part of speech unavailable
XPOS_Language-specific part of speech unavailable
FEATS_Morphological feature annotation unavailable
HEAD_Syntactic head unavailable
DEPREL_Dependency relation unavailable
MISCParse=NoneNo parse for the token

Parse=None records the absence of a parse for the row. It applies even when the input is a complete, ordinary sentence. An underscore in HEAD leaves the head unspecified, including whether the token would be the root of a tree. An underscore in FEATS leaves the grammatical features unannotated. Where output contains rows from both parsed and unparsed spans, the row’s annotation status determines what can be read from its syntactic columns.

Tokenization and annotation gaps

Written Lao commonly runs successive words together. Spaces can occur at larger textual boundaries, so counting runs between spaces gives an incomplete account of the syntactic words. A Lao tokenizer would have to recognize boundaries inside continuous strings and handle explicit separators according to what they mark in context. The token rows left by the missing-model path supply no Lao word segmentation.

FormRomanizationGlossTranslation
ສາລານຸກົມເສລີsalanukom seliencyclopedia freea free encyclopedia
ປະ​ເທດ​ເທິງເກາະpathet thoeng kocountry on islanda country on an island

Corpus excerpts from wiki:lo:ໜ້າຫຼັກ and wiki:lo:ປະເທດຍີ່ປຸ່ນ, respectively.

The first excerpt has a noun followed by a property word with no visible space between them. The second contains invisible separators. It has a separator within the written form romanized pathet and none between thoeng and ko. A tokenization convention must distinguish breaks in a text’s character sequence from boundaries between syntactic words. It must also specify how to represent compounds and fixed expressions, where a meaningful internal division may coexist with treatment as a single syntactic word.

Once the word boundaries are established, annotation still has to identify lemmas, assign parts of speech and features, and determine heads and relations. The treatment of a postnominal property word, for example, depends on its role in the phrase or clause. A gloss gives the reader the meaning of the form in the example. The corresponding UD annotation requires a decision about its syntactic function in the sentence. For Lao, Mova currently supplies neither the word boundaries nor those analyses.

Treebank requirements and baseline measurements

The language package calls for a common baseline using annotated Universal Dependencies (UD) data. A Lao treebank for that baseline needs a training split and a development split with compatible annotation. The splits must use consistent conventions for sentence and word boundaries, lemmas, tags, features, heads and relations wherever those annotations are provided. The development split supplies the reference trees against which the trained parser’s output is measured. The Lao corpus excerpts illustrate the input text. Mova holds no annotated Lao treebank.

The parser and tagger are trained with the en crate. The package procedure runs en xpos-fill before en train on the UD training split. en parse-eval measures attachment on the development split. The package specifies the common baseline in What every language gets.

MeasureWhat must match the reference
Unlabeled attachment score (UAS)The syntactic head of an evaluated token
Labeled attachment score (LAS)Both the syntactic head and its dependency relation label

The two scores express the proportion of evaluated tokens meeting their respective conditions. A token attached to the right head with the wrong relation contributes to UAS alone. These measures answer a question about dependency attachments on an annotated evaluation split. They do not provide a separate score for language identification, Lao word segmentation or interpretation. No UAS or LAS baseline has been measured for Lao in Mova.

The scope of frames, pragmatics and world inference

Mova’s frames, pragmatics and world inference read English trees. Lao currently supplies no dependency trees to this processing. A language label, a sequence of token rows and a dependency tree carry different information. Of these, the tree provides the syntactic relations that the downstream processing reads.

Consider two inputs that illustrate the kinds of information at issue.

FormRomanizationGlossTranslation
ລາວອ່ານປຶ້ມlao an puem3SG read bookThey read a book. (constructed)
ປິດປະຕູແດ່pit patu daeclose door request.PTCLPlease close the door. (constructed)

3SG means third-person singular and PTCL means particle.

For a frame analysis of the first example, read supplies the predicate, lao refers to the reader and book supplies what is read. For a pragmatic analysis of the second, the clause requests an action, the addressee is understood as the person to carry it out, and the final particle marks the request. Identifying the particular door would also require information from the discourse or situation. These readings illustrate the difference between grammatical structure and what the utterance conveys in context.

A Lao parse is a prerequisite for passing Lao syntax to downstream processing. The current readers are English-tree readers. Their treatment of Lao predicates, particles, implicit participants and context has no Lao processing result to report.

Grammar claims in Squid's implementation queue

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 the implementation queue for a place in Mova’s code. Publication in the manual records the grammatical description. A queue entry records a candidate for implementation.

The earliest work concerns the distinctions a tokenizer, tagger and UD treebank baseline need. A tokenizer rule needs to identify the text units it acts on, the context in which it places a boundary and the cases where the boundary is absent. A tagging rule needs the conditions that select an analysis when a form can serve more than one function. A closed list needs its full membership and a definition of the class it covers. A statistic needs a defined population and a counting method so that its value can be interpreted or checked.

For example, the function of a classifier can be stated with reference to its position in a construction. In the following noun phrase, a numeral follows the noun and a classifier for volumes follows the numeral.

FormRomanizationGlossTranslation
ປຶ້ມສອງຫົວpuem song huabook two CL.volumetwo books (constructed)

CL means classifier. Formalizing the construction requires the conditions under which the final form has its classifier use. The mere occurrence of that spelling is insufficient because the same form also has a lexical use meaning ‘head’. Tokenization has to establish the units in the phrase, and annotation has to express their functions and relationships under the treebank conventions. The example provides a grammatical analysis. The Lao parser currently performs none of these operations.

How Mova handles Lao today

tools/mova-parse uses tools/langseg at level one to label sentences and spans. tools/langseg recognizes English and French in Latin script, Hebrew-script varieties, and Hebrew or Aramaic in scholarly transliteration. Lao script falls under other, so Lao-script spans receive no positive Lao identification. An additional Latin-script language can be added with a lexicon from an open UD training split using langseg latin-lexicon and a Lang code.

At level two, tools/mova-parse parses each span using the model for its assigned language. The en crate has models for English (en.bin) and French (fr.bin). Lao (lo) has no model. The missing-model output reports the absence in the # parse comment, leaves LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL as _, and records Parse=None in MISC. Mova does not tokenize, tag, lemmatize or parse Lao.

Mova holds no annotated Lao treebank and has measured no Lao treebank baseline. The baseline specified in What every language gets uses en xpos-fill before en train on a UD training split and en parse-eval to measure UAS and LAS on the development split.

The frames, pragmatics and world components, including prag and world, read English trees. They have no Lao trees to read. Squid turns the manual’s grammatical points into claims and queues the formalizable ones. The Lao rules await implementation, with the requirements of tokenization, tagging and a UD treebank baseline coming first.

Sources for this chapter

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