Mova0.6 pre-release

the flag of Malawi 23. Tumbuka in Mova

Mova uses tum as the language code for Tumbuka. Its corpora contain Tumbuka text, but it has neither an annotated Tumbuka treebank nor a trained Tumbuka parser model. This chapter describes what the multilingual parser returns, how a Universal Dependencies baseline would be trained and measured, and where the grammar manual enters Squid’s implementation workflow.

The Tumbuka package and the current output of mova-parse

The language package specification in What every language gets asks for a common parser baseline across languages. For Tumbuka, the corpus excerpts, the grammar manual, the annotated treebank and the trained model have different roles. The excerpts supply examples of usage. The manual describes grammatical patterns. A treebank would supply reference analyses for training and evaluation. The trained model would supply analyses when the multilingual parser processes new text. The treebank and model are both absent for tum.

When tools/mova-parse receives a span assigned to tum, it has no level-two model to apply. It reports the missing model in the # parse comment and uses the following values on the token rows it returns for that span.

FieldValueInformation left unresolved
LEMMA_Dictionary form
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Morphological features
HEAD_Syntactic head
DEPREL_Dependency relation
MISCParse=NoneRecords that the model supplied no parse

The underscores in HEAD and DEPREL leave both the attachment and the relation unspecified. Parse=None records the status of the parse. It supplies no grammatical judgment about the text. In particular, the presence of token rows in this output does not establish that Mova has applied Tumbuka tokenization rules.

The following corpus fragments illustrate the difference between examples of usage and parser annotations. Their glosses are for reading this chapter.

FormGlossTranslationCorpus ID
Chikaya chikuluvillage large‘a large village’wiki:tum:Vilablareix
ŵanthu ŵanandipeople many‘many people’wiki:tum:Chamba mu Malaŵi
mu charuin country‘in the country’wiki:tum:Nyumba ya Malango ya ku Malawi

Language identification and level-two model lookup

The multilingual parser makes two decisions in sequence. At level one, tools/langseg assigns a language to each sentence and span. At level two, tools/mova-parse looks up a model separately for each span, using the code assigned at level one. The model file follows the pattern <code>.bin, with the same language code in the directory and the filename. The missing-model output applies when that lookup fails for the assigned code. In a passage with spans assigned to different languages, each span uses the lookup for its own code.

For Latin script, the identification machinery distinguishes English and French using a Latin character table, a lexicon for each language and a character four-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. It assigns other to scripts outside its supported set. Tumbuka uses Latin script, so script recognition alone cannot identify a span specifically as Tumbuka. The documented route for adding a Latin-script language is to add a Lang code and a lexicon. The langseg latin-lexicon command builds the lexicon from an open Universal Dependencies training split.

A corpus identifier beginning wiki:tum: records where the example comes from. It gives no result for level-one identification of that text. The missing-model behavior described here is conditional on the span having been assigned tum. Conversely, assigning that code to a span would leave the level-two lookup unresolved until a corresponding model file existed.

Missing annotated corpus and unmeasured UAS and LAS

Mova holds Tumbuka corpus text, but it has no Tumbuka treebank. For dependency evaluation, a treebank supplies reference heads and dependency relations for the evaluated words. Text excerpts, page titles and phrase glosses supply none of those reference attachments. The Parse=None status likewise supplies no attachment to compare with a reference analysis.

MeasureWhat must match the reference on an evaluated wordTumbuka baseline in Mova
Unlabeled attachment score (UAS)The syntactic headUnmeasured
Labeled attachment score (LAS)Both the syntactic head and the dependency relationUnmeasured

Each score is a proportion over the words included in the evaluation. If the parser selects the reference head but assigns the wrong relation, that attachment counts as correct for UAS only. If it selects the wrong head, the attachment counts as incorrect for both measures, even if the relation label matches. The measures assess dependency attachments on evaluated material. Language identification and the availability of parser output are separate questions. For tum, the absence of a measured baseline leaves both score values unknown.

The Universal Dependencies training and evaluation workflow

The baseline requested in What every language gets uses Mova’s parser and tagger in the en crate. English and French have trained models, en.bin and fr.bin. A Tumbuka baseline would follow the same workflow with Tumbuka annotations.

  1. Prepare an annotated Universal Dependencies training split and a development split. The training split provides the analyses from which the parser and tagger learn. The development split provides reference analyses for evaluating the resulting parser.
  2. Run en xpos-fill before training. The XPOS column holds language-specific part-of-speech tags, while UPOS holds universal part-of-speech tags.
  3. Run en train on the prepared training split to train the parser and tagger.
  4. Run en parse-eval to evaluate on the development split and report UAS and LAS. The train-to-development direction keeps the material used for training separate from the material used to measure attachment accuracy.

A treebank also records choices that the annotation must apply consistently, such as which written units receive their own rows and which morphological features are assigned to them. For example, a gloss can help a reader interpret Chikaya chikulu, but a dependency evaluator needs an explicit reference head and relation for each evaluated word. The Tumbuka corpus examples can illustrate annotation questions. The baseline still requires annotated splits and a model trained on the training split. Using that model in multilingual parsing would also require spans assigned to tum and a model file available at the corresponding lookup location.

Squid claims and the implementation queue

Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable claims enter its implementation queue. They include rules with stated conditions and exceptions, closed lists whose members can be enumerated, and statistics that can be represented explicitly. A queued claim records a point awaiting a place in Mova’s code.

The first points for a language without a model are those needed by a tokenizer, a tagger and a Universal Dependencies treebank baseline. For tokenization, the relevant claims concern written boundaries. For tagging, they concern distinctions that can be assigned to words, including word class and morphological features. For treebank annotation, they concern how grammatical relations can be recorded as dependencies. These are roles for the claims in implementation. The manual’s expression of a rule leaves that rule pending until it has been implemented, and a treebank baseline still requires annotated data and evaluation.

How Mova handles Tumbuka trees, frames and pragmatics

tools/langseg assigns languages to sentences and spans at level one, within its script and lexicon coverage. tools/mova-parse uses the assigned code to look for that span’s parser model at level two. There is no level-two model for tum. For spans assigned that code, the # parse comment reports the missing model, LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL contain _, and MISC contains Parse=None. Mova currently supplies no Tumbuka tokenization, tagging, lemmatization or dependency analysis. It holds no Tumbuka treebank and has measured no Tumbuka baseline.

Mova’s frame, pragmatic and world interpretation components, prag and world, read English trees. With no Tumbuka parse, they have no Tumbuka tree to read. Squid reads the manual and queues its formalizable claims. The Tumbuka rules remain unimplemented, with the claims needed for tokenization, tagging and a Universal Dependencies baseline coming first.

Sources for this chapter

This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/tum/23-tumbuka-in-mova/