Mova0.6 pre-release

the flag of Zimbabwe 34. Shona in Mova

Mova has Shona (sn) text samples and a grammar manual. The package has no Shona parser model or annotated treebank, so there is no measured parsing baseline. Language identification, dependency parsing and the use of parsed trees are separate stages. A Shona label on a span gives its language without supplying a grammatical analysis.

Language identification and Shona spans

Level 1 of the multilingual pipeline assigns a language to each sentence and span. The span matters because a sentence can contain material in more than one language. The parser at level 2 uses the span’s language label to select a model. A sentence label alone cannot determine which model to use for every span in that sentence.

Shona uses Latin script, which it shares with English and French. The Latin-script identification described for tools/langseg distinguishes English and French using a Latin table, a lexicon per language and a character 4-gram model. The automatic identification of another Latin-script language depends on the addition of a lexicon and a Lang code. The route described for making a lexicon from an open Universal Dependencies (UD) training split is langseg latin-lexicon. Having Shona examples in a corpus supplies text to inspect. Their source labels do not establish that the segmenter recognizes Shona in new text.

The corpus contains Shona text alongside material in other languages. A dictionary entry can place a Shona term next to its English equivalent. A title can also be cited in its original script and accompanied by a romanization. The excerpts below preserve the forms as written and illustrate the material a segmenter can encounter. They give no observed segmenter output.

FormRomanization where neededGlossTranslationCorpus sentence ID
“Duramahwi”dictionary‘dictionary’wiki:sn:Duramahwi
“Dictionary”dictionary‘dictionary’wiki:sn:Duramahwi
“תְּהִלִּים”Tehillimpraises‘Psalms’wiki:sn:Mapisarema

The first two forms are from the same entry and are both written in Latin script. The Hebrew title offers a script cue that those forms lack. Its Latin-script romanization is another representation of the title, so script alone cannot identify its language.

Parser model availability and unannotated output

Level 2 of tools/mova-parse looks up a model for the language assigned to the span. There is no level-2 model for sn. When a span reaches this stage with the Shona label, the missing model is reported in the # parse comment. The token rows for that span carry the following values.

FieldValue in the Shona rowsAnalysis left open
LEMMA_Dictionary form
UPOS_Universal part of speech
XPOS_Language-specific part-of-speech tag
FEATS_Morphological features
HEAD_Syntactic head
DEPREL_Dependency relation to the head
MISCParse=NoneThe parse status is recorded here

Read the fields together. An underscore in FEATS on such a row leaves the morphology unknown. An underscore in HEAD leaves even the choice of root open. The presence of a token row records material in the output, while Parse=None records the absence of a model analysis. In particular, these rows provide no evidence that Mova has applied Shona-specific tokenization rules.

For example, the following phrase contains a locative form whose structure can be described in the manual. The segmentation shown in the gloss is a linguistic analysis of the written form.

FormGlossTranslationCorpus sentence ID
“muZimbabwe”LOC-Zimbabwe‘in Zimbabwe’wiki:sn:Chigwende

If that form is in a span labeled sn, the missing-model output supplies neither its morphological analysis nor its syntactic attachment. A reader can recover the locative meaning from the example and its context. A program reading the dependency fields has no such analysis to use.

Treebank availability and baseline measurements

Mova holds no annotated Shona treebank and has measured no Shona treebank baseline. The Shona corpus excerpts provide forms and contexts. A UD treebank must also give the reference annotation against which parser output can be scored, including each scored word’s head and dependency relation. The language label and the source sentence ID do not supply those annotations.

The package specification, What every language gets, asks for a common baseline across languages. The en crate uses en xpos-fill before en train, which trains the tagger and tree parser on the language’s UD training split. en parse-eval measures attachment on the development split after training. The two scores answer different questions about each scored word.

MeasureA prediction counts as correct when
UAS, unlabeled attachment scoreThe predicted head matches the reference head.
LAS, labeled attachment scoreBoth the predicted head and the predicted dependency relation match the reference annotation.

The development annotations are needed to tell a wrong head from a right head with a wrong relation. Neither score can be inferred from how many Shona spans are labeled or from how many are returned with Parse=None. There are no Shona values to report for either measure.

The corpus examples are relevant to what a future baseline would need to cover. A sentence with a cited name can test decisions about the name and its attachment. A sentence with a parenthetical gloss can test decisions about the boundaries and syntactic function of the gloss. A form such as muZimbabwe raises a question for the annotation of locatives in running text. Each case needs a reference analysis before it can contribute evidence about parser accuracy.

Dependencies of frames and pragmatics

Mova’s frame, pragmatic and world components read English trees. A language label locates a span, while a dependency tree supplies the predicate and its syntactic dependents. The Shona text and Parse=None rows supply no tree for those components. The absence of a Shona parse is the first missing input in that chain.

A simple clause shows the kind of information at issue. The gloss divides the verb into its subject concord, present marker, stem and final vowel. The two instances of 2 mark noun class 2. SBJ marks subject agreement, PRS present tense and FV the final vowel.

FormGlossTranslationProvenance
Vanhu vanorima.2-people 2.SBJ-PRS-cultivate-FV‘People cultivate the land.’(constructed)

A reader can identify the people as the participants doing the cultivating. For a tree-based component, the clause first needs an analysis that links the subject to the verb. The English translation makes the meaning accessible to a reader of this chapter. It supplies no tree for the Shona words. A Shona parsing baseline would test syntactic attachment and dependency labels. Those measures give no direct evidence about the accuracy of frame or pragmatic interpretation.

Grammar claims and the Squid queue

Squid reads the grammar manual and turns every grammatical point into a claim. Formalizable claims, including rules, closed lists and statistics, wait in Squid’s queue for a place in Mova’s code. A queued claim remains pending implementation. Its presence in the manual or queue therefore gives no evidence about the tags or relations in current parser output.

The first claims relevant to implementation are those needed for tokenization, tagging and the UD baseline. A tokenization claim must specify when a boundary is assigned. A tagging claim must specify which forms or contexts warrant a category or feature. A dependency claim must specify the construction and the relation to be annotated. Conditions and exceptions matter because each of these decisions can recur in many sentences. A glossary entry or a translation can help a reader understand a form while leaving those decisions open.

In the constructed clause above, the gloss records agreement within the verb. The dependency analysis would record the relation between the written subject and the verb. The gloss’s internal divisions and the tree’s word-to-word relation are different pieces of information, and each needs its own annotation decision. Likewise, a closed list in the manual can define possible values, but an occurrence in text still needs evidence for the value assigned to it. Recording the claim, implementing the decision and measuring the resulting analysis are separate steps.

How Mova handles Shona today

At level 1, tools/langseg assigns a language to each sentence and span. Its Latin-script identification distinguishes English and French. Identification of Shona spans is limited by the script and lexicon coverage of that stage. A further Latin-script language enters through a lexicon and a Lang code, with langseg latin-lexicon providing the route from an open UD training split.

At level 2, tools/mova-parse uses the model for the assigned language. There is no model for sn. For spans labeled sn, the # parse comment reports the missing model. Their token rows have _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, and Parse=None in MISC. Mova has no Shona-specific tokenization, tagging, lemmatization or dependency parsing at this stage.

Mova holds no annotated Shona treebank, so it has measured no Shona baseline. The baseline specified in What every language gets uses en xpos-fill followed by en train on a UD training split, then en parse-eval for UAS and LAS on the development split. Models exist for English and French. The frame, pragmatic and world components read English trees and have no parsed Shona input.

Squid records the manual’s grammatical points as claims and queues the formalizable claims for implementation. The Shona grammar rules described in the manual are pending implementation. The first points to address are those required 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/sn/34-mova/