Mova0.6 pre-release

the flag of Nigeria 34. Hausa in Mova and Squid

Mova handles multilingual text in two levels. The first assigns languages to sentences and spans. The second uses the assigned language to select a Universal Dependencies (UD) parser model. Hausa has the language code ha, and Mova has neither a level-two model nor an annotated Hausa corpus. Squid records grammatical claims from this manual for possible implementation.

Hausa package status and language segmentation

Level one uses tools/langseg to give every sentence and span a language label. Span labels matter in multilingual text because a sentence can contain material assigned to more than one language. The label on each span determines which model level two looks for.

For Latin-script language identification, the segmenter distinguishes English and French with a Latin table, a lexicon for each language, and a character 4-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside the supported set receive the label other. The route for adding a Latin-script language is to add a lexicon and a Lang code. The command langseg latin-lexicon builds lexicons from open UD training splits.

Boko uses Latin script. Identifying a Boko span as ha requires Hausa support in the Latin-script segmenter. Ajami uses Arabic script, which falls under other in the current script coverage. The code ha identifies the language of the Hausa package, so package status and recognition of a particular input span are separate questions. Hausa-specific segmentation coverage depends on the script or lexicon the segmenter knows.

Level-two model lookup and Parse=None output

tools/mova-parse looks up a model for each span using the language assigned at level one. The model location follows the language code in both the directory and the filename. For a span labeled ha, the lookup is ha.bin. Mova has no Hausa model at this level.

When the model for an assigned language is missing, the # parse comment reports the language. In the token rows for that span, the annotation fields have the following values.

FieldValue without the modelAnnotation the field would carry
LEMMA_Lemma
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Morphological features
HEAD_Index of the syntactic head
DEPREL_Dependency relation to the head
MISCParse=NoneParse status in the miscellaneous field

A token row with this marker represents a span for which the assigned language lacks a model. Its blank head and relation fields leave the token’s syntactic role unspecified. In a mixed-language sentence, model lookup still applies individually to the other spans, according to their assigned labels.

Annotated data and the missing Hausa baseline

Mova holds no annotated Hausa corpus, so it reports no measured Hausa treebank baseline. A UD treebank supplies sentences with token boundaries and reference annotations. For dependency evaluation, those annotations identify each syntactic word’s head and its relation to that head. The reference also records word classes and can record morphological features and lemmas.

A baseline requires a training split and a development split. The training split supplies examples from which the parser and tagger learn. The development split supplies reference analyses against which the resulting model is evaluated. Unannotated Hausa text can supply forms and contexts for annotation. The heads and relations needed for scoring must be supplied by the reference data.

Yara sun zo. (constructed)
children 3PL.PFV come
‘The children came.’

Here 3PL means third-person plural and PFV means perfective. A treebank entry for this sentence would need to say how the subject marker sun is represented in the UD analysis and which head and relation are assigned to each syntactic word. The gloss explains the Hausa construction. The treebank would supply the decisions that training and evaluation need.

UD training workflow and UAS and LAS measurements

Mova’s tree parser and tagger belong to the en crate. The package specification in What every language gets calls for the same baseline for every language. The workflow uses en xpos-fill before en train trains on the language’s UD training split. It then uses en parse-eval to measure attachment scores on the development split. English and French have models, en.bin and fr.bin. Hausa has no model or measurement from this workflow.

MeasureFull nameCondition for a correct attachment
UASUnlabeled attachment scoreThe predicted head matches the reference head.
LASLabeled attachment scoreThe predicted head and dependency relation both match the reference.

Each score is the proportion of evaluated syntactic words that meet its condition. A word attached to the reference head with the wrong relation contributes to UAS alone. A word attached to a different head contributes to neither score, even if its relation label matches. On the same set of evaluated words, LAS is at most UAS. The scores measure dependency attachment. Lemma accuracy, part-of-speech accuracy, and language identification each ask a different evaluation question.

Dependency inputs for frames and pragmatics

Mova’s frames, pragmatics, and world components read English dependency trees. The relevant components include prag and world. A Hausa span with Parse=None supplies no dependency tree for them to read. A Hausa parser would supply that input. Current downstream processing is described for English trees.

Amina ta karanta littafi. (constructed)
Amina 3SG.F.PFV read book
‘Amina read a book.’

Here 3SG.F means third-person singular feminine. A dependency tree for this sentence would identify the reading predicate and mark Amina and the book as its subject and object. Those relations give a frame analysis syntactic evidence for who read and what was read. The translation makes those roles clear to a reader. In Mova’s pipeline the evidence would have to come from the dependency annotation, whose head and relation fields are empty for an unparsed Hausa span.

Squid claims and priorities for tokenization and tagging

Squid reads the manual and represents each grammatical point as a claim. Formalizable claims, including rules, closed lists, and statistics, enter a queue for possible implementation in Mova. A queued claim remains pending until it is implemented in code. The first priorities for Hausa are the claims needed for tokenization, tagging, and a UD treebank baseline.

Tokenization needs decisions about the units that will receive annotations. Boko letter forms such as ƙ belong inside words, while spaces and punctuation provide visible boundary evidence. A treebank also needs a convention where the boundaries of a written word and the boundaries of the syntactic words it contains differ. Consistent boundary decisions let the training and development annotations refer to the same units.

Yaron ya ga kare. (constructed)
boy-DEF 3SG.M.PFV see dog
‘The boy saw a dog.’

Here DEF means definite and 3SG.M means third-person singular masculine. In this sentence the definite element is written as part of yaron, while ya is written separately before ga. The gloss exposes a morphological division within yaron. The annotation convention determines how that division is represented in the token rows. The subject marker ya calls for a consistent word-class and feature analysis wherever it has this function.

Tagging needs decisions about which properties go in the universal part-of-speech field, the language-specific part-of-speech field, and the feature field. Hausa subject markers are a priority because they carry person and number, distinguish gender in parts of the paradigm, and vary with tense, aspect, or mood. In ordinary Boko spelling, tone and vowel length are generally unwritten. Tagging rules and annotation decisions must account for forms whose written shapes leave a distinction open and whose clause context supplies the evidence.

Ba ta zo ba. (constructed)
NEG 3SG.F.PFV come NEG
‘She did not come.’

Here NEG marks negation. The clause has two separately written occurrences of ba, one before the subject marker and one after the verb. A treebank needs a consistent decision on the tags and dependencies of both occurrences. The boundary, tag, and relation decisions for constructions like this one determine what the parser can learn and what the development split can measure.

How Mova handles Hausa today

tools/mova-parse uses tools/langseg to label sentences and spans, then looks for a parser model for each span’s assigned language. Its Latin-script language identification currently distinguishes English and French. Adding another Latin-script language uses a lexicon from an open UD training split and a Lang code. Hausa span identification depends on the script or lexicon known to the segmenter.

Hausa has no level-two model. For spans assigned to ha, 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 provides no Hausa tokenization, tagging, lemmatization, or dependency parsing. The English-tree inputs used by prag and world are unavailable for Hausa.

Mova has no annotated Hausa corpus and no measured Hausa baseline. What every language gets calls for the shared workflow of en xpos-fill, en train on the training split, and en parse-eval for UAS and LAS on the development split. Squid records claims from the manual and queues the formalizable ones. The Hausa rules await implementation, starting with the claims needed for tokenization, tagging, and a UD treebank baseline.

Sources for this chapter

This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/ha/34-hausa-in-mova/