Mova0.6 pre-release

the flag of Latvia 27. Latgalian in Mova

Latgalian has a grammar manual in Mova under the language code ltg. It has no level-2 parser model or annotated treebank in Mova, and no parsing baseline has been measured. This chapter describes how the multilingual parser routes text, what its output shows when a model is missing, and how Squid records grammar rules for future implementation.

Language segmentation and model selection

The multilingual parser tools/mova-parse works at two levels. At level 1, tools/langseg assigns a language to every sentence and span. At level 2, the parser selects a model for each span using that span’s language code. In a sentence with several language spans, model selection therefore takes place separately for each span.

For Latin-script text, the segmenter distinguishes English and French 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. Scripts outside the supported cases receive the label other. To add a Latin-script language, the segmenter needs a lexicon and a Lang code. The langseg latin-lexicon command supports building the lexicon from open UD training splits.

A corpus label identifies the language of the source material. Automatic identification depends on what the segmenter knows about the script or lexicon. For example, a Latgalian encyclopedia sentence can give the Estonian name of a country alongside its Latgalian name. These two source phrases illustrate the input a segmenter can encounter. The language column describes the phrases themselves.

FormLanguageGlossTranslationCorpus ID
Igaunejis RepublikaLatgalianEstonia.GEN.SG republic.NOM.SGRepublic of Estoniawiki:ltg:Suoku puslopa
Eesti VabariikEstonianEstonia republicRepublic of Estoniawiki:ltg:Suoku puslopa

Latgalian model and treebank availability

A level-2 model supplies the parser and tagger with trained data for a particular language. A treebank supplies sentences with reference annotations for training and evaluation. Mova has neither resource for Latgalian. Its own parser, the en crate, has models for English (en.bin) and French (fr.bin). The multilingual parser looks up the model for the language assigned to the span.

The Latgalian examples cited in this manual supply attested wording. For instance, latgaļu volūdā occurs in the encyclopedia’s welcome message. A reference gloss can describe the forms in a phrase without supplying a complete annotated sentence for a treebank.

FormGlossTranslationCorpus ID
latgaļu volūdāLatgalian.GEN.PL language.LOC.SGin Latgalianwiki:ltg:Suoku puslopa

The absence of a model concerns what the parser can produce for Latgalian spans. The absence of a treebank also leaves Mova without a Latgalian reference dataset on which to establish a training and evaluation baseline.

Unannotated parser output for Latgalian spans

If the model for a span’s language is missing, tools/mova-parse reports the language in the # parse comment. Each token row for the span carries the following values. The comment reports the missing model for the language, and Parse=None marks the individual rows affected.

ColumnValue for a token in a span with no modelAnnotation the column ordinarily carries
LEMMA_Dictionary form
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Morphological features
HEAD_Index of the syntactic head
DEPREL_Dependency relation to the head
MISCParse=NoneMiscellaneous information, including the missing-parse marker

In this case, the underscores mark annotations the parser did not supply. An underscore in HEAD, for example, leaves the head unknown. A syntactic root would require an actual head and relation annotation under the UD convention. The missing-model output describes the fields of any token rows emitted for the span. It does not supply Latgalian-specific tokenization.

The corpus phrase 1802 godā contains a year numeral and the locative singular of the noun for ‘year’. The gloss gives that morphological analysis for a reader of the manual. On a row for godā in a span handled as ltg, the missing-model output has _ in FEATS and Parse=None in MISC.

FormGlossTranslationCorpus ID
1802 godā1802 year.LOC.SGin 1802wiki:ltg:19 godu symts

The UD training and evaluation baseline

The language package described in What every language gets calls for the same Universal Dependencies baseline for every language. With a UD training split available, en xpos-fill precedes en train, which trains the tree parser and tagger on that split. en parse-eval measures the resulting parser against the development split. The training and development splits serve different purposes. The training split supplies examples for fitting the model, while the development split supplies reference trees for scoring its predictions.

MeasureFull nameWhat must match the reference
UASUnlabeled attachment scoreThe syntactic head
LASLabeled attachment scoreBoth the syntactic head and the dependency relation

A predicted attachment with the reference head and a different dependency label counts as correct for UAS and incorrect for LAS. Both scores require reference dependencies. Since Mova has no Latgalian treebank, it has no measured Latgalian UAS or LAS. The missing-model marker is an output status and provides no attachment score.

Tree input for frames and pragmatics

Mova’s frame, pragmatics, and world components read English trees. The prag and world components thus depend on annotations beyond the language assignment. A language code tells the multilingual parser which model to select. A dependency tree provides syntactic heads and relation labels that later components can read.

For Latgalian, the absent level-2 parse leaves these components without a tree for the span. Annotation in the prose of the manual, such as a locative gloss, is available to the reader and supplies no dependency structure to the components. Parsing Latgalian would supply a prerequisite for downstream analysis. The current tree-reading support is for English.

Squid claims and the distinction between queued and implemented rules

Squid reads the grammar manual and turns each grammatical point into a claim. Claims that can be formalized include rules, closed lists, and statistics. These enter Squid’s queue for a place in Mova’s code. A conditional rule belongs in the manual with the conditions for its application and any exceptions. A closed list belongs there with its full membership. Such details make the claim precise enough to express what the grammar describes.

The queue is a record of claims awaiting implementation. The presence of a claim there therefore gives no assurance that a tokenizer, tagger, or parser applies it. A feature shown in a gloss remains a description of the example until a tool supplies that feature in its output. For a language without its own model, the first grammar points to address are those needed for tokenization, tagging, and a UD treebank baseline.

How Mova handles Latgalian today

tools/langseg assigns languages to sentences and spans. Identification of Latgalian is possible only where the segmenter knows the script or lexicon well enough to identify it. The specified Latin-script distinctions are English and French. An additional Latin-script language requires a lexicon and a Lang code.

tools/mova-parse selects a level-2 model by span language. Latgalian has no model, so for a span treated as ltg the missing language is reported in the # parse comment and the token rows carry Parse=None in MISC. LEMMA, UPOS, XPOS, FEATS, HEAD, and DEPREL contain _. Mova has no Latgalian tokenization, tagging, lemmatization, or parsing at this stage.

Mova has no annotated Latgalian corpus and no measured treebank baseline for the language. The baseline in What every language gets calls for training with en train after en xpos-fill and measuring UAS and LAS from train to development data with en parse-eval. The downstream frame, pragmatics, and world components read English trees. Latgalian currently supplies no parsed trees for them to read.

Squid records grammatical points as claims and queues the formalizable ones for implementation. The Latgalian grammar rules are unimplemented. The first points for tool development are those needed by 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/ltg/27-mova-tools/