Mova0.6 pre-release

the flag of the Central African Republic 25. Sango in Mova

Mova assigns languages to spans of text, then uses those assignments to select parser models. Sango has the language code sg, but Mova has neither a Sango parser model nor an annotated Sango treebank. This chapter explains how to read the output for a span assigned to Sango, what a parsing baseline would measure, and which annotation decisions have to come first.

Language segmentation and model selection

The multilingual parser tools/mova-parse works at two levels. At level 1, tools/langseg assigns a language to every sentence and span. At level 2, the parser uses each span's assigned language to select that span's model. The lookup is per span, so assigning a language to a sentence does not imply that every span in it uses the same model. The language assignment also gives no assurance that a matching model exists.

For Latin-script text, the supplied segmentation support distinguishes English and French. It uses a Latin table, a lexicon for each language and a character 4-gram model. The segmenter also distinguishes varieties written in Hebrew script and Hebrew or Aramaic in scholarly transliteration. Scripts outside its supported coverage are classified as other. To add a Latin-script language through the documented route, the segmenter needs a lexicon and a Lang code. The langseg latin-lexicon command builds the lexicon from open Universal Dependencies (UD) training splits.

The use of sg in a corpus identifier identifies the language of that corpus material. Successful segmentation of new input depends on what the segmenter knows about the script or lexicon. Sango's use of the Latin alphabet alone does not establish that the segmenter can identify a span as Sango. When a span does carry the sg assignment, the next question is whether a Sango model is available. The model lookup currently has no Sango file to use.

A corpus extract illustrates why the language of a span and the identity of an individual word are separate annotation decisions.

FormGlossTranslationCorpus ID
Gbätä tî Tarantocity of Taranto‘city of Taranto’wiki:sg:Taranto

The place name occurs within a Sango phrase. Its spelling can be shared across languages, so the name alone does not settle the language of the surrounding words. The extract illustrates the input a segmenter can encounter. The corpus ID provides the language of the example independently of any segmentation result.

Unannotated output for Sango spans and Parse=None

When the assigned language has no model file, tools/mova-parse reports that condition in the # parse comment. In the token rows it writes Parse=None in the MISC column and _ in each of the six annotation columns below. The condition applies to spans assigned to Sango because no level-2 model exists for sg.

ColumnContents for a span assigned to sgAnnotation normally recorded
LEMMA_Lemma
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 parsing in this case

Read these fields together. For example, an underscore in FEATS in this output supplies no information about whether the word has a grammatical feature. An underscore in HEAD supplies no head assignment. The missing-model report accounts for both. In comparing two rows, identical underscores show that both rows lack the annotations in question. They supply no evidence that the two forms share a lemma, word class or syntactic function.

The presence of forms in output rows also provides no evidence of a Sango tokenizer. The forms can be displayed while the language-specific tokenization, lemmatization, tagging and dependency analysis remain unavailable. For a multilingual text, interpret the missing-model report at span level. The condition for another span depends on the model for its own assigned language.

Treebank requirements and the UAS and LAS baseline

A Sango parsing baseline requires an annotated UD treebank with training and development splits. The training split supplies examples for the tree parser and tagger. The development split supplies reference analyses for evaluation. Each evaluated syntactic word needs a reference head and dependency relation so that the predicted analysis can be compared with the treebank's analysis. The treebank also has to settle how written forms map to the syntactic words that receive those annotations.

Mova's own parser is in the en crate. The procedure runs en xpos-fill before en train, which trains the tree parser and tagger on the language's UD training split. en parse-eval measures the resulting parser on the development split. The language package asks for this train-to-development baseline for every language. English and French have model files, en.bin and fr.bin. Mova has no annotated Sango treebank, so it has no measured Sango baseline.

MeasureFull nameCondition for a correct attachment
UASUnlabeled attachment scoreThe predicted head matches the reference head.
LASLabeled attachment scoreBoth the predicted head and the predicted dependency relation match the reference analysis.

If the parser selects the reference head but gives the attachment a different relation, the attachment counts as correct for UAS alone. If it selects a different head, the attachment counts as incorrect for both measures, even if the relation label happens to match. Both scores require predictions and reference trees. An output marked Parse=None supplies no predicted attachments to score, and the absence of a baseline supplies no estimate of Sango parsing accuracy.

The corpus extracts in this chapter provide written forms in context. Their identifiers allow the forms to be traced to their source material. For evaluation, the necessary additional evidence is the annotated reference analysis for the development sentences.

Squid's claim queue and the first annotation priorities

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. A claim's presence in the queue records work that remains to be implemented.

For Sango, the first priorities are the decisions that a tokenizer, a tagger and a UD treebank baseline need. They apply at different stages, and a decision at one stage constrains the following stages.

StageFirst annotation decisions
TokenizationSpecify how the written text is divided into tokens and how those tokens correspond to syntactic words. Cover punctuation, hyphenated forms and letters with diacritics where these occur in the data.
Tagging and lemmatizationSpecify how the annotation assigns lemmas, word classes and applicable features. Include conditions for distinguishing uses of the same form when its analysis depends on context.
Dependency annotationSpecify the head and relation for each syntactic word, including recurring constructions whose analysis could otherwise vary across sentences. Apply those decisions consistently across the training and development splits.

Two corpus extracts show the level at which these decisions arise.

FormGlossTranslationCorpus ID
Afrîka-MbongoAfrica-south‘South Africa’wiki:sg:Afrîka
yângâ tî ködörölanguage of country‘language of the country’wiki:sg:Sängö

For Afrîka-Mbongo, the annotation needs a convention for the hyphenated name and its relation to the syntactic words in the tree. For yângâ tî ködörö, it needs a consistent treatment of tî in nominal modification and a consistent attachment for the modifier. The glosses identify the readings illustrated by the extracts. A treebank analysis would record the token boundaries, categories and dependencies explicitly. Consistency matters in both splits because the parser learns from one and is scored against the other.

Dependencies of frames and pragmatics on parsed input

Mova's frames, pragmatics and world components, including prag and world, read English trees. A span identified as Sango supplies a language assignment. A Sango span with Parse=None supplies no tree from which these components can read a predicate, its dependents or the relations between them.

The distinction also applies when a human reader can readily make sense of the text.

FormGlossTranslation
Mbï tene Sängö.1SG speak Sango‘I speak Sango.’ (constructed)

The gloss gives the reader a first-person speaker and identifies the language spoken. To use the clause as structured input, a component that reads trees would need a parsed analysis with the relevant words and relations. The example's translation gives its intended interpretation for the reader. In the parser output, Parse=None marks the absence of the syntactic input required for downstream processing.

A parsed input is therefore a prerequisite for work on Sango in these components. The current tree-reading support is for English. A Sango parsing baseline would measure syntactic attachment on the development split. Frame interpretation, pragmatic interpretation and world processing are outside the scope of UAS and LAS.

How Mova handles Sango today

tools/mova-parse uses tools/langseg at level 1 to assign languages to sentences and spans. Identification depends on the segmenter's script and lexicon coverage. For Latin script, the supplied coverage distinguishes English and French. A further Latin-script language can be added with a Lang code and a lexicon derived from open UD training splits using langseg latin-lexicon.

At level 2, tools/mova-parse looks for the model that matches the assigned span language. There is no model for sg. For a span assigned to Sango, the # parse comment reports the missing model. The output has _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, and Parse=None in MISC. Mova has no Sango-specific tokenization, tagging, lemmatization or parsing.

Mova holds no annotated Sango treebank and has measured neither UAS nor LAS for Sango. The baseline requested by the language package uses the en crate, with en xpos-fill before en train on the training split and en parse-eval on the development split. The available models are English en.bin and French fr.bin.

Squid reads the manual's grammatical points as claims and queues the formalizable ones. The Sango rules described here are unimplemented. The first priorities are the rules and conventions needed for tokenization, tagging and a UD treebank baseline. Mova's frames, pragmatics and world components read English trees. They currently have no parsed Sango input.

Sources for this chapter

This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/sg/25-mova-tools/