31. Afrikaans in Mova
Mova uses af as the language code for Afrikaans. Mova holds no annotated Afrikaans corpus and has no Afrikaans parser model or measured Afrikaans treebank baseline. This chapter describes the data required for that baseline, the output for a span assigned a language whose model is missing, and the status of Afrikaans grammar claims in Squid.
The af package and available data
Mova’s language package specification, What every language gets, calls for a common Universal Dependencies (UD) baseline for each language. The training split supplies annotated examples for fitting the parser and tagger. The development split supplies the reference for evaluating the trained model. The multilingual parser uses a language-specific model for spans assigned that language code.
| Resource | Role in the package | Afrikaans status in Mova |
|---|---|---|
| Language code | Identifies the language in the package and in model lookup | af |
| Annotated UD training split | Supplies examples of token boundaries, tags, and dependency trees for training | No annotated Afrikaans corpus held by Mova |
| Annotated UD development split | Supplies reference annotation for evaluation after training | No annotated Afrikaans corpus held by Mova |
| Language-specific parser model | Supplies level-2 annotation for spans assigned to the language | No af model |
| UD train-to-development baseline | Records measured unlabeled and labeled attachment scores | No measurement |
The following constructed clause illustrates the kind of token and dependency annotation a treebank supplies.
| Form | Gloss | Translation |
|---|---|---|
| Die kind lees die boek. (constructed) | DEF child read DEF book | “The child reads the book.” |
In the illustrative annotation below, ID numbers the tokens, UPOS gives the universal part-of-speech tag, HEAD gives the head’s token number, and DEPREL gives the dependency relation. A head of 0 marks the root. The annotation is supplied by the manual for illustration.
| ID | FORM | UPOS | HEAD | DEPREL |
|---|---|---|---|---|
| 1 | Die | DET | 2 | det |
| 2 | kind | NOUN | 3 | nsubj |
| 3 | lees | VERB | 0 | root |
| 4 | die | DET | 5 | det |
| 5 | boek | NOUN | 3 | obj |
| 6 | . | PUNCT | 3 | punct |
Language segmentation and the missing-model output
tools/mova-parse has two levels. At level 1, tools/langseg assigns a language to sentences and spans. At level 2, the multilingual parser looks up the model for the language assigned to each span. The lookup uses the same language code for the model’s directory and filename. In a mixed-language sentence, each span’s own language assignment controls its model lookup.
For Latin script, the documented segmenter distinguishes English and French using a Latin table, a lexicon per language, and a character 4-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside its recognized script coverage receive other. An additional Latin-script language requires a lexicon and a Lang code. langseg latin-lexicon builds the lexicon from an open UD training split.
The missing-model case requires a language assignment and an absent model for that code. An Afrikaans sentence written in Latin script meets the condition for the af case only if level 1 assigns its span af. For a span assigned af, the # parse comment reports the missing model, and the token rows have the following values.
| Field | Value | Annotation normally recorded in the field |
|---|---|---|
LEMMA | _ | Lemma |
UPOS | _ | Universal part-of-speech tag |
XPOS | _ | Language-specific part-of-speech tag |
FEATS | _ | Morphological features |
HEAD | _ | Index of the syntactic head, with zero for the root |
DEPREL | _ | Dependency relation to the head |
MISC | Contains Parse=None | Miscellaneous annotation, including this parse status |
In these rows, _ marks unavailable annotation. In FEATS, it leaves the token’s morphological features unspecified. In HEAD and DEPREL, it leaves the basic dependency analysis unspecified, including whether the token is the root. The language assignment records the segmenter’s result. Token rows show the units present in the output, and Parse=None records the missing parse.
The UD training and evaluation baseline
Mova’s tree parser and tagger are in the en crate. The package baseline uses en xpos-fill to prepare the training data, followed by en train on the language’s UD training split. en parse-eval evaluates the resulting model against the development split. The language of the annotated data determines the language of the baseline. Models exist for English (en.bin) and French (fr.bin).
The two attachment scores report the proportion of evaluated tokens whose predicted attachments meet the corresponding criterion. Each token’s prediction is compared with its development reference annotation.
| Measure | What counts as a correct attachment |
|---|---|
| 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. |
In Die kind lees die boek., the illustrative reference attaches boek to lees with obj. A prediction with head lees and relation obj counts as correct for both scores. A prediction with head lees and relation nsubj counts as correct for UAS only. A prediction with head kind and relation obj counts as incorrect for both scores.
The scores concern attachment accuracy against the development reference. Language identification belongs to segmentation, and lemmas and tags are separate annotations. Afrikaans has no measured UAS or LAS in Mova. Parse=None records the absence of a model for the assigned language. An incorrect attachment requires a predicted head or relation and a reference against which to compare it.
Frames, pragmatics and their dependency on parsed trees
Mova’s frames, pragmatics, and world components (prag, world) read English trees. Language segmentation supplies the span’s language assignment, and a dependency tree supplies its grammatical relations. For Afrikaans, using those relations in these components would require both an Afrikaans tree and support for reading it. Afrikaans rows with Parse=None supply no tree.
| Form | Gloss | Translation |
|---|---|---|
| Kan jy die deur oopmaak? (constructed) | can 2SG DEF door open | “Can you open the door?” |
A dependency analysis can identify jy as the subject and deur as the object of oopmaak. In a conversation about whether someone can operate the latch, the speaker may be asking about ability. In a room that needs fresh air, the speaker may be asking the listener to open the door. The same grammatical relations are available in both situations. The setting and the speaker’s purpose help determine how the question functions.
The Squid claim queue and implementation status
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 implementation in Mova. A queued claim records a point awaiting implementation.
A rule about word boundaries can inform tokenization. A closed inventory can specify the distinctions a tagger needs to represent. A syntactic rule can specify the relations that should appear in a reference tree. A claim about a rule includes the conditions under which it applies and any stated exceptions. A claim about a closed inventory includes its members and the construction or category it covers. A statistical claim carries the population or data sample to which the reported statistic refers.
| Stage | What it establishes |
|---|---|
| A point is stated in the manual | The description gives a grammatical claim. |
| A formalizable claim enters Squid’s queue | The claim awaits a place in Mova’s code. |
| A claim is implemented | The relevant code applies it within its implemented scope. |
| A UD baseline is measured | A model trained on the training split has attachment scores against the development split. |
The manual provides grammatical descriptions of Afrikaans, and Squid provides the route by which formalizable claims enter the queue. The Afrikaans grammar rules remain unimplemented. The first points relevant to implementation are those needed for a tokenizer, a tagger, and a UD treebank baseline. Queue status concerns individual claims. A measured baseline summarizes the parser’s attachments on the development split. Checking whether the parser handles a particular construction requires examining relevant examples.
How Mova handles Afrikaans today
tools/mova-parse uses tools/langseg to label sentences and spans at level 1. At level 2 it looks up a model for each span using the assigned language code. The documented Latin-script segmentation coverage distinguishes English and French.
There is no level-2 model for af. If a span is labeled af, the # parse comment reports the missing model. Its token rows have _ in LEMMA, UPOS, XPOS, FEATS, HEAD, and DEPREL, and MISC contains Parse=None. These spans receive no Afrikaans-specific tokenization, tagging, lemmatization, or dependency analysis.
Mova has English and French models, en.bin and fr.bin. It holds no annotated Afrikaans corpus and has no measured Afrikaans treebank baseline.
Mova’s frames, pragmatics, and world components (prag, world) read English trees. An af span with Parse=None supplies no dependency tree. Squid reads the manual and queues formalizable claims for implementation. The Afrikaans grammar rules remain unimplemented.
Sources for this chapter
- What every language gets specifies the language-package baseline.
- Sources lists the manual’s grammar sources. The Afrikaans sentences in this chapter are constructed examples.
This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/af/31-mova-tools/