29. Kinyarwanda in Mova
The Kinyarwanda package uses the code rw. Mova has Kinyarwanda text samples, but it has neither an annotated Kinyarwanda treebank nor a parser model for the language. This chapter describes what happens to Kinyarwanda input, what a parsing baseline would measure, and which distinctions in the grammar matter first for annotation.
The rw package and its current data
The Kinyarwanda edition of this manual and the Kinyarwanda text samples both use rw. The samples come from Kinyarwanda Wikipedia and include article prose, titles, captions and lists. Some contain names or phrases from other languages. The corpus IDs identify the source of the examples below. The samples supply written forms that can be examined for spelling, word boundaries and agreement. They supply no reference tags or dependency trees against which to score a parser.
The corpus includes both straight and curly apostrophes. The following phrases show two spellings of the same expression. Kinyarwanda uses Latin script, so the examples require no romanization. CL followed by a number marks a noun class, CONN marks a connective, and AUG marks a noun augment.
| Form | Gloss | Translation | Corpus ID |
|---|---|---|---|
| “y'u Rwanda” | CL9.CONN AUG.CL11 Rwanda | “of Rwanda” | wiki:rw:Rwanda |
| “y’u Rwanda” | CL9.CONN AUG.CL11 Rwanda | “of Rwanda” | wiki:rw:Rwanda |
The same texts can provide examples for the manual and material for examining orthographic variation. A treebank would add explicit sentence and word boundaries, morphological analyses and a dependency structure for each annotated sentence.
Latin-script language identification and rw coverage
Mova assigns a language at its first processing level to each sentence and span. The Latin-script identification resources distinguish English and French using a Latin table, a lexicon for each language and a character four-gram model. Other coverage includes Hebrew-script varieties and scholarly transliteration of Hebrew or Aramaic. Scripts outside the supported set receive other.
Kinyarwanda uses Latin script, and the described Latin-script coverage contains no rw entry. A known script gives the identifier a way to handle the characters. Assigning the language itself requires support for the language code and a lexicon. The documented route for extending coverage to a Latin-script language uses an open Universal Dependencies training split to build the lexicon and adds a Lang code.
An article's language and the language of a span within it can differ. The Rwanda corpus excerpt contains short country labels in several languages. Their presence shows why a document-level label alone cannot specify the language of every span. These examples illustrate the input and carry no prediction from the identifier.
| Form | Gloss | Translation | Corpus ID |
|---|---|---|---|
| “Republic of Rwanda” | republic of Rwanda | “Republic of Rwanda” | wiki:rw:Rwanda |
| “République du Rwanda” | republic of.DEF Rwanda | “Republic of Rwanda” | wiki:rw:Rwanda |
| “Jamhuri ya Rwanda” | republic CONN Rwanda | “Republic of Rwanda” | wiki:rw:Rwanda |
Multilingual parser output without an rw model
The language assigned at level 1 selects the model used at level 2. Each span is eligible for parsing with the model for its assigned language. For a span carrying rw, there is no corresponding level-2 model. The output reports the missing model in the # parse comment and records the absence of analysis on the token rows.
| CoNLL-U field | Value for the span without a model | Information unavailable |
|---|---|---|
LEMMA | _ | Lemma |
UPOS | _ | Universal part-of-speech tag |
XPOS | _ | Language-specific part-of-speech tag |
FEATS | _ | Morphological features |
HEAD | _ | Syntactic head, including root assignment |
DEPREL | _ | Dependency relation to the head |
MISC | Parse=None | Records the absence of a parse |
These values describe the output for a span with a missing model. They cannot be used to infer that a surface form lacks a lemma, inflection or syntactic function. The token rows carrying these values provide no Kinyarwanda-specific analysis of word boundaries. The earlier language assignment also matters when reading the output. A Latin-script passage can enter this branch as Kinyarwanda only if it receives the corresponding language label.
Treebank requirements and the UAS and LAS baseline
The package calls for the same training-to-development baseline across languages. For Kinyarwanda, that baseline requires a Universal Dependencies training split and a development split with reference analyses. Both splits need compatible conventions for syntactic words, lemmas, tags, features, heads and relation labels. In particular, the two splits must make the same distinctions at boundaries such as apostrophes. A disagreement over where a syntactic word begins changes the units to which tags and dependencies attach.
Mova's training sequence fills XPOS before training the tagger and tree parser on the training split. The evaluation then compares the predicted dependencies with the reference dependencies on the development split.
| Measure | Condition for a scored word to count as correct |
|---|---|
| Unlabeled attachment score (UAS) | The predicted head matches the reference head. |
| Labeled attachment score (LAS) | The predicted head and dependency relation both match the reference. |
Each score is the proportion of words in its scoring set that meet the stated condition. A correct head with an incorrect relation contributes to UAS alone. A wrong head satisfies neither condition, even if the relation label matches. The two scores measure attachment accuracy. Lemmatization, tagging and language identification each require their own evidence.
Mova has no annotated Kinyarwanda treebank, so there is no measured Kinyarwanda UAS or LAS baseline. The text samples give examples of constructions to annotate, but they supply no reference heads or labels for calculating either score.
Dependencies of frames, pragmatics and world interpretation
Mova's frame, pragmatic and world interpretation components read English trees. A language label identifies a span for model selection. A dependency tree would give interpretation components structured input from that span, including the attachment of dependents to predicates and the relations between them. Kinyarwanda currently supplies no such tree through the parser. The availability of a Kinyarwanda tree would address that missing input. The interpretation components' stated coverage is English trees.
A Kinyarwanda verb can carry subject agreement even when its subject is expressed separately. The following excerpt contains an overt subject and a verb with matching class agreement. The gloss uses SBJ for subject agreement, PASS for passive and FV for a final vowel.
| Form | Gloss | Translation | Corpus ID |
|---|---|---|---|
| “Umurwa mukuru” | CL3.city CL3.main | “capital city” | wiki:rw:Nijeriya |
| “witwa Abuja” | CL3.SBJ-call-PASS-FV Abuja | “is called Abuja” | wiki:rw:Nijeriya |
The class 3 agreement on the verb is a morphological cue. An annotated tree would record the overt subject's syntactic relation to the predicate. A frame for the naming construction would then have structured evidence for identifying the entity being named. The corpus supplies the forms in this example. It does not supply those annotations or a frame.
Grammar claims in Squid and priorities for tokenization and tagging
Squid reads each grammatical point in the manual as a claim. Formalizable claims, including rules, closed lists and statistics, enter its queue for possible implementation in Mova's code. The queue records claims awaiting that step. For Kinyarwanda, the first priorities are the distinctions needed for tokenization, tagging and a treebank baseline.
Tokenization has to distinguish the written form from the syntactic units chosen for annotation. The two apostrophe characters illustrated above can express the same boundary in the same phrase. An annotation convention must specify what is preserved in the surface form and where to assign the syntactic word boundary. It must also handle other uses of the apostrophe in context. A character rule alone cannot decide the grammatical relation of the linked forms. For example, the first phrase below contains a connective, while the second contains a conjunction.
| Form | Gloss | Translation | Corpus ID |
|---|---|---|---|
| “ry’Ikoranabuhanga” | CL5.CONN CL5.technology | “of technology” | wiki:rw:Portail:Technologies |
| “n’icyongereza” | and CL7.English | “and English” | wiki:rw:Nijeriya |
Written units can also contain several morphemes whose analysis belongs in tagging and morphology. In the forms below, POSS.3SG marks a third-person singular possessor. The possessive changes shape with the noun class of the possessed expression. A morphological analysis must distinguish that concord from the person and number of the possessor.
| Form | Gloss | Translation | Corpus ID |
|---|---|---|---|
| “Ubuzima bwe” | CL14.life CL14.POSS.3SG | “his life” | wiki:rw:Bibiliya |
| “urupfu rwe” | CL11.death CL11.POSS.3SG | “his death” | wiki:rw:Bibiliya |
| “kuzuka kwe” | CL15.rise CL15.POSS.3SG | “his resurrection” | wiki:rw:Bibiliya |
Consistent annotation would carry these decisions from the surface form through the lemma, part-of-speech tags and morphological features to the dependency tree. For a form such as the passive verb illustrated above, segmentation in a grammatical gloss exposes the agreement and voice markers. A treebank convention specifies how to encode those properties on the syntactic word. The training and development splits need that same convention for evaluation to test the model's predictions.
How Mova handles Kinyarwanda today
At level 1, tools/langseg assigns a language to each sentence and span. Its Latin-script resources distinguish English and French. The route for adding another Latin-script language uses a lexicon built from an open UD training split with langseg latin-lexicon and adds a Lang code. The current Latin-script resources give no dedicated coverage for rw.
At level 2, tools/mova-parse selects a model for the language assigned to each span. There is no rw model. For a span assigned rw, the # parse comment reports the missing model. The token rows carry _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL and Parse=None in MISC. Kinyarwanda has no language-specific tokenization, tagging, lemmatization or parsing in this pipeline.
What every language gets calls for a UD baseline. en xpos-fill precedes en train, which trains a tagger and a tree parser on the training split, and en parse-eval measures UAS and LAS on the development split. Models exist for English (en.bin) and French (fr.bin). Mova holds no annotated Kinyarwanda treebank, so it has no measured baseline for rw.
Mova's frame, pragmatic and world interpretation components read English trees. With no Kinyarwanda parse, there is no Kinyarwanda tree for them to read. Squid records the manual's grammatical points as claims and queues formalizable claims for implementation. None of the chapter's Kinyarwanda rules is implemented. The first claims relevant to implementation are those needed for tokenization, tagging and a UD treebank baseline.
Sources for this chapter
- No source was planned for this chapter; its points are to be checked against public-domain and open grammars (see Sources).
This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/rw/29-mova-tools-and-data/