18. Karekare in Mova
Mova uses kai as the language code for Karekare. It has no Karekare parser model or annotated treebank. The available corpus excerpts illustrate what language identification and annotation would need to handle. The grammar manual supplies claims that Squid can record for later implementation.
Language identification and Latin-script support
Language identification is the first level of tools/mova-parse. The component tools/langseg assigns a language to each sentence and span. The second level uses the span’s language to select a parser model. A language label therefore records a decision about the text at the first level. Parser availability is a separate condition checked at the second level.
The Latin-script identification machinery uses a Latin table, a lexicon for each supported language and a character 4-gram model. The Latin-script languages distinguished by the system described here are English and French. Adding a Latin-script language requires a lexicon and a Lang code. The langseg latin-lexicon command derives a lexicon from an open Universal Dependencies (UD) training split. The use of kai in the manual and corpus metadata establishes the language code for those materials. Automatic assignment of that code to a span depends on the identification support in tools/langseg.
The corpus excerpts show why the language associated with a page and the language of a span need separate treatment. Material indexed under kai includes English text and names occurring in a Latin-script sentence with diacritics. The examples below give only the attested fragments. The source forms are already in Latin script.
| Form | Gloss | Translation | Corpus sentence ID |
|---|---|---|---|
| “2 BC” | 2 BEFORE.CHRIST | ‘the year 2 BC’ | wiki:kai:2 |
| “List of governors” | list of governor.PL | ‘a list of governors’ | wiki:kai:AbdulRahman AbdulRazaq |
| “Obingwa” | PLACE.NAME | ‘Obingwa’ | wiki:kai:Abayi Okoroato |
| “Lanjèeriya” | COUNTRY.NAME | ‘Nigeria’ | wiki:kai:Abayi Okoroato |
The two English fragments occur in material with Karekare corpus metadata. The two place names illustrate the limits of reading a span’s language from an isolated name. “Lanjèeriya” also gives an attested spelling with a grave accent that can be used to check whether the input form survives processing.
Parser model availability and Parse=None output
The second level of tools/mova-parse parses each span with the model for its assigned language. There is no level-2 model for kai. When the parser encounters a span assigned to a language with no model file, it reports the absence in the # parse comment. For Karekare, the token rows it emits carry the following field values.
| Field | Value | Information left unavailable |
|---|---|---|
| LEMMA | _ | A dictionary form assigned by the parser |
| UPOS | _ | A universal part-of-speech tag |
| XPOS | _ | A language-specific part-of-speech tag |
| FEATS | _ | Morphological feature annotation |
| HEAD | _ | A syntactic head or root assignment |
| DEPREL | _ | A dependency relation |
| MISC | Parse=None | Records that parsing was unavailable |
The missing HEAD and DEPREL values leave the span without a dependency tree. The missing tag, feature and lemma values leave the word forms without a morphological analysis. Parse=None gives the reason for the unavailable parse in this case. It supplies no evidence about a form’s grammatical category or about the quality of a possible analysis. The presence of token rows likewise supplies no evidence that Mova applied Karekare tokenization rules.
The missing-model condition is evaluated for the language of each span. In multilingual input, the condition for a Karekare span is the absence of the kai model. Spans assigned to languages with models can be parsed with their respective models.
Treebank availability and the training and evaluation baseline
Mova holds no annotated Karekare treebank and has measured no Karekare treebank baseline. The supplied corpus excerpts give examples of written material. They supply no training or development split with reference tags, heads and dependency relations. Their corpus sentence IDs identify the examples and provide no performance measurements.
The language package described in What every language gets asks for the same baseline for every language. Mova’s parser and tagger are in the en crate. The workflow applies en xpos-fill before training, trains with en train on the language’s UD training split and uses en parse-eval to measure performance on the development split. English and French have model files, en.bin and fr.bin.
The baseline reports UAS and LAS. Both compare predicted dependency attachments with the reference annotation on the development split. UAS measures whether the predicted head matches. LAS requires a match for both the head and the dependency relation. Applying this workflow to Karekare requires annotated Karekare training and development data. In the current package, both scores are unmeasured. An output field marked Parse=None is a runtime status and contributes no Karekare attachment score.
The current scope of frames and pragmatics
Mova’s frame, pragmatic and world processing uses English trees. For Karekare, there is no parsed tree to supply to prag or world. The language label identifies the span’s assigned language, and the token rows can carry the missing-parse status. Neither supplies the syntactic relations that tree-based processing would read.
Chapter statements about grammar or usage are available to Squid as claims. They do not provide analyses of individual occurrences in a Karekare text. For example, an annotation of the role played by “Lanjèeriya” would depend on its construction in the sentence. The name’s gloss identifies its referent, while the current output for a span assigned to kai leaves the head and dependency relation unspecified. A Karekare parse is a prerequisite for downstream processing of that span. The downstream processing described for the current system uses English trees. wiki:kai:Abayi Okoroato
Squid claims and priorities for tokenization and annotation
Squid reads the grammar manual and records each grammatical point as a claim. Rules, closed lists and statistics can be formalized and queued for implementation. A queued claim describes a point for possible implementation. Its presence in the queue does not change what Mova produces for kai.
The first priorities are the points needed for a tokenizer, a tagger and the UD treebank baseline. Each has a different role in preparing material that can be annotated consistently and evaluated.
| Priority | Decisions the grammar needs to support |
|---|---|
| Tokenization | Specify the conditions for word and punctuation boundaries and for any splitting within a written form. State which spelling marks belong to the written form. |
| Tagging and lemmatization | State which evidence determines a word’s class and which features apply in the construction. Record the lemma conventions needed to connect inflected forms with their dictionary forms. |
| UD annotation and evaluation | Specify the head and dependency relation for each covered construction, with the conditions that distinguish competing analyses. Apply the same annotation decisions across the training and development splits. |
The corpus examples provide concrete checks for those decisions. “Lanjèeriya” can check preservation of a spelling mark. “2 BC” gives an attested case of a digit followed by letters in an English span from a page catalogued under kai. The internal boundaries and syntactic annotation of Karekare constructions require Karekare evidence. Corpus metadata, spelling and glosses each supply only part of that evidence. wiki:kai:Abayi Okoroato and wiki:kai:2
Claims stated as rules need conditions and exceptions precise enough to apply to an occurrence. Claims stated as closed lists need the full membership of the list. A statistic needs a defined set of observations. These distinctions matter when a claim is used to guide annotation. An attested form can support a spelling check, while an annotation rule must also say when that check applies and what output is expected.
How Mova handles Karekare today
At level 1, tools/mova-parse uses tools/langseg to assign languages to sentences and spans. For Latin script, tools/langseg distinguishes English and French with its Latin table, language lexicons and a character 4-gram model. It also distinguishes Hebrew-script varieties and Hebrew or Aramaic in scholarly transliteration. Every other script is classified as other. A further Latin-script language joins through a lexicon and a Lang code, with langseg latin-lexicon available for open UD training splits. Identification of a Karekare span depends on the script or lexicon support available to tools/langseg.
At level 2, tools/mova-parse selects the model for the language of each span. There is no kai model. For a span assigned to kai, the # parse comment reports the missing model, and the token rows show Parse=None in MISC. LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL all contain _. Mova performs no Karekare tokenization, tagging, lemmatization or dependency parsing.
Mova has no annotated Karekare treebank and has measured no baseline for the language. The baseline requested by What every language gets uses en xpos-fill before en train on the UD training split and measures UAS and LAS with en parse-eval on the development split. Models exist for English and French as en.bin and fr.bin. Mova’s frame, pragmatic and world processing reads English trees. There is no parsed Karekare tree for prag or world to read.
Squid records grammatical points from the manual as claims and queues the formalizable ones. None of the chapter’s Karekare rules is implemented. The first priorities are the claims needed for tokenization, tagging 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/kai/18-mova-tools/