30. Literary Chinese in Mova
Literary Chinese has the language code lzh in Mova. The package specifies a parsing baseline, but Mova has neither a parser model nor a dependency treebank for lzh. This chapter describes what the multilingual pipeline can report, what its output fields mean, and what would have to be defined before Literary Chinese analysis could be measured.
The lzh package and script detection
The code lzh identifies Literary Chinese in the package and the manual. The corpus excerpts also carry Literary Chinese labels. These labels identify the language of known material. Automatic language identification has a different input and task. It assigns a language to a sentence or span from the text it receives.
Language identification is the first level of tools/mova-parse. The detector, tools/langseg, distinguishes English and French in Latin script, varieties written in Hebrew script, and Hebrew or Aramaic in scholarly transliteration. Its English and French distinction uses a Latin-script table, language-specific lexicons, and a character four-gram model. Scripts outside its supported sets fall under other. Han script therefore does not yield an lzh identification from the detector.
The Latin-script portion of a Literary Chinese passage may receive separate treatment under the detector’s Latin-script rules. The corpus example below places a university’s Latin-script name after a Han-script expression that introduces it. The name belongs to the passage, and its spelling alone gives no grounds for identifying the surrounding Han text as Literary Chinese.
| Form | Romanization | Gloss | Translation | Corpus sentence ID |
|---|---|---|---|---|
| 英字Caltech | yīng zì Caltech | English writing Caltech | “Caltech in English” | wiki:zh_classical:加州理工學院 |
Language identification establishes the language assignment used to select a parser model. It supplies no boundaries between Literary Chinese words. A span can contain several clauses, and a change of script can occur inside a single clause or naming expression.
The missing parser model and the Parse=None output
At the second level, tools/mova-parse uses the model file for the language assigned to each span. The package convention places a model in the models directory for its language code and gives the file that code with the .bin extension. Literary Chinese has no level-two parser model. When the model for a language is missing, the # parse comment reports the missing model, and the affected token records have the following values.
| Field | Value | Annotation left unset |
|---|---|---|
| LEMMA | _ | Lexical base form |
| UPOS | _ | Universal part-of-speech tag |
| XPOS | _ | Language-specific part-of-speech tag |
| FEATS | _ | Morphological feature bundle |
| HEAD | _ | Syntactic head or root assignment |
| DEPREL | _ | Dependency relation |
| MISC | Parse=None | The record carries an explicit missing-parse marker |
Parse=None applies to the token record. The # parse comment records the missing-model condition. The two indicators describe why the linguistic analysis fields are empty. For example, an underscore in FEATS gives no evidence about whether a particular word has a feature, and an underscore in HEAD gives no evidence about whether the word heads the sentence.
The presence of token records also has to be read in light of the missing analysis. Such records do not establish that the displayed units match Literary Chinese words. In a passage already identified as Literary Chinese, a reader can use the surface material independently of the missing annotations. Counting submitted or emitted units as linguistic words, extracting lemmas, and interpreting dependencies would each require the relevant analysis.
The package baseline and the absence of lzh treebank measurements
The shared package specification in What every language gets calls for a Universal Dependencies baseline for each language. Mova’s parser and tagger are implemented in the en crate. The baseline uses a language’s UD training split for training and its development split for evaluation. The commands have these roles.
| Command | Role in the baseline |
|---|---|
en xpos-fill | Prepares the language-specific part-of-speech field before training. |
en train | Trains the tree parser and tagger on the UD training split. |
en parse-eval | Measures unlabeled and labeled attachment on the development split using the trained model. |
Unlabeled attachment score, or UAS, measures the share of evaluated words whose syntactic head agrees with the gold tree. Labeled attachment score, or LAS, requires agreement on both the head and its dependency relation. If the head is right and the relation is wrong, the attachment counts toward UAS only. Both scores require gold dependencies for the evaluation split and parser predictions to compare with them.
Mova has models for English and French, en.bin and fr.bin. It holds no annotated Literary Chinese treebank and has measured no lzh treebank baseline. There are consequently no lzh UAS or LAS values to report. A corpus sentence ID identifies the text of an example. It carries no gold word boundaries, part-of-speech tags, or dependencies by virtue of identifying that text. The supplied excerpts can illustrate constructions and help define annotation decisions. A measured baseline requires annotated training and development material.
An attachment score would answer a question about predicted dependencies under the conditions of the evaluation. Script detection, word segmentation, and the resolution of references in discourse are distinct tasks. The common specification supplies an evaluation procedure for attachment. It supplies no measurements for those other tasks.
Dependencies of frames and pragmatics
Mova’s frame, pragmatic, and world components read English trees. A Literary Chinese span with empty HEAD and DEPREL fields supplies no tree for them to read. A Literary Chinese parse is a prerequisite for any processing that relies on such a tree. Compatibility with the components that currently read English trees would remain a separate question once an lzh model existed.
A dependency tree represents grammatical relations among the words of the sentence. A frame analysis needs to identify what situation is described and what participants belong to it. Pragmatic interpretation can also depend on the surrounding text. In the following example, the verb has an overt object. The reader recovers the identity of that object and the identity of the person who went from context.
| Form | Romanization | Gloss | Translation | Corpus sentence ID |
|---|---|---|---|---|
| 亦往之 | yì wǎng zhī | also go there | “[She] also went there.” | wiki:zh_classical:薛濤 |
The preceding clause names Chengdu as the place where Xue Tao’s father held office. In this reading, 之 is a pronoun referring to that place, and the unexpressed subject is Xue Tao, the subject of the article. The translation uses “there” for the place reference and brackets for the supplied subject. A syntactic analysis can distinguish the overt pronoun from the absence of a subject. Recovering the city and the person involves relating the clause to its context.
The same distinction applies to figurative readings and speech acts. A clause may have a dependency analysis while its intended point depends on a quotation, an allusion, or an earlier turn in the discourse. The chapter’s grammatical examples illustrate such distinctions for readers. They provide no output from Mova’s frame or pragmatic processing of Literary Chinese.
Squid claims and the implementation queue
Squid reads the grammar manual. Every grammatical point becomes a claim, and formalizable rules, closed lists, and statistics enter the implementation queue. The queue records material that can be considered for implementation. A queued claim has yet to be implemented in Mova’s code.
A formalizable rule needs conditions that identify the cases it covers. These conditions matter when several uses share a written form. In the excerpts below, 之 follows a verb in one context and links a modifier to a nominal head in another. The relevant distinction depends on the local construction and, for the pronoun, on the reading in context.
| Form | Romanization | Gloss | Translation | Corpus sentence ID |
|---|---|---|---|---|
| 往之 | wǎng zhī | go there | “go there” | wiki:zh_classical:薛濤 |
| 閩語之方言 | mǐnyǔ zhī fāngyán | Min linking-particle dialect | “a dialect of Min” | wiki:zh_classical:閩南語 |
A claim about a linking use can specify the positions of the modifier and head, with scope limited to instances of that construction. The occurrence of the same graph after 往 in the first example requires its own analysis. A list of graphs alone would leave this distinction unresolved. The same principle applies to counts. A statistic needs a defined set of texts and a stated unit of counting, such as written occurrences of a character or annotated instances of a grammatical use.
Examples document the intended interpretation of a claim. Agreement between a claim and the examples that illustrate it gives no parser measurement. Training and evaluating a model requires data prepared for those purposes, while the claim queue records what can be expressed formally from the grammatical descriptions.
Tokenization, tagging and treebank priorities
The first work for lzh concerns the units that a tokenizer and tagger would handle and the conventions needed to annotate a UD treebank. Decisions about sentence and word boundaries affect what can receive a tag, a lemma, and a dependency relation. The corpus examples give concrete cases for defining those decisions.
Sentence and word boundaries
The written character sequence and the linguistic word sequence are distinct units. Literary Chinese texts can contain personal names, titles, dates, multi-character lexical items, and sequences of independent one-character words. Spaces generally offer no word-boundary evidence in the Han text. An annotation convention has to specify where to split a sequence and how to treat punctuation and embedded names written in another script. It also needs a rule for deciding which punctuation marks end sentences and which marks belong inside them.
The date expression below contains a sequence of digits giving a year, followed by the expressions for the month and day. The gloss groups each number with its unit to make the interpretation visible. A treebank would still need to specify how the numeral and unit expressions map to words in its annotation.
| Form | Romanization | Gloss | Translation | Corpus sentence ID |
|---|---|---|---|---|
| 一九六一年七月一日 | yī jiǔ liù yī nián qī yuè yī rì | 1961 year seven month one day | “1 July 1961” | wiki:zh_classical:威爾斯王妃戴安娜 |
Contextual tags and lemmas
A tag should represent the use of a word in its construction. The opening of the fan entry illustrates two uses of the graph 扇 close together. The first names the object being defined. The second is a verb inside the expression that describes the object. The romanizations give conventional modern readings for the two uses.
| Form | Romanization | Gloss | Translation | Corpus sentence ID |
|---|---|---|---|---|
| 扇者 | shàn zhě | fan topic-marker | “as for a fan” | wiki:zh_classical:扇 |
| 扇風 | shān fēng | fan wind | “stir the air” | wiki:zh_classical:扇 |
The tokenization and tagging conventions have to work together. A tagger could distinguish the nominal and verbal uses only if the relevant units are available for tagging. Lemmatization also needs a convention for how to represent words whose forms coincide in writing and when to normalize graphic variants. The spelling in the text and the lemma assigned in annotation serve different purposes. The former records the source form, and the latter identifies the lexical entry under the chosen convention.
Gold dependencies and evaluation splits
Treebank annotation needs to specify the head and relation of each annotated word, including the analysis of particles, nominal predicates, linked clauses, and proper names. It needs consistent treatment of unexpressed arguments so that a translator’s supplied subject is kept distinct from the overt words available for dependency annotation. The same segmentation and annotation conventions must apply across the training and development splits for their results to be comparable.
The training split provides examples for the tagger and parser. The development split provides the gold analysis against which their predictions can be assessed. The supplied Literary Chinese examples come from encyclopedia entries, which give instances of definitions, biographies, and technical terminology. The texts represented in an eventual development split would determine the scope of its attachment scores. Coverage of other periods or genres would require evidence from material representing them.
How Mova handles Literary Chinese today
tools/mova-parse first uses tools/langseg to assign languages to sentences and spans. tools/langseg distinguishes English and French in Latin script, varieties in Hebrew script, and Hebrew or Aramaic in scholarly transliteration. Han script falls under other, so script detection does not identify Literary Chinese as lzh.
The second level selects a model file for the language of each span. No level-two parser model exists for lzh. When a model is missing, the # parse comment reports it. The token records have _ in LEMMA, UPOS, XPOS, FEATS, HEAD, and DEPREL, with Parse=None in MISC. Mova currently supplies no Literary Chinese tokenization, tagging, lemmatization, or dependency parsing.
What every language gets calls for the same baseline for each language. After en xpos-fill, en train trains the parser and tagger on the UD training split, and en parse-eval measures UAS and LAS on the development split. English and French have en.bin and fr.bin, respectively. Mova holds no annotated lzh treebank, so there is no measured Literary Chinese treebank baseline.
Mova’s frame, pragmatic, and world components read English trees. Without a Literary Chinese parse, those components have no Literary Chinese tree to read. Squid turns the grammatical points in the manual into claims and queues the formalizable ones. The chapter’s Literary Chinese rules remain unimplemented. The first implementation priorities are 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/lzh/30-mova/