26. Kabiyè in Mova
Kabiyè uses the language code kbp in Mova. The manual describes its grammar, and Mova holds Kabiyè text. Automatic language identification, dependency parsing and interpretation each have their own requirements. Kabiyè currently has neither a parser model nor an annotated treebank in Mova.
Latin-script language identification and its coverage
Language identification is the first level of the multilingual parser. tools/langseg assigns a language to each sentence and span. A span can therefore have its own language assignment within a sentence. The second level uses that assignment to select a parser model for the span.
For Latin-script text, tools/langseg distinguishes English and French using a Latin-script table, a lexicon for each language and a character four-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Outside the supported scripts, the script result is other. That result describes script coverage. Kabiyè is written in Latin script and falls outside the current English–French identification coverage. The use of kbp in the manual and corpus identifiers does not supply a language assignment for running text.
Adding a Latin-script language to this level requires a lexicon and a Lang code. langseg latin-lexicon builds the lexicon from an open Universal Dependencies (UD) training split. This lexicon serves language identification. The parser still needs a model for the language assigned to the span.
The following corpus excerpts illustrate the written forms that an identifier would encounter. Both use Latin script, so no romanization is needed. The corpus identifiers give the source of the examples.
| Kabiyè form | Word gloss | Translation | Corpus sentence ID |
|---|---|---|---|
| “Ɛsɩpaañɩ ɛjaɖɛ taa” | Spain country in | ‘in Spain’ | wiki:kbp:1870 you tɔm |
| “Meftah tɛtʋ taa” | Meftah town in | ‘in the town of Meftah’ | wiki:kbp:Abdelmalek Droukdel |
Model lookup and Parse=None output
At level 2, tools/mova-parse looks in the assigned language’s models directory under the configured data root. The model filename consists of the language code followed by .bin. The lookup applies separately to each span, so a model available for one language can serve spans assigned to that language within a multilingual input.
If the assigned language has no model file, tools/mova-parse reports the language in the # parse comment. The output for that span uses the following values. This is the missing-model behavior for a span assigned to kbp.
| Output field | Value | Meaning for the span |
|---|---|---|
LEMMA | _ | No lemma is supplied. |
UPOS | _ | No universal part-of-speech tag is supplied. |
XPOS | _ | No language-specific part-of-speech tag is supplied. |
FEATS | _ | No morphological features are supplied. |
HEAD | _ | No syntactic head is supplied. |
DEPREL | _ | No dependency relation is supplied. |
MISC | Parse=None | The span has no level-2 parse. |
Read the underscores together with Parse=None. In this output, an underscore in FEATS leaves the token’s features unspecified. An underscore in HEAD leaves its head unspecified, including whether it is the root. Any token rows carrying this status are unannotated, and Mova provides no Kabiyè tokenization, tagging, lemmatization or parsing. The status concerns model availability after language assignment. It gives no evidence that the first level can identify Kabiyè in new text.
Kabiyè treebank availability and the unmeasured parser baseline
Mova’s Kabiyè corpus sentences provide examples of text in use. Mova holds no Kabiyè treebank with reference annotations. The presence of a corpus sentence and its identifier therefore gives no reference head or dependency relation against which a parser prediction can be scored.
The package specification in What every language gets calls for the same baseline for each language. The workflow uses a UD training split and a development split. en xpos-fill precedes en train, which trains the tree parser and tagger on the training split. en parse-eval measures attachment on the development split. The en crate supplies this workflow, and models exist for English (en.bin) and French (fr.bin).
| Measure | What must match the reference tree |
|---|---|
| Unlabeled attachment score (UAS) | The predicted syntactic head |
| Labeled attachment score (LAS) | Both the predicted head and the dependency relation |
Neither measure has been obtained for Kabiyè in Mova. There is no Kabiyè treebank for the train-to-development evaluation and no Kabiyè model. Parse=None is a status for output without a model and carries no numerical attachment score.
English-tree input to frames and pragmatics
Mova’s frames, pragmatics and world components (prag, world) read English trees. Language identification supplies a label for a span. Dependency parsing supplies a tree with the head and relation information that the downstream components need.
An unparsed Kabiyè span supplies no tree for these components. Its language label, surface forms and corpus identifier give them no tree input. The immediate limit for Kabiyè is the absence of a parse. The current input interface for these components is English trees.
Grammar claims in Squid and their 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’s code. A queued claim is still awaiting implementation. Its presence in the manual records a grammatical point, and its presence in the queue records work that can be formalized.
No Kabiyè rule described in the manual is implemented in Mova’s language tools. The first claims needed for implementation are those that bear on token boundaries, tagging and the UD treebank baseline. Tokenization needs rules for the units that receive annotations. Tagging needs the categories and conditions for assigning them. A treebank baseline needs consistent reference analyses in the training and development splits so that predicted heads and relations can be compared with them.
How Mova handles Kabiyè today
tools/mova-parse assigns languages to sentences and spans through tools/langseg at level 1 and uses the assigned language’s model at level 2. A language without a parser model can still be identified where tools/langseg has the relevant script or lexicon coverage. Its Latin-script identification currently distinguishes English and French. Adding a Latin-script language requires a lexicon and a Lang code, with langseg latin-lexicon available to build the lexicon from an open UD training split.
There is no level-2 model for kbp. For a span assigned to kbp, tools/mova-parse reports the missing model in the # parse comment, puts _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, and sets Parse=None in MISC. Mova provides no Kabiyè tokenization, tagging, lemmatization or dependency parsing.
Mova holds no Kabiyè treebank, so the baseline specified in What every language gets remains unmeasured for Kabiyè. The package workflow uses en xpos-fill before en train and en parse-eval to measure UAS and LAS on the development split after training. The components for frames, pragmatics and world (prag, world) read English trees and have no Kabiyè tree input.
Squid records the manual’s grammatical points as claims and queues those it can formalize. The Kabiyè rules remain unimplemented. The first implementation needs are the rules and lists required for a tokenizer, a tagger and a UD treebank baseline.
Sources for this chapter
- No source was planned for this chapter; its points are to be checked against public-domain and open grammars (see Sources).
This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/kbp/26-mova-tools/