Mova0.6 pre-release

the flag of Nigeria 32. Yoruba in Mova

The yo edition documents Yoruba grammar. Mova has no Yoruba parser model or annotated Yoruba corpus, so the edition has no measured parsing baseline. This chapter describes how multilingual input reaches the parser, how CoNLL-U represents the missing analysis, and which parts of the grammar could inform implementation.

The yo edition and the language package

The edition code yo identifies the Yoruba grammar. In the multilingual parser, a language code identifies the model to look up for a span. The grammar and the model serve different purposes. The grammar describes the language in prose, tables and examples. The model supplies the tag and dependency predictions that Mova can write to CoNLL-U. Squid reads the grammar as a source of claims for implementation.

The common language package described in What every language gets calls for a Universal Dependencies (UD) parsing baseline for each language. Mova's own parser is in the en crate. Despite its name, it can train on a language's UD training split, and trained models exist for English and French. Yoruba has a grammar edition, but it has neither a trained model in Mova nor an annotated corpus held by Mova.

Yoruba resource or resultCurrent state
Grammar editionyo
Level-2 parser modelAbsent
Annotated corpus held by MovaAbsent
Measured treebank baselineUnavailable

Language segmentation and model lookup

tools/mova-parse processes multilingual input in two levels. At level 1, tools/langseg assigns a language to every sentence and span. At level 2, the parser uses each span's language code to look up that language's model in the configured data directory. A sentence with several language spans can therefore require several models. The model used for one span follows that span's label.

Language identification and model availability are separate conditions. The first determines which language code the parser can look up. The second determines whether a model exists for that code. Adding a model would fill the second requirement for Yoruba. For automatic selection, the segmenter would also need to be able to identify a span as yo.

The Latin-script recognition described for tools/langseg distinguishes English and French through a Latin table, a lexicon for each language and a character four-gram model. The segmenter also distinguishes varieties in Hebrew script and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside its supported cases are classified as other. Yoruba uses Latin script, so support for the script alone does not identify a span as Yoruba. The route for adding a Latin-script language is to add a Lang code and a lexicon. langseg latin-lexicon builds the lexicon from an open UD training split.

The absence of a level-2 Yoruba model establishes what happens when the parser receives a span labeled yo. It gives no basis for predicting the label assigned to an arbitrary Yoruba sentence by automatic segmentation.

Current Yoruba output in CoNLL-U

When a span's language has no model, tools/mova-parse reports the missing model in the # parse comment. For tokens of a span labeled yo, the output records the unavailable analysis as follows.

CoNLL-U columnValue for a token in a yo spanInformation the column would carry
LEMMA_Lemma
UPOS_Universal part-of-speech tag
XPOS_Language-specific part-of-speech tag
FEATS_Morphological features
HEAD_Index of the token's syntactic head
DEPREL_Dependency relation to the head
MISCParse=NoneExplicit indication that no parse was produced

A token row can carry this status even though Mova supplies no Yoruba tokenization. Its presence does not establish that Yoruba spelling and word boundaries have been analyzed. In the HEAD column, _ leaves the head unspecified. A parsed root would instead have head index 0. In DEPREL, _ leaves the relation unspecified, including whether the token is the root.

Consider a simple transitive clause as an illustration of the distinction between a grammatical analysis and current output.

Form Adé rí ilé. (constructed)
Gloss Adé see house
Translation ‘Adé saw a house.’

In a UD analysis of this clause, rí ‘see’ is the root, Adé is its nominal subject (nsubj), and ilé ‘house’ is its object (obj). That analysis illustrates what the HEAD and DEPREL columns would express. For a span already labeled yo, the current missing-model output assigns none of those heads or relations. The example illustrates a clause pattern, and no particular segmentation output for the sentence is assumed.

Corpus availability and baseline measurements

Mova currently holds no annotated Yoruba corpus. The package's baseline procedure requires a UD training split and a development split. en xpos-fill prepares the training data for en train, which trains the tagger and tree parser. en parse-eval measures the resulting parser on the development split. The development data supplies the annotated heads and dependency relations against which the predictions are judged.

MeasureWhat a correct attachment requiresCurrent Yoruba result
UAS, unlabeled attachment scoreThe predicted head matches the annotated head.Unmeasured
LAS, labeled attachment scoreBoth the predicted head and the predicted dependency relation match the annotation.Unmeasured

The train-to-development baseline measures dependency attachment on annotated data. It does not measure whether tools/langseg identifies Yoruba spans. For example, an evaluation on data already identified as Yoruba would answer how well a Yoruba model predicts the annotated trees, while automatic segmentation determines whether a multilingual input span reaches that model.

The Parse=None status provides no attachment predictions to score. There is therefore no Yoruba UAS or LAS figure to interpret, and no basis in Mova's data for reporting accuracy by clause type, register or variety. The corpus status here describes Mova's holdings. It leaves the availability and suitability of external Yoruba resources open.

Frames, pragmatics and world processing

Mova's frame, pragmatic and world processing reads English trees. These analyses depend on tree output from the parser. A Yoruba span with Parse=None supplies neither predicate–argument dependencies for frame processing nor an analyzed clause for the later components.

The grammar describes constructions at levels beyond dependency syntax, including speech acts, inference and discourse reference. Those descriptions belong to the reference grammar. For example, a grammatical account can describe when an utterance functions as a request, while the current output for a Yoruba span supplies no tree for a pragmatic analysis of that utterance. Parsing Yoruba would provide the first input needed for work at those later levels. The documented consumers in prag and world currently read English trees.

The grammar claim queue and implementation priorities

Squid reads the grammar manual and turns each 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. Queue membership records a candidate for implementation. An implemented rule would have to affect the behavior of a component when it processes text or data.

The earliest grammar claims to apply are those needed for tokenization, tagging and a UD treebank baseline. These tasks depend on one another. Consistent token boundaries determine which units can receive tags and serve as nodes in a tree. Tagging conventions determine which distinctions the annotated data should record on those units. Dependency conventions determine which unit is the head and which relation connects a dependent to that head.

Priority areaDecisions the grammar can inform
TokenizationHow written word boundaries, spelling variants and connected forms map to tokens.
TaggingWhich word classes and closed sets of grammatical forms need consistent labels, and when context distinguishes their uses.
UD annotation and baselineHow recurrent constructions receive heads and relations, and which annotation conventions the training and development data share.

For instance, a description of serial verb constructions can identify the conditions under which a sequence belongs to one construction. A treebank still needs a consistent dependency analysis for the tokens in that construction. A description of a closed set of grammatical markers can give the forms and their distribution. Applying a tag in context also requires knowing how the annotation treats each use. Conditions and exceptions in the grammar matter because the training and development data must represent the same distinctions for an attachment score to be interpretable.

For the multilingual entry point, identifying spans as yo and making a yo model available are separate implementation tasks. For the baseline, the immediate dependency is annotated training and development data. The resulting parser would supply trees for subsequent work on the interpretation of Yoruba clauses and discourse.

How Mova handles Yoruba today

tools/mova-parse uses tools/langseg to assign a language to each sentence and span, then looks up a model for each span's language. The described Latin-script recognition distinguishes English and French. A further Latin-script language can be added with a Lang code and a lexicon built from an open UD training split with langseg latin-lexicon.

There is no level-2 model for yo. For a span labeled yo, tools/mova-parse reports the missing model in the # parse comment, leaves LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL as _, and records Parse=None in MISC. Mova currently performs no Yoruba tokenization, tagging, lemmatization or dependency parsing.

Mova holds no annotated Yoruba corpus, so it has no measured Yoruba treebank baseline. The baseline specified in What every language gets uses en xpos-fill before en train on a UD training split and en parse-eval to measure UAS and LAS on the development split. Frames, pragmatics and world processing read English trees, and there is no Yoruba tree for them to read.

Squid turns the manual's grammatical points into claims and queues the formalizable ones. The Yoruba rules remain unimplemented. The first priorities are the points needed 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/yo/32-yoruba-in-mova/