29. Zhuang in Mova
Mova has no level-two model or annotated treebank for Zhuang (za). Its multilingual pipeline can process documents that contain Zhuang, but language segmentation, Zhuang word analysis, dependency parsing, and interpretation have different prerequisites. This chapter describes the output available at each stage and what a Zhuang baseline would measure.
Language segmentation and the coverage of Zhuang scripts
The first level of tools/mova-parse uses tools/langseg to assign a language label to each sentence and span. The span matters when a sentence includes material in several languages or scripts. A document from the Zhuang edition can contain standard Zhuang spelling, Sawndip, Chinese names, and text in other languages. The document's edition code gives the source of the text. The segmenter classifies the text it receives.
Standard Zhuang is written in the Latin script. The segmenter's current Latin-script language inventory is English and French. It uses a Latin character table, a lexicon for each supported language, and a character four-gram model. Recognizing Latin characters therefore gives the segmenter the script of standard Zhuang text, while identifying the span as Zhuang requires language-specific support. Historical alphabetic forms also occur in the corpus. Their presence in a Zhuang document supplies no recognition rule for the segmenter.
The segmenter also distinguishes Hebrew-script varieties and Hebrew or Aramaic in scholarly transliteration. Scripts outside its supported inventory receive other. Sawndip written in Han characters falls into that category, as does Chinese written in Han characters. The shared label gives no language distinction between those two uses of the script.
The corpus fragments below show the different forms that can occur in this material. The glosses describe the source text. They give no observed segmenter result for an individual fragment.
| Form | Romanization or standard spelling | Gloss | Translation | Corpus sentence ID |
|---|---|---|---|---|
| “Vahcuengh” | — | language-Zhuang | ‘Zhuang language’ | wiki:za:Vahcuengh |
| “話僮” | Vahcuengh | language-Zhuang | ‘Zhuang language’ | wiki:za:Vahcuengh |
| “广西” | Guǎngxī | Guangxi | ‘Guangxi’ | wiki:za:Gvangjsih Bouxcuengh Swcigih |
| “Cuŋƅvaƨ” | Cunghvaz | China | ‘China’ | wiki:za:Cunghvaz Yinzminz Gunghozgoz |
A further Latin-script language can be added with a Lang code and a lexicon. The langseg latin-lexicon command builds the lexicon from an open Universal Dependencies training split. That addition serves language identification. Dependency parsing requires a separate model at the second level.
Missing level-two model and unannotated output
At the second level, tools/mova-parse selects a model for each span by its language code. The same document can therefore contain spans with and without a model. When a span is assigned za, there is no Zhuang model to load. The # parse comment reports the missing model, and the token rows for that span have the following values.
| Column | Value | Information absent from the row |
|---|---|---|
LEMMA | _ | Dictionary form |
UPOS | _ | Universal part of speech |
XPOS | _ | Language-specific part of speech |
FEATS | _ | Morphological features |
HEAD | _ | Syntactic head |
DEPREL | _ | Dependency relation to the head |
MISC | Parse=None | Marker that the parse is absent |
The values apply to spans that reach model selection under za. Language identification determines which model lookup is attempted in the first place. A language label in the output records that identification step. A row with Parse=None supplies no Zhuang lemma, tag, or dependency annotation. The presence of rows also supplies no evidence that a Zhuang tokenizer has established the grammatical word boundaries. Mova has no Zhuang-specific tokenization, tagging, lemmatization, or parsing in this pipeline.
Treebank availability and baseline measurements
Mova holds no annotated Zhuang corpus or treebank, and it reports no measured Zhuang treebank baseline. The Wikipedia material in Mova's corpora supplies examples of Zhuang text and mixed-script passages. A dependency baseline needs reference annotations against which to compare the parser's output. Running the multilingual pipeline over that text cannot supply those reference annotations or produce a Zhuang attachment score.
The language package described in What every language gets asks for the same training and development baseline for every language. Mova has English and French models, en.bin and fr.bin. Each belongs to its own language. Neither provides a Zhuang baseline, since the baseline depends on training on a Zhuang split and evaluating against Zhuang reference trees. For Zhuang, both the model and the baseline measurement are absent.
Training prerequisites and UAS and LAS evaluation
Mova's tree parser and tagger are in the en crate. The baseline procedure requires an annotated Universal Dependencies (UD) training split and a development split. The training split supplies the examples used to fit the model. The development split supplies the reference trees used to measure its predictions on separate material. Run en xpos-fill before en train, which trains the parser and tagger on the training split. Then use en parse-eval to measure unlabeled attachment score (UAS) and labeled attachment score (LAS) on the development split.
Both measures assess predictions at the level of a word's dependency attachment. The head is the word to which it attaches, with a designated head value for the root. The dependency relation specifies the kind of attachment. A correct label on an incorrect head earns credit under neither measure.
| Predicted head | Predicted dependency relation | Counts as correct for UAS | Counts as correct for LAS |
|---|---|---|---|
| Correct | Correct | Yes | Yes |
| Correct | Incorrect | Yes | No |
| Incorrect | Correct | No | No |
| Incorrect | Incorrect | No | No |
Each score is the proportion of the evaluated words that meet its criterion. A comparison needs a defined set of scored words and a correspondence between predicted and reference words, since the attachment is judged for a particular word. The scores describe syntactic attachment under that evaluation. By themselves they give no estimate of language identification, spelling coverage, or the quality of frame and pragmatic interpretation.
An annotated training split also provides the material for building a Latin-script lexicon with langseg latin-lexicon. That lexicon and the parser model serve different stages, even when their data come from the same split. For Zhuang, the description of word boundaries and word classes matters for preparing token and tag annotations. The description of grammatical relations matters for choosing heads and labels consistently across the reference trees.
Dependencies of frame and pragmatics processing
Mova's frame, pragmatics, and world processing reads parsed English trees. For Zhuang, the missing parse leaves this processing without a Zhuang dependency tree to read. Even with a za label, a span with Parse=None supplies neither heads nor dependency relations.
The language label answers a question about the span as a whole. A dependency parse would supply a structural analysis of its words. A frame or pragmatic interpretation would then require processing that can use that structure for the language in question. Producing Zhuang trees would supply the missing syntactic input. The current processing in prag and world reads English trees, so a Zhuang parser baseline alone would establish coverage only at the parsing stage.
How Mova handles Zhuang grammar claims in Squid
Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable claims, including rules, closed lists, and statistics, enter a queue for a place in Mova's code. A queued claim awaits implementation. None of the chapter's rules is implemented for Zhuang. The first points for implementation are those needed by a tokenizer, a tagger, and a UD treebank baseline.
At level one, tools/langseg can identify a language span only where it has the relevant script or lexical support. Its Latin-script language inventory covers English and French, and scripts outside its supported inventory receive other. At level two, tools/mova-parse uses each span's own language model. No model exists for za. For a za span, the # parse comment reports the missing model, the annotation fields are _, and MISC records Parse=None.
Mova holds no Zhuang treebank and has measured no Zhuang baseline. The package calls for training with en train after en xpos-fill and measuring UAS and LAS with en parse-eval on the development split. Frame, pragmatics, and world processing read English trees. At present they have no parsed Zhuang trees to read.
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/za/29-mova-tools-and-coverage/