24. Tyap in Mova
Tyap has the language code kcg in Mova. The corpus includes Tyap text, and the grammar manual supplies claims for Squid. The parsing pipeline has no Tyap model, and the Tyap package has no annotated treebank or measured parsing baseline.
Language identification and span-level parsing
tools/mova-parse handles multilingual text in two levels. At level 1, tools/langseg assigns a language label to each sentence and span. At level 2, the parser looks for a model corresponding to each span’s label. Spans in the same sentence can therefore be passed to different models. A sentence-level label alone does not determine which model is used for every span.
For Latin-script text, the current identifier distinguishes English and French using its 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 its supported inventory fall under other. Tyap is written in Latin script, so script recognition alone cannot identify a span as Tyap. The current Latin-script inventory does not include a Tyap identifier. Adding a Latin-script language requires a lexicon and a Lang code. The langseg latin-lexicon command builds lexicons from open Universal Dependencies (UD) training splits.
The corpus illustrates why language identification works at both levels. The entry wiki:kcg:Afi̱rika Jenshyung contains Tyap prose and an English bibliographic title. The entry’s corpus label identifies the source language, but the text within it includes material in more than one language. A Tyap phrase in that entry is Fam Afi̱rika Jenshyung, glossed region Africa west, ‘West Africa’ (wiki:kcg:Afi̱rika Jenshyung). It exemplifies the input that a Tyap identifier would need to recognize. The corpus ID records the example’s provenance and gives no parser result for the phrase.
Tyap model and treebank status
Mova has no level-2 parser model for kcg. Model lookup is by language code, so the English and French models are available to spans identified as English or French. A span with code kcg has no corresponding model, regardless of whether a model is available for another span in the sentence.
Mova also holds no Tyap treebank. The corpus excerpts provide text, and some entries include short lexical explanations or English references. A treebank would supply token-level annotations and dependency trees. Those annotations would establish what the words are tagged as, which heads they attach to and which grammatical relations connect them. The corpus excerpts carry no such analyses. For example, Lilyem Sami, glossed language Sami, ‘the Sami language’ (wiki:kcg:Lilyem Sami), gives a form in context without supplying a UD analysis of its words.
Language identification, model availability and treebank availability are separate facts about the package. A language code identifies the language. A treebank supplies data for training and evaluation. A trained model supplies annotations for input spans at run time. The absence of a model determines the parser’s missing-model output. The absence of a treebank means Mova has no Tyap baseline measured against annotated data.
Unannotated output and Parse=None
When tools/mova-parse handles a span whose language has no model, the # parse comment reports that the language lacks a model. The token rows for that span have the following values. This applies to spans with code kcg.
| Field | Value | What the output supplies |
|---|---|---|
LEMMA | _ | No lemma |
UPOS | _ | No universal part-of-speech tag |
XPOS | _ | No language-specific part-of-speech tag |
FEATS | _ | No morphological feature annotation |
HEAD | _ | No syntactic head assignment |
DEPREL | _ | No dependency relation |
MISC | Parse=None | An explicit indication that the span was left unparsed |
The comment identifies the missing model, and Parse=None marks the affected token rows. Read the underscores together with that marker. For instance, _ in HEAD leaves the attachment unknown, including whether the word is the root. Likewise, _ in FEATS records the lack of a feature analysis and gives no evidence about which features a Tyap word can express.
A token row in this output records an item passed through by the pipeline. Its presence does not establish that a Tyap tokenizer produced or validated its boundaries. In multilingual text, annotations supplied by a model for one span do not fill the missing fields for an adjacent Tyap span.
The training and evaluation baseline
The language package described in What every language gets calls for the same parser baseline for each language. Mova’s en crate provides the training and evaluation workflow. en xpos-fill precedes en train, which trains the tagger and dependency parser using the language’s UD training split. en parse-eval measures attachment on the development split after training. English and French have models, en.bin and fr.bin.
The baseline uses two scores. Both check predictions against reference attachments in the annotated development data.
| Measure | What must match the reference |
|---|---|
| Unlabeled attachment score (UAS) | The syntactic head |
| Labeled attachment score (LAS) | The syntactic head and its dependency relation |
The two scores answer different questions about a predicted tree. UAS checks whether a word attaches to the correct head. LAS also checks whether the label on that attachment is correct. A correctly attached word with the wrong relation label can contribute to UAS but cannot contribute to LAS.
There is no measured UAS or LAS for Tyap. The baseline needs annotated training and development data, and Mova has no Tyap treebank. Unannotated corpus text cannot supply the reference heads or dependency relations required for these measurements. Parse=None reports that a parse is unavailable for the span and supplies no attachment score.
Frames and pragmatics coverage
Mova’s frames, pragmatics and world components work from English dependency trees. The components prag and world therefore have no Tyap tree input. Tyap spans with Parse=None supply neither the attachments nor the relation labels that tree-based analysis would read. The current Tyap package offers no coverage through those components.
Two boundaries matter here. A parser model would supply the tree input that is currently missing. The stated coverage of the components that consume trees is English. Consequently, even a measured Tyap UAS and LAS would describe dependency attachment under the evaluation baseline. Those scores would give no measurement of frame extraction or pragmatic interpretation for Tyap.
Corpus translations and glosses in the manual serve readers. They do not supply Tyap trees to the analysis pipeline. Similarly, a grammatical description can explain how a form functions in a construction even when the pipeline provides no analysis for the corresponding span.
Grammar claims and the Squid queue
Squid reads the manual and turns each grammatical point into a claim. Formalizable claims enter its queue for a place in Mova’s code. These include rules with stated conditions, lists whose membership is closed and statistics that can be stated explicitly. A queued claim still awaits implementation. Its presence in the manual or queue supplies no evidence that the current parser applies it.
The immediate requirements for Tyap are the points needed by a tokenizer, a tagger and a UD treebank baseline. Spelling and word-boundary conventions matter when establishing token boundaries. Word classes and morphological distinctions matter when assigning tags and features. Clause and phrase structure matter when assigning heads and dependency labels. A claim in any of these areas needs to give the conditions under which it applies, including exceptions, so that it can guide consistent analysis.
Corpus attestations support examples in the manual. An annotated treebank would supply the reference analyses needed for training and evaluation. The queue records formalizable descriptions awaiting implementation, while the model and evaluation results establish what the tools can do and how their output compares with reference trees. Each has a distinct role in assessing the state of the Tyap package.
How Mova handles Tyap text
tools/mova-parse first uses tools/langseg to label sentences and spans. Identification is limited to the languages and scripts known to that component. Its Latin-script distinctions currently cover English and French. Adding Tyap to those distinctions requires a lexicon and a Lang code. langseg latin-lexicon takes its lexicon input from open UD training splits.
At level 2, the parser looks for the model matching the span’s language code. There is no kcg model. For a span with that code, the # parse comment reports the missing model. LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL are _, and MISC contains Parse=None. Mova does not provide Tyap tokenization, tagging, lemmatization or dependency parsing.
Mova holds no annotated Tyap treebank, so it has no measured Tyap baseline. The package baseline calls for en xpos-fill before en train on the UD training split, followed by measurement of UAS and LAS on the development split with en parse-eval. Mova’s frames, pragmatics and world read English trees. With no Tyap parse, they have no Tyap tree to read.
Squid reads the Tyap manual and queues its formalizable claims. The grammatical rules described in the manual have yet to be implemented for Tyap. The first requirements are the ones 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/kcg/24-mova-tools/