Mova0.6 pre-release

the flag of Switzerland 32. Romansh in Mova

Mova’s Romansh package uses the language code rm. Its text corpus supplies examples of Romansh in use, including passages that contain material in other languages. Romansh currently has neither a level-2 parser model nor an annotated treebank in Mova, so the package has no measured parsing baseline.

Romansh input and the limits of language segmentation

Mova’s multilingual parser, tools/mova-parse, separates language identification from grammatical analysis. At level 1, tools/langseg assigns a language to each sentence and span. The sentence label and the span labels serve different purposes. A sentence can be predominantly in one language and contain a title, quotation or other passage in another. At level 2, the span label determines which language’s model is sought for that span.

In Latin script, tools/langseg distinguishes English and French through its Latin table, a lexicon for each language and a character 4-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew and Aramaic in scholarly transliteration. Scripts outside its coverage receive other. Adding another Latin-script language requires a lexicon and a Lang code. The langseg latin-lexicon command builds a lexicon from an open Universal Dependencies (UD) training split. The use of Latin script alone gives no Romansh-specific identification. Romansh span identification depends on the segmenter having coverage for Romansh.

The corpus entry on Switzerland places a German name and its Romansh language label together inside a Romansh sentence. The forms below show why sentence and span identification are separate. They illustrate the input and make no claim about the labels the segmenter assigns to it.

FormGlossTranslationCorpus ID
La SvizraDEF.F.SG Switzerland‘Switzerland’wiki:rm:Svizra
tudestgGerman‘German’wiki:rm:Svizra
SchweizSwitzerland‘Switzerland’ (German name)wiki:rm:Svizra

Missing model behavior and the Parse=None output

Level 2 looks up a model by the language assigned to the span, using <code>.bin. The model lookup is conditional on that assignment. When a span is assigned to Romansh, the lookup finds no rm model. tools/mova-parse reports the missing model in the # parse comment. Any token rows for the span carry the following values.

ColumnValueAnnotation absent or status recorded
LEMMA_Lemma
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Morphological features
HEAD_Syntactic head
DEPREL_Dependency relation
MISCParse=NoneMissing parse

Parse=None records the missing analysis. It is a status marker, so it supplies no grammatical evidence about the form on that row. In particular, _ in HEAD leaves the head unspecified. A root assignment would itself be a syntactic annotation. The same distinction applies to FEATS, where _ leaves features unspecified for the row.

The model lookup applies to each span. In multilingual input, a span with an available model can be parsed even when a span assigned to Romansh has no model. Conversely, the missing-model output for rm describes a span already assigned that code. It gives no information about the identification of Romansh text that received a different language label. The presence of token rows also supplies no evidence that Mova has applied Romansh tokenization rules.

Treebank availability and the unmeasured baseline

Mova holds Romansh text examples but has no Romansh treebank. A text example supplies wording and context. A UD treebank supplies grammatical annotations on tokens, including the heads and dependency relations that serve as the reference for parsing evaluation. The corpus identifiers in this chapter identify text examples and do not supply gold annotations.

For example, the corpus has both a phrase with a contraction and a phrase with a separate preposition and article. Their glosses explain the wording. A treebank would also have to record the tokenization and the syntactic analysis used for evaluation.

FormGlossTranslationCorpus ID
al flum Limmatat.DEF.M.SG river Limmat‘by the Limmat River’wiki:rm:Turitg
a la sortidaat DEF.F.SG outlet‘at the outlet’wiki:rm:Turitg

Without an annotated Romansh training split in Mova there is no treebank training input for the package baseline. Without an annotated development split there is no reference for scoring predicted dependencies. UAS and LAS for Romansh are therefore unmeasured. An absent score cannot be read as a score of zero or as an estimate of how a future model will perform.

The package workflow for training and measuring UAS and LAS

The package described in What every language gets asks for the same baseline across languages. Mova’s en crate provides the training and evaluation commands. The workflow takes a UD training split through en xpos-fill before en train trains the tree parser and tagger. en parse-eval then measures attachment on the development split for the model trained on the training split. English and French have models, en.bin and fr.bin. Romansh has no model or measured result from this workflow.

StepCommandRole in the baseline
Prepare the training spliten xpos-fillApply the XPOS preparation step to the UD training data.
Trainen trainFit the tree parser and tagger on the prepared training split.
Evaluateen parse-evalMeasure UAS and LAS on development data using the trained parser.

UAS is unlabeled attachment score. It counts a head assignment as correct when the predicted head matches the annotated head. LAS is labeled attachment score. On the same evaluated tokens, it requires a match on both the head and the dependency relation. A token with the correct head and the wrong relation counts toward UAS only. These measures concern dependency attachment in the train-to-development evaluation. Language identification and the quality of downstream interpretation are outside what those scores measure.

Dependencies of frames, pragmatics and world knowledge on parsed input

Mova’s frame interpretation, pragmatics and world-knowledge processing consume English trees. A tree gives those stages the syntactic relations they can read. A language label supplies the identity of a sentence or span, while Parse=None records that its parse is missing. Neither supplies the relation between a predicate and its dependents.

The Romansh corpus contains predicates such as the one in the following phrase. A reader can interpret the copula and the following noun phrase from the wording. Mova has no Romansh tree that makes their dependency structure available to later stages.

FormGlossTranslationCorpus ID
è ina citadbe.PRS.3SG INDF.F.SG town‘is a town’wiki:rm:Juiz de Fora

Parsing is a prerequisite for those stages to have syntactic input from another language. Their current English-tree input also sets the limit of the available implementation. A Romansh parsing baseline would measure attachment and would give no measurement of frame interpretation, pragmatics or world-knowledge processing.

Grammar claims in Squid and their implementation status

Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable claims, including rules, closed lists and statistics, enter Squid’s queue for a place in Mova’s code. An item in that queue is pending implementation. Its presence records a grammatical claim that can be formalized, while implementation requires code that applies it.

For Romansh, the points that come first are those needed for a tokenizer, a tagger and a UD treebank baseline. Tokenization needs decisions about units in the written input. Tagging needs categories and the conditions under which they apply. A UD baseline needs annotations for training and for measuring the parser on development data. A corpus example can illustrate a point at any of these levels, but the example itself supplies neither the implementation nor the annotated splits. The chapter’s rules are still pending implementation.

How Mova handles the Romansh package today

tools/mova-parse assigns sentence and span languages through tools/langseg and selects the level-2 model by span language. The segmenter’s Latin-script support distinguishes English and French. Coverage for an additional Latin-script language requires a lexicon and a Lang code. Identification of Romansh spans is limited by that coverage.

There is no level-2 model for rm. When a span is assigned to rm, tools/mova-parse reports the missing model in the # parse comment, leaves LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL as _, and records Parse=None in MISC. Mova provides no Romansh tokenization, tagging, lemmatization or parsing.

Mova has no annotated Romansh treebank and no measured Romansh UAS or LAS. The baseline in What every language gets uses en xpos-fill before en train on the UD training split and en parse-eval for development-set evaluation. The available models named for this workflow are en.bin and fr.bin.

Frames, pragmatics and world-knowledge processing read English trees and have no parsed Romansh input. Squid reads the manual as grammatical claims and queues the formalizable ones for implementation. The Romansh rules remain unimplemented. The first points for implementation are those needed for tokenization, tagging and a UD treebank baseline.

Sources for this chapter

This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/rm/32-romansh-in-mova/