Mova0.6 pre-release

Welsh: the red dragon on white and green 20. Old Welsh in Mova

Old Welsh has the edition code owl. The grammar describes the language, while the processing package currently has neither an Old Welsh parser model nor an annotated Old Welsh corpus. This chapter follows the package from language identification through parsing and evaluation to the stages that read syntactic trees. It also explains how grammar claims enter Squid’s implementation queue.

Language segmentation and the available Latin-script inventories

Language segmentation is the first level of the multilingual parser. tools/langseg assigns a language to each sentence and to spans within it. The span assignment matters when a sentence contains material in more than one language, because the second level selects a parser model for each span according to its assigned language.

For Latin script, the available language inventories distinguish English and French. The segmenter uses a Latin-script table, a lexicon for each of those languages, and a character four-gram model. A four-gram describes a sequence of four characters, so this evidence concerns spelling patterns as well as entries in the lexicons.

InputDistinctions available to the segmenter
Latin-script textEnglish and French
Hebrew-script textHebrew-script varieties
Scholarly transliterationHebrew or Aramaic
Text in any other scriptother

Old Welsh uses Latin script, but owl is absent from the available Latin-script inventories. Recognizing the script therefore provides no Old Welsh language identification. The other label in the table is the classification for scripts outside those handled by the segmenter. It does not give an Old Welsh label to text in Latin script. The presence of Old Welsh within a sentence is likewise insufficient for the segmenter to identify the bounds of an Old Welsh span.

Adding a Latin-script language requires a lexicon and a Lang code. langseg latin-lexicon can build a lexicon from an open Universal Dependencies training split. The lexicon and code are inputs to language identification. The parser model used after that identification is a separate resource.

Missing parser model and CoNLL-U output

At level 2, tools/mova-parse selects the model associated with the language of each span. This makes model availability a per-span condition in mixed-language input. Old Welsh has no level-2 model. When the parser encounters a span whose assigned language has no model, the # parse comment reports the missing model and the associated token rows carry the following values.

CoNLL-U fieldValue for a span without a modelAnnotation normally carried by the field
LEMMA_Dictionary form
UPOS_Universal part-of-speech tag
XPOS_Language-specific part-of-speech tag
FEATS_Morphological features
HEAD_Index of the syntactic head
DEPREL_Dependency relation to that head
MISCIncludes Parse=NoneMiscellaneous token information

In these six annotation fields, _ indicates that the parser supplied no value. For instance, an unset HEAD field supplies no evidence for identifying a token as the root, and an unset FEATS field supplies no evidence about whether that form carries a grammatical feature. Parse=None records the absence of a parse explicitly in MISC. The comment and the token marker make the missing result visible at different places in the CoNLL-U output.

The missing-model behavior is conditional on the language assignment. Its application to rows for owl does not imply that level 1 can recognize Old Welsh automatically. Likewise, the description of the values on those rows establishes no Old Welsh tokenization rules. Old Welsh currently has no Mova tokenization, tagging, lemmatization, or dependency parsing.

Corpus availability and the unmeasured UD baseline

Mova has no annotated Old Welsh corpus. Here, an annotated corpus means a treebank with sentences and their grammatical annotation, including the dependency structure needed to train and evaluate a parser. The availability of Old Welsh texts or the description of their grammar in this manual is a separate matter from the availability of a treebank in the package.

The common package baseline uses Universal Dependencies (UD) training and development splits. The parser and tagger belong to the en crate. The package requirements in What every language gets call for the same baseline for each language. The current models are en.bin for English and fr.bin for French.

StageCommandRole in the baseline
Preparationen xpos-fillPrecedes training on the UD training split
Trainingen trainTrains the parser and tagger on the training split
Evaluationen parse-evalMeasures UAS and LAS on the development split after training

Unlabeled attachment score (UAS) measures how often a scored token is assigned its reference head. Labeled attachment score (LAS) requires both the reference head and the reference dependency relation. The training split supplies the examples from which the model learns. The development split supplies reference annotations against which its output is scored.

Neither attachment score has been measured for Old Welsh. With no annotated Old Welsh corpus in Mova, the package has no Old Welsh training and development data for this baseline. The underscores in the missing-model output record a processing gap. They supply neither reference arcs nor evaluated predictions from which to calculate attachment accuracy.

Input requirements for frames and pragmatics

Mova’s frames, pragmatics and world components, including prag and world, read English trees. Their input is downstream of language segmentation and syntactic parsing. A language label provides the span’s assigned language. A dependency tree provides the syntactic heads and relations within the span. The downstream components require the latter kind of information.

An Old Welsh span with Parse=None supplies none of those heads or relations. Consequently, there is no Old Welsh tree for the frame, pragmatic or world components to read. The fact that a span can be represented in CoNLL-U does not supply those dependencies, since the relevant columns can be unset.

For another language, parsing is a prerequisite to giving these components a tree to read. The current description establishes English trees as their input. A future Old Welsh parser would address the missing syntactic input. Availability of a model alone would establish no support for Old Welsh frames, pragmatics or world interpretation.

Grammar claims in Squid and their implementation status

Squid reads the manual and turns each grammatical point into a claim. Formalizable claims enter a queue for a place in Mova’s code. These include rules, closed lists and statistics. A rule states the conditions under which a generalization applies, together with its exceptions. A closed list states its full membership. A statistical claim records a measured result where one is available.

A queued claim has the status of a description awaiting implementation. Its presence in the queue gives no indication that tools/langseg recognizes a form, that the parser can produce an analysis, or that prag can interpret it. The rules in this manual are currently unimplemented for Old Welsh. The absence of an Old Welsh UD baseline also means that there is no measured parser result to report for the language.

The first claims relevant to implementation are those needed for tokenization, tagging and a UD treebank baseline. Tokenization needs decisions about where words and other tokens begin and end. Tagging needs an inventory of categories and criteria for assigning them to forms in context. A treebank baseline needs consistent reference analyses that can serve as training and development data. These needs explain why descriptions of word boundaries and categories matter even before a model can be trained or evaluated.

How Mova handles Old Welsh across the pipeline

tools/mova-parse uses tools/langseg at level 1 to assign languages to sentences and spans. Its Latin-script distinctions cover English and French, using the Latin table, lexicons and a character four-gram model. Old Welsh is outside those inventories. Adding it to Latin-script segmentation requires a lexicon and a Lang code. langseg latin-lexicon can use an open UD training split to build the lexicon.

At level 2, tools/mova-parse parses each span with its assigned language’s model. There is no model for owl. When a span is assigned a language without a model, the # parse comment reports the gap. Its token rows have _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, and Parse=None in MISC. Mova currently does not tokenize, tag, lemmatize or parse Old Welsh.

Mova holds no annotated Old Welsh treebank, so there is no measured Old Welsh UD baseline. The common baseline in What every language gets uses en xpos-fill before training the parser and tagger with en train, then uses en parse-eval to measure UAS and LAS on the development split. The available models are en.bin and fr.bin.

Mova’s frames, pragmatics and world components read English trees. With no Old Welsh parse, they have no Old Welsh tree to read. Squid records Old Welsh grammar points as claims and queues formalizable claims for implementation. The queued claims have no effect on processing yet. The first implementation needs concern the tokenizer, the tagger and the UD treebank baseline.

Sources for this chapter

This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/cy/owl/20-mova-tools/