28. Wolof in Mova
Mova uses wo as the language code for Wolof. Its multilingual pipeline assigns languages to spans and looks up a parser model for each span. The Wolof package has neither a parser model nor a measured treebank baseline. Wolof text is available for illustrating the language, and the grammar manual supplies claims that Squid can queue for implementation.
Language segmentation and model lookup
The multilingual parser has two levels. At level 1, tools/langseg assigns a language to each sentence and span. At level 2, tools/mova-parse uses the language assigned to the span to select its model. The model is looked up in the language’s data directory under models, with the language code as the filename stem and .bin as the extension. A multilingual sentence can therefore require more than one model. The availability of a model is checked for each span’s language.
For Latin-script text, the current segmenter distinguishes English and French using its Latin table, a lexicon for each language, and a character 4-gram model. The segmenter also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Every other script is classified as other. An additional Latin-script language requires a lexicon and a Lang code. The langseg latin-lexicon command can build a lexicon from an open Universal Dependencies (UD) training split.
The wo code identifies the language of the corpus excerpts below. An excerpt’s source label records the language of that material. Automatic language assignment depends on the segmenter’s coverage, and parsing depends separately on having a model for the assigned language. Standard Latin spelling by itself does not give tools/langseg a basis for identifying Wolof spans.
Parser output for Wolof and the state of the package
There is no level-2 model for wo. When a span’s assigned language has no model, tools/mova-parse reports the missing model in the # parse comment. Its token rows carry the following values.
| Column | Value | Interpretation |
|---|---|---|
LEMMA | _ | The lemma is unset. |
UPOS | _ | The universal part of speech is unset. |
XPOS | _ | The language-specific part of speech is unset. |
FEATS | _ | Morphological features are unset. |
HEAD | _ | The syntactic head is unset. |
DEPREL | _ | The dependency relation is unset. |
MISC | Parse=None | The span received no parse. |
The combination of empty annotation columns and Parse=None records the missing parse for the rows in that span. In particular, HEAD is unset even on a word that would be the root of a completed analysis. Likewise, an empty FEATS column here reflects the missing analysis and supplies no evidence about the features a Wolof word may carry. The presence of token rows in the output is compatible with the absence of a Wolof tokenizer.
Consider the two-word phrase below. The corpus supplies the written forms and the sentence context. The gloss identifies the noun and its class-marked definite article. Neither a lemma nor a dependency arc for either word can be recovered from the unannotated output.
| Form | Gloss | Translation | Corpus sentence ID |
|---|---|---|---|
| “àdduna bi” | world B.DEF | ‘the world’ | wiki:wo:Albert Einstein |
B.DEF marks the singular definite article of the b class.
Treebank requirements and the UAS and LAS baseline
A UD treebank provides sentences with reference token boundaries, part-of-speech tags and syntactic dependencies. The training split supplies the annotated examples used to train the tagger and tree parser. The development split supplies the reference analyses for evaluating their predictions. To serve as a parsing reference, a development tree must identify each syntactic word’s head and its relation to that head. These are the two pieces of information used by the attachment scores.
Dione describes the development of a UD treebank for Wolof (Dione 2019, p. 12). That published work establishes a Wolof UD annotation resource. A Mova baseline requires a treebank in the package workflow and an evaluation run on its development split. Mova currently holds no annotated Wolof corpus, so there is no measured UAS or LAS for wo. The Wikipedia excerpts in this chapter supply running text and examples.
The package requirements in What every language gets call for the same baseline procedure for each language. Mova’s parser and tagger are in the en crate. The workflow uses en xpos-fill before en train, trains on the language’s UD training split, and uses en parse-eval to evaluate against the development split. The language code of the evaluated data determines which language the resulting baseline describes.
| Measure | What counts as correct for a scored word |
|---|---|
| Unlabeled attachment score (UAS) | The predicted head agrees with the reference head. |
| Labeled attachment score (LAS) | The predicted head and dependency relation both agree with the reference. |
Both scores express the proportion of scored words that meet the corresponding condition. A correct head with the wrong relation contributes to UAS alone. An incorrect head contributes to neither score even if the relation label matches. On the same set of scored words, LAS can equal UAS or fall below it. These measures describe attachment on the evaluated development split. For Wolof, the absence of an evaluation leaves both scores unmeasured.
Frames, pragmatics and parser dependencies
A dependency tree records how words are syntactically related. For example, attaching a noun phrase to a predicate establishes a syntactic connection that can help a later component identify a participant in the situation described. A frame analysis represents the situation and its participants, and a pragmatic analysis can consider how an utterance functions in context. The syntactic connection is input to these analyses. Its label alone does not establish a participant’s semantic role or the speaker’s intention.
Mova’s frames, pragmatics and world components read English trees. A Wolof span without an annotated tree supplies no input to those components. Both the availability of a dependency tree and the language of the tree matter here. The package’s parser baseline measures syntactic attachment and relation labeling. It has no measure of frame analysis, pragmatic interpretation or world knowledge.
This dependency is visible in a short prepositional phrase from the corpus. Its written form identifies a year and the gloss gives its temporal reading in context. For the parser to represent how the phrase relates to the rest of the sentence, it would need to assign heads and dependency relations. Those columns remain empty under the missing-model condition.
| Form | Gloss | Translation | Corpus sentence ID |
|---|---|---|---|
| “ci 1955” | in 1955 | ‘in 1955’ | wiki:wo:Albert Einstein |
Squid claims and priorities for tokenization and tagging
Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable claims, including rules, closed lists and statistics, enter a queue for a place in Mova’s code. A claim’s presence in the queue records its availability for implementation. The package’s behavior depends on which claims have actually been implemented.
Tokenization, tagging and the treebank baseline need different information from the grammar. A tokenizer needs rules for locating word boundaries in written text. A tagger needs the categories available to a token and the conditions that distinguish those categories in context. A treebank needs consistent decisions about what counts as a syntactic word, which annotations it can receive and how it attaches to other words. The development data must use the same annotation conventions as the training data for the evaluation to compare like analyses.
The examples below show details that those conventions would have to cover. The reduplicated form contains a written hyphen, and the place-name list uses spaced hyphens between entries. Within one entry, ak joins two names. These examples show why a rule about a printed mark or a written form needs to specify its context. A single example supplies evidence for that context, while a closed list or a general rule needs coverage beyond the example.
| Form | Gloss | Translation | Corpus sentence ID |
|---|---|---|---|
| “xam-xam” | know~RED | ‘knowledge’ | wiki:wo:Albert Einstein |
| “Alseeri - Andoor” | Algeria – Andorra | ‘Algeria, Andorra’ as successive list entries | wiki:wo:Limu réewi àdduna bi |
| “Antigua ak Barbuda” | Antigua and Barbuda | ‘Antigua and Barbuda’ | wiki:wo:Limu réewi àdduna bi |
RED marks reduplication. The spaced hyphen in the list excerpt separates entries. For a written form such as ak, the token boundary and the grammatical category are separate decisions. Here the adjacent names give the evidence for the coordinating reading. For bi in “àdduna bi,” the nominal context gives the evidence for the definite article reading. Claims that specify these contexts are relevant to tagging, and a treebank provides the annotated occurrences on which a tagger can train and be evaluated.
How Mova handles Wolof today
At level 1, tools/langseg assigns languages to sentences and spans. Its Latin-script coverage distinguishes English and French with a Latin table, language lexicons and a character 4-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew and Aramaic in scholarly transliteration. Every other script is other. Identification of a language without a parser model is limited to cases where the segmenter knows its script or lexicon. Adding a Latin-script language requires a lexicon and a Lang code, with langseg latin-lexicon available to derive a lexicon from an open UD training split.
At level 2, tools/mova-parse looks up each span’s language model using the template <code>.bin. English and French have en.bin and fr.bin. Wolof has no level-2 model. For a wo span, the # parse comment reports the missing model, and token rows have _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, with Parse=None in MISC. Mova does not tokenize, tag, lemmatize or parse Wolof.
Mova also holds no annotated Wolof treebank. The baseline requested by What every language gets uses en xpos-fill followed by en train on the UD training split, then en parse-eval to measure UAS and LAS on the development split. Neither score has been measured for Wolof. Mova’s frames, pragmatics and world components, including prag and world, read English trees and have no Wolof parse to read.
Squid turns the manual’s grammatical points into claims and queues those that can be formalized. None of the Wolof rules described here is implemented. The first priorities are the points needed for a tokenizer, a tagger and a UD treebank baseline.
Sources for this chapter
- Dione, Cheikh M. Bamba. 2019. Developing Universal Dependencies for Wolof. Proceedings of the Third Workshop on Universal Dependencies (UDW, SyntaxFest 2019). Paris: Association for Computational Linguistics. — CC BY 4.0; not held in the library, to verify
This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/wo/28-mova-tools/