Mova0.6 pre-release

the flag of Mali 33. Fula in Mova

Mova’s Fula package uses the language code ff. The package has no Fula parser model, annotated treebank or measured parsing baseline. The text samples show the kinds of input a baseline would need to handle. This chapter describes the current processing stages and the evidence needed to measure Fula coverage.

Language segmentation and current span coverage

Language segmentation is level 1 of multilingual processing. tools/langseg assigns a language to each sentence and span. Span labels matter when a sentence contains text in more than one language, since level 2 uses the span label to select a parser model. The language of the source document and the language assigned to a span are separate pieces of information.

For Latin-script text, the current segmenter distinguishes English and French using a Latin table, a lexicon for each language and a character four-gram model. Its other supported distinctions cover Hebrew-script varieties and scholarly transliteration of Hebrew or Aramaic. Scripts outside its coverage receive other. There is no Fula-specific distinction in the stated Latin coverage. Adlam falls outside the covered scripts. Fula Ajami uses Arabic script, which also falls outside that coverage.

The Fula Wikipedia samples include passages in Fula and entries consisting of English institutional names or descriptions. Even within a Fula sentence, a place name can have a spelling shared with text in other languages. These cases matter when testing both language assignment and span boundaries. A document label alone supplies no evidence about how the segmenter handles either case.

Form — to diiwaan Rivers
Gloss — in state Rivers
Translation — “in Rivers State”
Corpus — wiki:ff:Felicity Okpete Ovai

The Latin-script extension described for the segmenter requires a lexicon and a Lang code. langseg latin-lexicon derives a lexicon from an open Universal Dependencies (UD) training split. This route addresses Latin-script identification. The model lookup and the evaluation of the resulting parse are separate stages.

Model lookup and Fula parse output

At level 2, tools/mova-parse looks for the model associated with each span’s language code. Under $MOVA_DATA, the model goes in the models subdirectory of the language directory and takes its basename from that same code, with the extension .bin. The lookup requires a language label from level 1. A missing model is reported in the # parse comment.

For a span presented to level 2 as ff, the model is absent. The following table gives the complete set of annotation columns specified for the missing-model case and the accompanying status in MISC.

ColumnOutputAnnotation ordinarily carried by the column
LEMMA_Lexical lemma
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Morphological features
HEAD_Index of the syntactic head
DEPREL_Dependency relation to the head
MISCParse=NoneMissing-parse status for the token

The unannotated output records the absence of a parse. In particular, HEAD and DEPREL furnish no arcs, and FEATS furnishes no morphological analysis. The presence of token rows supplies no evidence that Mova has applied Fula tokenization rules. The missing-model output is conditional on the assigned span language, so it also supplies no evidence of how much Fula the segmenter can identify.

Treebank availability and the unmeasured baseline

Mova holds no annotated Fula treebank. The supplied corpus excerpts are text samples. Their identifiers give the source entries, and some identifiers occur with more than one excerpt. The two samples under wiki:ff:Felicity Okpete Ovai, for example, use different wording. Evaluation data drawn from such material would need to preserve which text was annotated and keep related samples together when creating splits. An article identifier by itself does not distinguish the excerpts.

Form — ko injenieer e jannginoowo
Gloss — PRED engineer and teacher
Translation — “is an engineer and a teacher”
Corpus — wiki:ff:Felicity Okpete Ovai

Here PRED labels the predicative marker in the gloss. The fragment can illustrate the annotation decisions a treebank would have to document, including the treatment of the marker and the head and relation used for the second occupation. The gloss is for reading the example. It supplies neither gold tags nor dependency arcs.

There is no measured Fula baseline for unlabeled attachment score (UAS) or labeled attachment score (LAS). An empty annotation field is a statement about the output of a run with a missing model. An attachment score requires a reference analysis and a prediction for comparison. The corpus excerpts establish that sample text is available, while the absence of a treebank leaves the parsing baseline unmeasured.

Training and evaluation with Universal Dependencies

The common baseline requested by What every language gets uses the parser and tagger in the en crate. The stated workflow runs en xpos-fill before en train, trains on the language’s UD training split, and runs en parse-eval on the development split. This is the workflow specified for a Fula baseline once the required data exist. English and French have models in the current setup.

A Fula training split and development split would need consistent decisions about sentence boundaries, token forms, lemmas, part-of-speech tags, features, heads and dependency relations. Sentence and token boundaries determine which units can receive the remaining annotations. Decisions about contractions and clitics therefore affect the units on which tagging and parsing can be evaluated. For noun-class agreement, guidelines would need to show which overt forms receive feature annotations and how the corresponding dependents attach. For predicates, they would need to cover verbal clauses, nonverbal clauses and coordination using the same conventions across both splits.

UAS counts the proportion of evaluated tokens assigned the reference head. LAS counts the proportion assigned both the reference head and the reference dependency relation. A correct head paired with a wrong relation counts as correct for UAS alone. A wrong head counts as an error for both, even if the predicted relation has the reference label. A reported baseline should identify the training and development splits and the units scored, including the treatment of punctuation and any token alignment needed for the comparison. Attachment scores cover dependency arcs. Segmentation, tokenization, tagging and lemmatization each require evidence specific to that task.

The scope of the annotated data would qualify the result. A development split restricted to Latin-script encyclopedic prose would measure performance on that material. Coverage of another script, regional variety or register would require corresponding reference examples. A run on presegmented input would measure performance with those input boundaries already supplied. An evaluation from raw multilingual text would also have to account for language assignment and tokenization before interpreting its attachment scores.

Tree input for frames and pragmatics

Mova’s frame, pragmatics and world components read English trees. With no Fula tree from level 2, they have no Fula parse to read. A span label identifies the language used for routing. It provides none of the syntactic relations a tree would give to a downstream analysis.

Form — O toɗɗaama professeur
Gloss — 3SG appoint.PFV.PASS professor
Translation — “She was appointed professor”
Corpus — wiki:ff:Arinola Olasumbo Sanya

In the gloss, 3SG marks third-person singular, PFV perfective and PASS passive. The example contains an appointment predicate, the person appointed and the role she acquires. The translation uses she for the referent supplied by the article context. These are distinctions a downstream evaluation could check separately. A tree can supply evidence about the construction, while identifying the referent and representing the appointment in a frame are further analyses. The gloss and interpretation here describe the text for a reader. They are human analyses of the excerpt.

A measured Fula tree parser would establish the availability and quality of one input to those later stages. Frame and pragmatic coverage would still need its own evidence, including whether the relevant Fula constructions and contextual information receive the intended interpretation. UAS and LAS would measure the tree parser’s attachments, leaving those downstream results unmeasured.

Squid claims and priorities for a Fula baseline

Squid reads the grammar manual and records its grammatical points as claims. Formalizable rules, closed lists and statistics enter a queue for implementation. A queued claim records a point from the manual. Runtime coverage depends on implementation.

The first priorities are the decisions a tokenizer, tagger and UD treebank baseline need.

  1. Establish what text enters the baseline. Identify the script, varieties and text types represented in the data. Record where a language boundary falls in mixed material and keep examples with names, quoted material and numerals in the evaluation scope when they occur in the target text.
  2. Define the units to annotate. Document sentence and word boundaries, including the treatment of punctuation and forms whose orthographic and syntactic boundaries can differ. Preserve the original forms so that boundary and spelling decisions can be checked against the input.
  3. Make the tag and feature choices reproducible. Use examples that show the conditions for an analysis, especially for noun-class agreement, pronouns, clitics and inflected verbs. Give an explicit policy for assigning lemmas to inflected forms and forms with stem-initial alternation.
  4. Make the dependency choices reproducible. Show how the guidelines handle core arguments and common constructions such as nonverbal predication and coordination. Apply the same analysis conventions when preparing the training and development trees, then measure attachment on the development split.

These priorities give different claims different tests. A claim about spelling or clitic boundaries can be checked against annotated token boundaries. A claim about an agreement form can be checked against lexical and feature annotations in its context. A claim about which word heads a construction can be checked against dependency arcs. The treebank would provide the shared reference for such checks, and the baseline would quantify how the trained parser reproduces its attachments.

How Mova handles Fula today

tools/mova-parse first uses tools/langseg to assign a language to every sentence and span. The segmenter distinguishes English and French in Latin script using its Latin table, lexicons and character four-gram model. It also distinguishes Hebrew-script varieties and scholarly Hebrew or Aramaic transliteration. Scripts outside its coverage receive other. A further Latin-script language requires a lexicon and a Lang code. langseg latin-lexicon uses an open UD training split to build the lexicon. Fula span identification depends on coverage in the segmenter.

At level 2, tools/mova-parse selects the model file for the span’s language. There is no model for ff. The missing model is reported in the # parse comment, and the Fula tokens have _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, with Parse=None in MISC. Fula-specific tokenization, tagging, lemmatization and parsing are unavailable.

What every language gets requests a common baseline for every language. The en crate uses en train to train a parser and tagger on the UD training split after en xpos-fill. en parse-eval measures UAS and LAS on the development split. The existing models are en.bin and fr.bin. Mova holds no Fula treebank, so the Fula baseline is unmeasured.

Mova’s frames, pragmatics and world components read English trees. Without a Fula parse, prag and world have no Fula tree input. Squid records the manual’s grammatical points as claims and queues formalizable rules, closed lists and statistics for implementation. The queued claims have yet to be implemented. The points needed for a tokenizer, a tagger and a UD treebank baseline come first.

Sources for this chapter

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