26. Central Vietnamese in Mova
Mova treats language identification and grammatical parsing as separate stages. For Central Vietnamese, the edition code is vi-x-central. Mova currently has neither an annotated treebank nor a parser model for this edition. This chapter explains how that affects parser output, what the language package asks to measure, and which parts of grammatical analysis depend on a parsed tree.
Language segmentation and the requirements for adding a Latin-script language
Level one assigns a language to each sentence and span. The span matters because a sentence can contain material in more than one language. The span label is the input to model selection at level two, so parsing a mixed sentence depends on identifying the language of each span.
For Latin script, tools/langseg distinguishes English and French using its Latin table, a lexicon for each language, and a character four-gram model. A four-gram is a sequence of four characters. The segmenter also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic written in scholarly transliteration. Scripts outside the ones it handles receive the classification other.
Adding a Latin-script language requires a lexicon and a Lang code. The langseg latin-lexicon command builds the lexicon from open Universal Dependencies (UD) training splits. In this workflow, the lexicon supplies evidence for the language label, and the code identifies the language. A Latin-script writing system by itself gives the segmenter no basis for distinguishing Central Vietnamese from other Latin-script languages. Its ability to identify a Central Vietnamese span depends on what it knows about the script or lexicon.
The language label also determines which model the parser requests. For the Central Vietnamese edition that label is vi-x-central. The existence of the edition code establishes the identifier to use in the model lookup. It supplies no evidence about whether the segmenter can assign that label to a given stretch of text.
Level-two model lookup and the Parse=None output
tools/mova-parse uses the language of each span to look up the model at <code>.bin, with the span’s language code in both positions. The same lookup applies to each span of a multilingual sentence. When a language has no model file, its absence is reported in the # parse comment and the affected rows carry the values below.
| Field | Value when the span’s language has no model | What the field would describe if annotated |
|---|---|---|
| LEMMA | _ | The lexical base form |
| UPOS | _ | The universal part-of-speech tag |
| XPOS | _ | The language-specific part-of-speech tag |
| FEATS | _ | The grammatical features |
| HEAD | _ | The syntactic head, or 0 for the root |
| DEPREL | _ | The relation to the head, or root for the root |
| MISC | Parse=None | In this case, the status of the parse |
A row with Parse=None carries no assignment in any of the six annotation fields shown above. In particular, _ in HEAD leaves the syntactic head unspecified. A root assignment would require a HEAD value of 0 and a DEPREL value of root. Likewise, an underscore in FEATS in this output gives no basis for deciding which grammatical features apply to the form.
The comment and the row marker describe model availability at two different levels. The # parse comment reports the language for which a model is missing. Parse=None identifies the rows affected by that absence. The marker applies to a span for which the multilingual parser has a language label and lacks the corresponding model. Its interpretation therefore depends on the result of level one.
Treebank and model availability for Central Vietnamese
Mova holds no annotated treebank for vi-x-central, and there is no level-two model file for that edition. No treebank baseline has been measured. The treebank, model and baseline are distinct items. A treebank supplies reference annotations. A model supplies predicted annotations when the parser is run. A baseline records how well the predictions match the reference on evaluation data.
A Central Vietnamese treebank would provide examples of the distinctions that the parser is expected to learn. The annotation would specify the units that receive rows, their lemmas and tags, and the heads and relations that organize those units into trees. A parser model would then use learned patterns to assign those annotations to new text. The grammar manual describes patterns that can inform those decisions. The training and evaluation procedure requires those decisions to be recorded on individual sentences.
Consider a short question with a regional interrogative form.
| Form | Gloss |
|---|---|
| Nhà | house |
| ở | be.located |
| mô | where |
‘Where is the house?’ (constructed)
In an annotated corpus, the question would need explicit token boundaries, tags, and dependency heads and relations. Its translation gives the reader the sense of the utterance. It does not supply those annotations or show how the multilingual parser would label its span. The example is illustrative and supplies no training or evaluation data.
The requested training and evaluation baseline
What every language gets asks for the same baseline for every language. The split convention is train → dev. The UD training split supplies the examples for fitting the parser and tagger. The development split supplies the reference trees for evaluation. Mova’s parser and tagger are in the en crate.
| Stage | Command | Role in the baseline |
|---|---|---|
| Prepare the training data | en xpos-fill | Prepare the UD training split before fitting |
| Fit the model | en train | Train the tree parser and tagger on the prepared training split |
| Evaluate the parser | en parse-eval | Measure UAS and LAS on the development split |
Unlabeled attachment score (UAS) measures the proportion of scored tokens assigned the reference head. Labeled attachment score (LAS) measures the proportion assigned both the reference head and the reference dependency relation. For a given scored token, the conditions are as follows.
| Predicted head | Predicted relation | Counts toward UAS | Counts toward LAS |
|---|---|---|---|
| Matches | Matches | Yes | Yes |
| Matches | Differs | Yes | No |
| Differs | Matches | No | No |
| Differs | Differs | No | No |
These scores concern dependency attachment. UAS records whether the parser found the correct head. LAS also tests whether it identified the relation correctly. For a subject attached to the correct predicate, an incorrect relation label still loses labeled attachment credit. If the predicted head differs from the reference, the relation label alone earns neither kind of attachment credit.
For Central Vietnamese, the requested measurement awaits annotated training and development data and a model trained on the training data. The current absence of a baseline means there is no UAS or LAS result to report for the edition. A run that produces Parse=None supplies no predicted attachments to compare with a reference tree.
Dependencies of frames and pragmatics on parsed trees
Mova’s components for frames, pragmatics and the world read English trees. The tree supplies syntactic structure for those components to work from. For instance, a head and its dependency relations give an analysis of how a predicate connects to its arguments. Frame analysis can use that structure to consider who participates in the situation the predicate describes. The roles expressed in a frame belong to a different level of analysis from the syntactic relations in the tree.
For Central Vietnamese, language identification alone leaves this dependency unmet. A language label says which model should be used. It supplies no predicate, subject or other grammatical relation for the downstream analysis to read. When HEAD and DEPREL are _ because the model is missing, there is no tree for frames, pragmatics or the world component to consume.
Parsing a language is a prerequisite for giving these components trees to read. Their current input is English trees. The existence of a Central Vietnamese tree in the future would establish the prerequisite and would still leave the question of how the components interpret that language’s trees. The train → dev baseline measures dependency attachments, so its scores would provide evidence about that prerequisite.
Squid claims, queued rules and implementation status
Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable claims enter its queue for implementation in Mova. The kinds of claims identified for the queue are rules, closed lists and statistics. A rule needs the conditions under which it applies and any exceptions. A closed list needs its full membership within the stated conditions. A statistic needs a defined measure and a body of data to which it refers.
A queued claim is a proposed piece of work. Its presence establishes that Squid has recorded a grammatical point in a form that can wait for implementation. A parser’s behavior comes from what has actually been implemented and, where required, from the data and model available to it. For Central Vietnamese, the manual’s grammatical rules have yet to be implemented.
The first claims relevant to bringing up language tools are those that support a tokenizer, a tagger and a UD treebank baseline. Token boundaries establish which units will receive annotation. Tagging describes the categories assigned to those units. The treebank supplies reference head and relation assignments for training and evaluating the parser. These requirements connect the manual’s account of forms and constructions to the first measurements the language package requests.
How Mova handles Central Vietnamese today
tools/mova-parse assigns languages at level one through tools/langseg and looks up a language-specific parser model for each span at level two. Central Vietnamese spans can be identified only where the segmenter knows the relevant script or lexicon. There is no level-two model for vi-x-central. For spans carrying that language code, the # parse comment reports the missing model. LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL are _, and MISC contains Parse=None. Mova currently provides no Central Vietnamese tokenization, tagging, lemmatization or parsing.
The baseline requested in What every language gets uses en xpos-fill before en train, followed by en parse-eval to measure UAS and LAS on the train → dev split. Models exist for English (en.bin) and French (fr.bin). Mova holds no Central Vietnamese treebank, so no treebank baseline has been measured for vi-x-central.
Mova’s frames, pragmatics and world components, including prag and world, read English trees. They have no Central Vietnamese tree to consume. Squid records claims from the manual and queues those that can be formalized. The Central Vietnamese rules are still unimplemented. The first points for implementation are those needed by 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/vi/vi-x-central/26-mova-tools/