Elamur: **Mova** · [Parse](https://mova.elamur.ai/free/en/parse/) · [Research](https://md.research.elamur.ai/free/en/) · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Shryfti](https://md.shryfti.elamur.ai/free/en/)

[Mova](https://md.mova.elamur.ai/free/en/) · [this page in HTML](https://mova.elamur.ai/free/en/docs/languages/bm/27-mova-tools-and-data/)

[Mova](https://md.mova.elamur.ai/free/en/) / [docs](https://md.mova.elamur.ai/free/en/docs/) / [languages](https://md.mova.elamur.ai/free/en/docs/languages/) / [bm](https://md.mova.elamur.ai/free/en/docs/languages/bm/) / 27. Bambara in Mova

# 27. Bambara in Mova

Bambara has a language package under the code `bm`. Mova has Bambara text samples, but the package has neither a trained dependency parser nor an annotated treebank. This chapter explains the resulting output and the evidence needed to establish a parsing baseline.

## The Bambara package and the boundary of language identification

Mova separates language identification from grammatical analysis. At level 1, `tools/langseg` assigns language labels to sentences and spans. Spanish, French or Bambara words could in principle occur in the same Latin-script text. Recognizing the script gives the system a way to narrow its choices, while assigning a language label requires evidence that distinguishes the languages written in that script. A span label gives the next stage a language code to use when looking for a parser model.

The current Latin-script identification distinguishes English and French. It uses a Latin table, one lexicon per language and a character 4-gram model. The same identifier distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside its coverage are assigned `other`. To add a Latin-script language, the identifier needs a lexicon and a `Lang` code. The `langseg latin-lexicon` command builds lexicons from open Universal Dependencies (UD) training splits.

The package code `bm` identifies Bambara in Mova's language data. The current Latin-script identification provides no Bambara distinction of its own. For instance, the form *Mali* occurs in the Bambara material under `wiki:bm:Mali` with the gloss and translation ‘Mali’. The corpus identifier supplies the language context for this occurrence. The name's spelling alone does not distinguish Bambara from other languages that use the same name.

## Parser model availability and unannotated output

At level 2, `tools/mova-parse` looks for the model corresponding to each span's language. Mova has its own English and French models, `en.bin` and `fr.bin`. There is no level-2 model for `bm`. Even when the language is known, the model lookup for Bambara cannot supply a grammatical analysis.

The missing model is reported in the `# parse` comment. On the token rows for a span without a model, the output uses the following values.

| Field | Value | Analysis unavailable |
| --- | --- | --- |
| `LEMMA` | `_` | Dictionary form |
| `UPOS` | `_` | Universal part of speech |
| `XPOS` | `_` | Language-specific part of speech |
| `FEATS` | `_` | Grammatical features |
| `HEAD` | `_` | Syntactic head |
| `DEPREL` | `_` | Dependency relation |
| `MISC` | `Parse=None` | Status of the parse |

The underscores mark missing analyses in this output. In particular, an underscore in `HEAD` leaves the syntactic head unassigned. A UD root would have head `0` and the relation `root`. Likewise, an underscore in `FEATS` on an unparsed row tells the reader nothing about whether the corresponding Bambara word carries grammatical features. The presence of token rows in this fallback format gives no evidence that a Bambara tokenizer has resolved word boundaries.

## Treebank requirements and the UAS and LAS baseline

A UD treebank records decisions about sentence boundaries, syntactic words, lemmas, parts of speech, features, heads and dependency relations. It gives the trainer annotated examples and the evaluator a reference analysis for each scored word. The Bambara text samples in Mova provide material to inspect, but Mova holds no Bambara treebank from which to draw a training split or a development split.

The package specification in [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) calls for the same baseline procedure for each language. Within Mova's `en` crate, `en xpos-fill` precedes training. `en train` trains a tree parser and tagger on the language's UD training split. `en parse-eval` measures the resulting parser on the development split. The held-out split tests how the parser handles words in sentences it did not train on.

| Measure | A scored word counts as correct when |
| --- | --- |
| Unlabeled attachment score (UAS) | Its predicted syntactic head matches the reference head. |
| Labeled attachment score (LAS) | Both its predicted head and its predicted dependency relation match the reference analysis. |

Both scores are proportions over the words included by the evaluation. To interpret a result, the reader needs to know which data were used for training and development and which words the scorer counted. Where segmentation is itself being evaluated, the treatment of word alignment also matters. A correct head with an incorrect relation contributes to UAS but fails the condition for LAS. Neither score directly measures the accuracy of language identification, lemmas, parts of speech or features.

Bambara has no measured baseline in Mova. The unannotated fallback with `Parse=None` is a model-availability outcome and yields no UAS or LAS measurement. External research on part-of-speech annotation provides evidence for tagging work. A UD attachment evaluation also needs reference heads and relations for the words being scored (Adelani et al. 2023, §1).

## Dependency trees as input to frames and pragmatics

A dependency tree connects words through labeled relations. Those relations give a downstream component syntactic evidence about which expression is the predicate, which expressions depend on it, and how the dependents are related. For example, a dependency analysis of a border description would give a frame extractor a basis for finding the entity whose border is described and the entity on the other side. The corpus fragment below shows the kind of input for which those attachments would matter.

| Form | Gloss | Translation | Corpus ID |
| --- | --- | --- | --- |
| *a bɛ danbɔ ni Aljeri ye* | 3SG IPFV border with Algeria POSTP | ‘it borders Algeria’ | `wiki:bm:Mali` |

Here `3SG` is third-person singular, `IPFV` is imperfective and `POSTP` is postposition. The gloss describes the words in the excerpt. The head and relation fields in the current Bambara output are unassigned, so that output supplies no predicate or argument attachments to a downstream component.

Mova's frame, pragmatics and world components read English dependency trees. Bambara parsing is therefore a prerequisite for passing Bambara trees to downstream processing. The availability of a parser would establish that there are trees to read. The stated support for reading English trees gives no result for how those components would interpret Bambara constructions.

## Squid claims and implementation status

Squid reads the grammar manual and turns each grammatical point into a claim. Claims that can be formalized, including rules, closed lists and statistics, enter Squid's queue for a place in Mova's code. A claim's presence in the queue records its availability for implementation. It does not show that an executable rule applies it to text.

For Bambara, the language code and the written grammar coexist with unannotated parser output. None of the chapter's grammatical rules is implemented for Bambara. Consequently, a description of a predicative marker in the manual supplies annotation guidance, while the actual `UPOS`, `HEAD` and `DEPREL` fields remain empty of analysis when the model is missing. A measured baseline requires the further step of training and evaluating against a reference treebank.

## Evidence needed for tokenization, tagging and dependency annotation

### Tokenization

A tokenizer needs examples tied to decisions about the boundaries of orthographic tokens and syntactic words. Spaces provide boundaries in much of the source text. Forms with apostrophes, forms containing hyphens, and punctuation adjacent to names or numerals need explicit treatment where the spelling alone leaves the intended segmentation uncertain. The annotation needs to retain the surface spelling while recording any syntactic words recovered from a written combination.

| Form | Gloss | Translation | Corpus ID |
| --- | --- | --- | --- |
| *k'o waleya* | INF.that put.into.practice | ‘to put that into practice’ | `wiki:bm:Nyɛ fɔlɔ` |

In this excerpt, *k'o* represents *ka o*, with an infinitive marker (`INF`) followed by the demonstrative *o* ‘that’. The written form gives one apostrophe-bearing sequence. Representing its two grammatical elements requires a word-boundary decision that can be applied consistently in comparable contexts. Corpus-processing work on Bambara describes normalization and morphological analysis as distinct operations. A UD annotation can use evidence from both while preserving the original form for inspection (Maslinsky 2014, pp. 84–102).

### Tagging and lemmatization

A tagger needs occurrences labeled by grammatical use, especially where a short written form serves several functions. Lemmatization also needs evidence about which spellings and word forms are to be associated with the same dictionary entry. Longer passages help with decisions that isolated forms cannot settle. For example, a possessive linker can be recognized by the nominal expressions around it, while the infinitive marker occurs in a construction with a verb.

| Form | Gloss | Translation | Corpus ID |
| --- | --- | --- | --- |
| *Mali ka Fasojamana* | Mali POSS republic | ‘the Republic of Mali’ | `wiki:bm:Mali` |

Here `POSS` marks the possessive linker. The nominal context distinguishes this occurrence of *ka* from the infinitive marker in *k'o waleya*. A useful tagging sample would include occurrences of both in full sentences with their word boundaries and parts of speech annotated. Daba describes Bambara corpus processing that combines automatic morphological analysis with manual resolution of ambiguous analyses. MasakhaPOS provides a separate reference for supervised part-of-speech annotation and evaluation across African languages (Maslinsky 2014, pp. 84–102; Adelani et al. 2023, §1).

### Dependency annotation

A treebank needs complete sentences in which annotators identify a root and give each remaining syntactic word a head and a relation. For Bambara, the guidelines need to cover the order of subjects, objects and verbs in verbal clauses, the treatment of predicative markers, the attachment of postpositional phrases, and the internal structure of noun phrases. The annotation must also cover embedding and coordination so that a head decision made for a simple clause can be applied when that clause occurs inside a larger sentence.

| Form | Gloss | Translation | Corpus ID |
| --- | --- | --- | --- |
| *ye Wikipedi Bamanankan ye* | EQ.PRED Wikipedia Bambara EQ.POSTP | ‘is the Bambara Wikipedia’ | `wiki:bm:Wikipedi` |

`EQ.PRED` marks the predicative element in this equative construction and `EQ.POSTP` marks the postpositional element that closes it. The identical surface forms *ye* occupy different positions and have different functions. The gloss makes that distinction visible. A UD analysis additionally has to specify the head of the predication and the relation of each marker to its head. Those decisions need examples across the construction's uses, with the same conventions applied in training and development.

## How Mova handles Bambara in the current package

`tools/mova-parse` uses `tools/langseg` at level 1 to give sentences and spans language labels. In Latin script, the current identifier distinguishes English and French using a Latin table, language lexicons and a character 4-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Every other script is `other`. Adding a Latin-script language requires a lexicon and a `Lang` code. `langseg latin-lexicon` builds lexicons from open UD training splits. Identification of spans in a language without a parser model is limited to the script or lexicon distinctions the identifier already knows.

At level 2, `tools/mova-parse` uses the model for the span's language. For `bm`, there is no model. The `# parse` comment reports the missing model and the token rows have `_` in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, with `Parse=None` in MISC. Mova currently provides no Bambara tokenization, tagging, lemmatization or dependency parsing.

The package specification in [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) asks for a train-to-development baseline. In the `en` crate, `en train` trains a tree parser and tagger from the UD training split after `en xpos-fill`, and `en parse-eval` measures UAS and LAS on the development split. Mova has models for English and French, `en.bin` and `fr.bin`. It holds no Bambara treebank, so there is no measured Bambara baseline.

Mova's frames, pragmatics and world components, including `prag` and `world`, read English trees. Bambara supplies no parsed trees for them to read. Squid turns grammatical points in the manual into claims and queues the formalizable ones for implementation. The queued claims do not implement the chapter's rules. The first points for implementation are those needed for a tokenizer, a tagger and a UD treebank baseline.

## Sources for this chapter

- Maslinsky, Kirill. 2014. Daba: A model and tools for Bambara corpus processing. Mandenkan 52, 84–102. — CC BY-NC 4.0; not held in the library, to verify
- Adelani, David Ifeoluwa, et al. 2023. MasakhaPOS: Part-of-Speech Tagging for Typologically Diverse African Languages. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics, Volume 1: Long Papers. Toronto: Association for Computational Linguistics. — CC BY 4.0; not held in the library, to verify
- [← previous 26. Reference, dialogue and discourse](https://md.mova.elamur.ai/free/en/docs/languages/bm/26-reference-and-discourse/)
- [next → Sources](https://md.mova.elamur.ai/free/en/docs/languages/bm/sources/)
- [↑ back to Bambara (bm) — a reference manual for Mova](https://md.mova.elamur.ai/free/en/docs/languages/bm/)

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://mova.elamur.ai/sitemap.xml) · [llms.txt](https://mova.elamur.ai/llms.txt)
