Mova0.6 pre-release

Bavarian: the lozenges of Bavaria, white and blue 27. Bavarian in Mova

Mova uses bar as the language code for Bavarian. This chapter describes the Bavarian material available to Mova, the treatment of text spans without a parser model, and the data required to measure parsing accuracy.

The Bavarian package and its data status

The Bavarian material includes text excerpts from Bavarian Wikipedia. Mova holds no annotated Bavarian treebank and has no Bavarian parser model. The excerpts provide evidence of written forms in context. A sentence identifier locates an excerpt, while a treebank would also record the analysis of its words and their syntactic relations.

Attested formGlossTranslationCorpus sentence ID
“ind Wirtschaft”into.the.ACC inn‘to the pub’wiki:bar:Naa
“vom Moakt Kirchenthumbach”from.the.DAT market.town Kirchenthumbach‘of the market town of Kirchenthumbach’wiki:bar:Sassenreuth
“rund 100 Eihwohna”approximately 100 inhabitant.PL‘about 100 inhabitants’wiki:bar:Sassenreuth

All three forms are in Latin script. In the glosses, ACC is accusative, DAT is dative, and PL is plural. The first two excerpts illustrate why a written form and its grammatical analysis need to be recorded separately. In context, ind and vom each express a preposition and a definite article in one written form. The spelling alone does not resolve how to represent those components in an annotated corpus.

The corpus identifiers give the source language of these excerpts. Recognition of a passage in new input is a separate task performed by the language segmenter.

Language segmentation and model lookup

tools/mova-parse works at two levels. At level 1, tools/langseg assigns a language to each sentence and span. A span is a portion of text to which the segmenter assigns a language. At level 2, the parser uses the span's assigned code to look for the corresponding model at <code>.bin. The lookup is per span, so a sentence containing spans with different codes can require more than one model.

In Latin script, tools/langseg distinguishes English and French using its Latin table, a lexicon for each language, and a character model based on sequences of four characters. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside its supported set receive other. Adding a Latin-script language to the segmenter requires both a lexicon and a Lang code. langseg latin-lexicon builds lexicons from open Universal Dependencies (UD) training splits.

The model lookup uses the code produced by segmentation. Latin script alone does not identify a span as Bavarian, and the presence of bar in a corpus identifier establishes its source independently of what the segmenter would assign. If a span reaches model lookup with the code bar, it has no level-2 model available.

Parser output for Bavarian spans without a model

For a span assigned to Bavarian, tools/mova-parse reports the unavailable model in the # parse comment. It retains the token rows in its output and marks the fields below as unannotated. The same convention applies to other spans whose assigned language has no model.

Output fieldValue without a modelInformation the field would carry
LEMMA_Lexical base form
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Morphological features
HEAD_Syntactic head
DEPREL_Dependency relation to the head
MISCParse=NoneStatus of the parse

Parse=None describes the absence of a parse for the token. An underscore in FEATS under this condition supplies no evidence about the token's morphology. Likewise, the underscores in HEAD and DEPREL supply no dependency relation, including a root relation. The token rows can therefore preserve text from a span even though level 2 provides no Bavarian tokenization, tagging, lemmatization, or dependency analysis. Their presence does not establish that the row boundaries are correct for Bavarian.

Treebank requirements and the train-to-development baseline

What every language gets calls for the same train-to-development baseline for each language. It requires a UD training split and an annotated development split. The training split supplies examples from which to learn tags and dependency trees. The development split supplies reference annotations against which to score predictions. For Bavarian, those annotations would need to settle questions such as how to represent the written contractions shown above and how to record the syntax of the corresponding words.

Mova's own parser is the en crate. After en xpos-fill, en train trains a tree parser and tagger on the language's UD training split. en parse-eval measures attachment on the development split.

MeasureWhen an evaluated attachment counts as correct
UAS, unlabeled attachment scoreThe predicted head matches the reference head.
LAS, labeled attachment scoreBoth the predicted head and its dependency relation match the reference annotation.

The scores summarize agreement with the development trees. They answer questions about attachment, so they do not provide a separate measure of span identification or tell which morphological distinctions the tagger learned. The supplied corpus excerpts cannot serve as the reference for either score because they have no reference heads or relations. Mova holds no Bavarian treebank, so neither score has been measured for bar.

Frames, pragmatics and their dependency on parsed input

Mova's frames, pragmatics, and world components read English trees. A tree supplies syntactic structure that the written text alone leaves implicit for these components. For example, an annotated clause can identify a predicate and show which expression depends on it as the subject. A span label and a set of token rows with empty dependency fields supply none of those relations.

Bavarian spans without a model therefore supply no parsed input to these components. A Bavarian treebank and parser would address the missing syntactic input. The current tree readers are for English, so the availability of a Bavarian parser would by itself establish only that Bavarian trees can be produced. It would give no evidence that frames or pragmatic interpretations can be derived from those trees.

Grammar claims and 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 Squid's queue for a place in Mova's code. A grammar rule describes a pattern and the conditions on its use. A closed list specifies the full set within its stated scope. A statistic needs a defined population or sample to which the figure applies.

An attested form can illustrate a claim without determining its scope. For example, the written contractions in the corpus excerpts give concrete cases for a rule about word boundaries. A formal rule would still need to specify which forms it covers and under which conditions their components receive separate grammatical analyses. Where a description applies only to a particular variety, that limit is part of the claim.

Queue status records a claim awaiting implementation. It gives no assurance that an input matching the claim will receive the corresponding analysis. For Bavarian the first implementation needs concern tokenization, tagging, and the conventions required for a UD treebank baseline. The manual's grammatical descriptions can state what must be represented without implying that a component already produces it.

How Mova handles Bavarian today

tools/mova-parse uses tools/langseg to assign languages to sentences and spans, then looks up each span's language model at <code>.bin. A language can be identified only where the segmenter knows its script or lexicon. Its Latin-script support distinguishes English and French. Adding a further Latin-script language requires a lexicon and a Lang code, with langseg latin-lexicon building the lexicon from an open UD training split.

There is no level-2 model for bar. For a span assigned that code, tools/mova-parse reports the missing model in the # parse comment, fills LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL with _, and sets Parse=None in MISC. Mova provides no Bavarian tokenization, tagging, lemmatization, or parsing for the span.

The en crate has models for English (en.bin) and French (fr.bin). The common baseline in What every language gets uses en xpos-fill before en train on the UD training split, and en parse-eval reports UAS and LAS on the development split. Mova has no annotated Bavarian corpus, so there is no measured Bavarian baseline.

The frames, pragmatics, and world components read English trees. With no Bavarian parse, they have no Bavarian tree to read. Squid turns the manual's grammatical points into claims and queues the ones that can be formalized. The Bavarian grammar rules described in the manual are awaiting implementation, with the first needs arising in tokenization, tagging, and the UD treebank baseline.

Sources for this chapter

This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/de/bar/27-mova-tools/