31. Min Nan Chinese in Mova
Mova serves Min Nan Chinese under the edition code nan. The edition has a reference grammar and text examples. Its tool status depends on three separate resources: language identification for spans of text, a model for dependency parsing, and an annotated treebank for measuring parsing accuracy.
The nan edition and its package state
The nan code identifies the Min Nan Chinese edition. Language identification uses its own inventory of supported languages, and parsing requires a trained model for the language assigned to a span. The existence of an edition therefore establishes the code under which its grammar is maintained. It does not establish which text the parser will recognize as nan.
| Resource | Status for nan |
|---|---|
| Reference grammar | Documents the language and supplies grammatical claims to Squid. |
| Corpus examples | Include romanized Min Nan text with place names, administrative terms and printed numbers. |
| Language identification | The stated Latin-script inventory covers English and French. |
| Level-2 model | Absent. |
| Annotated treebank held by Mova | Absent. |
| Dependency parsing baseline | Unmeasured. |
The corpus excerpts illustrate some of the written forms a Min Nan package needs to account for:
| Form | Gloss | Translation | Sentence ID |
|---|---|---|---|
Värmland Koān | Värmland county | ‘Värmland County’ | wiki:zh_min_nan:Storfors |
chi̍t-ê tē-hng siâⁿ-chhī | one-CL locality city | ‘a local urban area’ | wiki:zh_min_nan:Storfors |
chi̍t ê chng-thâu | one CL village | ‘a village’ | wiki:zh_min_nan:Brandon (Florida) |
CL marks a classifier. The forms are already in Latin script. They show a non-Minnan place name next to a Min Nan administrative noun, accent and tone marks in romanized text, and two ways of writing the boundary between the numeral and classifier. The sentence IDs locate the excerpts in the corpus. They carry no dependency annotation.
Script and language identification in langseg
Level 1 of tools/mova-parse uses tools/langseg to assign a language to each sentence and span. A sentence can contain material that calls for different span labels. At level 2 the label of the span determines which language model is looked up.
| Input covered by the identifier | Stated coverage |
|---|---|
| Latin script | Distinguishes English and French using a Latin table, a lexicon for each language and a character 4-gram model. |
| Hebrew script | Distinguishes varieties written in Hebrew script. |
| Scholarly transliteration | Recognizes Hebrew or Aramaic in scholarly transliteration. |
| Other scripts | Classified as other. |
The other rule applies to Chinese-character text. Romanized Min Nan uses Latin script, so its script alone gives the identifier no basis for a nan label. For instance, the sequence Värmland Koān contains a place name and a Min Nan noun within the same Latin-script fragment. The gloss identifies the two parts for the reader. It supplies no evidence about how the identifier actually labels that fragment.
Adding a further Latin-script language requires both a lexicon and a Lang code. langseg latin-lexicon draws lexicons from open Universal Dependencies (UD) training splits. This is the route described for extending identification to a further Latin-script language. A language label obtained through that route would still require a corresponding model at level 2.
Model lookup and Parse=None output
For a span with an assigned language code, level 2 looks up that language's model at <code>.bin. The code in the directory and the filename is the code assigned to the span. The available English and French models are en.bin and fr.bin. There is no level-2 model for nan.
When the model for a language is missing, tools/mova-parse reports the language in the # parse comment. The token records for that language have the following values.
| Field | Value | Annotation affected |
|---|---|---|
LEMMA | _ | Lemma |
UPOS | _ | Universal part-of-speech tag |
XPOS | _ | Language-specific part-of-speech tag |
FEATS | _ | Morphological features |
HEAD | _ | Syntactic head |
DEPREL | _ | Dependency relation |
MISC | Parse=None | Status of the parse |
The comment reports the lack of a model at the language level. Parse=None identifies the corresponding lack of annotation at the token-record level. In particular, the underscore in HEAD leaves the head unspecified. It is distinct from the head value of a token attached to the root of a dependency tree. A printed token record in this output also gives no evidence of a Min Nan tokenizer that has decided, for example, how the written numeral and classifier should be divided into syntactic words.
The missing-model regime applies to the language label passed to level 2. An occurrence of Parse=None by itself is therefore insufficient to identify a record as Min Nan Chinese. The language assigned at level 1 and the availability of its model answer different questions.
Treebank availability and baseline measurements
Mova holds no annotated Min Nan Chinese treebank. Its corpus excerpts supply text, including sentences with hyphenated forms and multiword place names. A UD treebank supplies the word divisions, tags, heads and relations used for training and evaluation. For example, the corpus attests both chi̍t-ê and chi̍t ê. Their spelling shows where a hyphen or a space occurs. Gold token boundaries and dependency relations would be separate annotations.
The package specification in What every language gets asks for the same baseline for every language. Mova's parser is the en crate. The baseline uses en xpos-fill before en train, which trains the tree parser and tagger on the language's UD training split. en parse-eval measures attachment on the development split with the model trained on the training split.
| Measure | What counts as a correct attachment |
|---|---|
| UAS, unlabeled attachment score | The predicted syntactic head matches the annotated head. |
| LAS, labeled attachment score | Both the predicted syntactic head and the predicted relation match the annotation. |
There are no UAS or LAS measurements for nan in this baseline. The required annotated data are absent. The missing-model output is an availability status and cannot serve as a score from an evaluation on a development split.
Dependencies for frames and pragmatics
Mova's frame, pragmatics and world processing, including prag and world, reads English trees. These consumers depend on syntactic structure. A span label records a language assignment, and the missing-model output records the absence of a parse. Neither supplies the heads and dependency relations consumed by tree-based processing.
The following excerpt illustrates the distinction between the information available to a reader and the structure available to Mova.
| Form | Gloss | Translation | Sentence ID |
|---|---|---|---|
103,483 lâng | 103,483 person | ‘103,483 people’ | wiki:zh_min_nan:Brandon (Florida) |
The gloss shows what the expression counts. The fragment comes from a population statement, but the printed number and noun alone provide no parsed relation to that statement's predicate. With the Min Nan model absent, Mova produces no nan tree for such a statement. The ability to produce a Min Nan tree would satisfy the prerequisite of having a parse. The stated tree readers currently read English.
Squid claims and implementation status
Squid reads the manual and turns every grammatical point into a claim. Formalizable claims, including rules, closed lists and statistics, wait in its queue for a place in Mova's code. This gives a grammatical description and its possible implementation distinct statuses. Documentation records the point, and queueing records that a claim awaits implementation. The code determines what happens on input.
For nan, the grammar claims are unimplemented. A corpus occurrence establishes that a form appears in the supplied text. A grammatical claim can describe that form and its conditions. An implemented operation would have to apply the relevant rule when processing input, and a measured parser baseline would require a run against annotated development data. The presence of a corpus example or a queued claim does not establish either of those later steps.
The first points needed for language tools are those required by a tokenizer, a tagger and a UD treebank baseline. The excerpts show concrete questions at that level. A tokenizer needs to handle the relationship between written spacing and syntactic words. A tagger needs categories for the units it receives. The baseline needs annotated sentences on which the parser and tagger can be trained and the resulting attachment predictions evaluated.
How Mova handles Min Nan Chinese end to end
tools/mova-parse first uses tools/langseg to label sentences and spans. For Latin script, the stated language coverage is English and French. The identifier also handles Hebrew-script varieties and scholarly transliteration of Hebrew or Aramaic. Scripts outside its coverage receive other. Recognition of Min Nan Chinese depends on the identifier knowing its script or lexicon. The described way to add another Latin-script language is to supply a lexicon and a Lang code, using langseg latin-lexicon with open UD training splits.
Level 2 uses the model corresponding to each span's language label. For nan, the model is absent. The parser reports the missing model in # parse, marks the token records with Parse=None in MISC, and leaves LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL as _. Mova performs no Min Nan Chinese tokenization, tagging, lemmatization or dependency parsing. Its frame, pragmatics and world processing reads English trees and has no Min Nan Chinese tree to read.
The common baseline in What every language gets uses a UD training split with en xpos-fill and en train, followed by development-set measurement of UAS and LAS with en parse-eval. Mova has no annotated Min Nan Chinese treebank and no measured baseline for it. Squid reads the manual as grammatical claims and queues the formalizable ones. The Min Nan Chinese rules await implementation, beginning with the points 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/zh/nan/31-mova-tools/