Mova0.6 pre-release

the flag of Ghana 29. Kusaal in Mova

Kusaal uses the language code kus. Mova has Kusaal text samples and a grammar manual, but it has no annotated Kusaal treebank or parser model. This chapter explains how those resources relate to language identification, dependency parsing, and the inputs used by the frame and pragmatics components.

Language identification and Latin-script coverage

The code kus identifies the Kusaal edition and its corpus records. In a corpus record, the code is supplied by the collection. In multilingual input, the language of a sentence or a span within it is assigned by the language identifier. A corpus label and a prediction from text are therefore two different sources of language information.

The Kusaal samples use Latin script, including letters such as ɔ, ɛ, ʋ, and ŋ. The current Latin-script language identifier distinguishes English and French. It uses a Latin table, a lexicon for each supported language, and a model of four-character sequences. Kusaal shares the script with the supported languages, so script identification alone does not establish that a span is Kusaal. The documented way to add a Latin-script language is to add a lexicon and a Lang code. The langseg latin-lexicon command supports lexicon generation from open Universal Dependencies (UD) training splits.

The form below illustrates two letters that occur in the supplied Kusaal text. The gloss and translation describe the phrase as used in the corpus. Kusaal uses Latin script, so the form needs no separate romanization.

FormGlossTranslationCorpus sentence ID
Juda teŋinJudah land.LOC‘in the land of Judah’wiki:kus:AZAYA 26
Egipt yɛlaEgypt matters‘about Egypt’wiki:kus:AZAYA 19

The supplied records also include English text under Kusaal edition identifiers, as in wiki:kus:2016 Ghanaian general election and wiki:kus:7th Parliament of the 4th Republic of Ghana. The edition code identifies where a record comes from. It provides no guarantee about the language of every span in that record.

Multilingual parsing and unannotated Kusaal tokens

tools/mova-parse has two levels. At level 1, tools/langseg assigns a language to every sentence and span. At level 2, the parser selects a model for each span using the assigned language code. It looks for a model whose filename is the code followed by .bin, in that language’s model directory under $MOVA_DATA. A single sentence can therefore contain spans for which different models are selected. Model selection applies to the assigned code, so the missing-model behavior for Kusaal describes a span presented to level 2 as kus.

There is no level-2 model for kus. When the model for an assigned language is missing, the output reports that language in the # parse comment. Token rows for the affected span have the following values.

FieldValueAnnotation left unspecified
LEMMA_Dictionary form
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Morphological features
HEAD_Syntactic head
DEPREL_Dependency relation
MISCParse=NoneRecords the absence of a parse

Parse=None describes the processing status of a row. A printed form in that row has no accompanying Kusaal-specific tokenization, tagging, lemmatization, or dependency analysis. An underscore in HEAD leaves the attachment unspecified, including whether the token is the root. An underscore in FEATS likewise leaves feature annotation unspecified. It gives no evidence about the morphology of the form.

Treebank availability and the unmeasured Kusaal baseline

Mova holds Kusaal corpus samples, including material from the Kusaal Wikipedia edition. It holds no Kusaal treebank. The samples supply text and identifiers, which are enough to locate examples. A UD treebank also supplies reference annotations for token boundaries, parts of speech, morphological features, and dependency structure. For a parser baseline, the reference data must include both a training split and a development split.

For example, the following phrase supplies evidence for the surface forms and their order. The gloss describes the phrase for the reader. A treebank would record the token-level tags, heads, and relations that an evaluation could compare against parser output.

FormGlossTranslationCorpus sentence ID
Zugsɔb laLord DEF‘the Lord’wiki:kus:AZAYA 19

There is no measured Kusaal baseline. Unannotated output cannot supply a reference tree, and the presence of corpus samples does not give a Kusaal attachment score. The package asks for the same training-to-development baseline for each language. English and French have model files, but their models supply no measurement for Kusaal. Any Kusaal baseline would describe performance on the Kusaal splits used to obtain it.

Training and evaluation with the en crate

The en crate supplies Mova’s parser training and evaluation. Despite its name, its baseline procedure takes the UD splits for the language being measured. The package specification requests this baseline for every language. The training split supplies examples for the tree parser and tagger, while the development split supplies reference trees for evaluation.

OperationInputRole in the baseline
en xpos-fillThe language’s UD training dataPrepares the XPOS field before training
en trainThe prepared UD training splitTrains the tree parser and tagger
en parse-evalThe trained parser and the language’s UD development splitMeasures unlabeled and labeled attachment

Unlabeled attachment score (UAS) is the proportion of evaluated tokens for which the parser predicts the reference head. Labeled attachment score (LAS) requires the reference head and the reference dependency relation. A correct head with an incorrect relation counts toward UAS only. These are dependency attachment measures. The training and evaluation procedure described here provides no separate score for language identification, lemmatization, frames, or pragmatic interpretation.

The available models are en.bin for English and fr.bin for French. In multilingual parsing, the assigned span language determines which model file is sought. A Kusaal run of the baseline procedure requires annotated Kusaal training and development splits. Those splits are absent from Mova, so the procedure has no Kusaal result to report.

Input requirements for frames and pragmatics

Mova’s frame, pragmatics, and world components operate on English trees. A span’s language label identifies the intended language of analysis, and its surface forms provide text. The components need a tree as input. For an unparsed Kusaal span, the missing HEAD and DEPREL values leave the components without the dependency structure they would read.

A grammatical gloss, such as Lord DEF for Zugsɔb la, gives a human reader information about the phrase. The gloss in this manual has no structured connection to the token rows emitted by the multilingual parser. Likewise, a translation attached to an example is a reading aid. It supplies no Kusaal dependencies.

A Kusaal tree is a prerequisite for work on Kusaal frames and pragmatics. The current tree-reading components are described for English. The availability of a parser model would address the production of dependency trees, while the documented downstream coverage is English.

Squid claims and the implementation queue

Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable claims go into its implementation queue. These include rules with explicit conditions, closed lists of forms, and statistics. The queue records candidates for implementation in Mova’s code. Entry in the queue gives a claim no effect on parser output.

For a language without a model, the first priorities are the facts needed for a tokenizer, a tagger, and a UD treebank baseline. Tokenization needs decisions about boundaries in written forms. The corpus spelling pian', for example, gives an attested form with a final apostrophe. An annotation decision would specify how that character is treated in the text and what the token boundary is. Tagging needs assignments of parts of speech and features. Dependency annotation needs heads and relation labels for the tokens that those decisions produce. The baseline uses the resulting reference annotations to measure parser attachments.

FormGlossTranslationCorpus sentence ID
pian'speak‘speak’wiki:kus:AZAYA 19

The example establishes that the spelling occurs in the supplied corpus. The tokenization and annotation rules must cover the conditions under which such forms occur. Those rules can be stated in the manual and recorded as claims before they are available in a tokenizer or represented in an annotated corpus. Kusaal is at that stage in Mova.

How Mova handles Kusaal today

tools/langseg supplies level 1 of tools/mova-parse, assigning a language to each sentence and span. Its Latin-script coverage distinguishes English and French through a Latin table, language lexicons, and a character four-gram model. It also distinguishes Hebrew-script varieties and Hebrew or Aramaic in scholarly transliteration. Scripts outside its supported coverage are assigned other. For another Latin-script language, the documented entry point is a lexicon and a Lang code, with langseg latin-lexicon using open UD training splits. Identification of spans in a language without a parser model depends on script or lexicon support. The current Latin-script distinction does not include Kusaal.

At level 2, tools/mova-parse selects the model file for the language assigned to each span. No level-2 model exists for kus. For a span assigned to kus, the # parse comment reports the missing model and the token rows carry Parse=None in MISC. LEMMA, UPOS, XPOS, FEATS, HEAD, and DEPREL are all _. Mova has no Kusaal-specific tokenization, tagging, lemmatization, or parsing at this stage.

Mova has no Kusaal treebank and no measured Kusaal baseline. The baseline requested in What every language gets uses the en crate. After en xpos-fill, en train trains the tree parser and tagger on the UD training split. en parse-eval measures UAS and LAS on the development split. The available models are English en.bin and French fr.bin.

The frame, pragmatics, and world components read English trees. Without a Kusaal parse, prag and world have no Kusaal tree to read. Squid turns the manual’s grammatical points into claims and queues the formalizable ones for implementation. The Kusaal rules are still unimplemented. The first priorities are the rules and data needed for a tokenizer, a tagger, and a UD treebank baseline.

Sources for this chapter

This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/kus/29-mova-tools/