Mova0.6 pre-release

the flag of China 29. How Mova handles Gan Chinese

Mova has Gan Chinese text samples and a grammar manual for gan. A Gan model and an annotated Gan treebank are both absent from the package. The distinction matters at each stage of processing. A text can be known to come from a Gan edition while its Han-script spans receive the language label other, and a parser can report missing analysis without supplying a dependency tree.

Current Gan package status

The Gan material includes text from Gan Wikipedia. The corpus sentence IDs identify the source entries and can cover more than one excerpt from the same entry. These texts provide examples of written Gan, including passages with names, quotations and glosses in other languages. An annotated treebank would provide a different kind of evidence, with explicit word boundaries, tags and dependency relations against which parser output could be scored.

Package itemCurrent state for gan
Corpus textGan Wikipedia examples are available.
Grammar manualSquid reads grammatical points as claims.
Language identification for Han scriptHan-script spans fall under other.
Level-2 parser modelThe Gan model is absent.
Annotated treebankMova holds no Gan treebank.
Parser baselineNo Gan attachment scores have been measured.

The edition code gan identifies the language of the package. It can also be part of a corpus ID that records the origin of an excerpt. A label assigned to a span by the language identifier describes what that component recognized in the input. The corpus ID and the span label can therefore differ for the same text.

Han-script spans and language identification

At level 1, tools/langseg assigns a language label to each sentence and span. Its supported distinctions include English and French in Latin script, Hebrew-script varieties, and Hebrew or Aramaic in scholarly transliteration. For English and French, it uses a Latin table, a lexicon for each language and a character 4-gram model. Han script falls under other, as do scripts outside the supported set. A Han-script label of other leaves the identity of the language unresolved.

A further Latin-script language can be added with a lexicon and a Lang code. The langseg latin-lexicon command builds a lexicon from open Universal Dependencies (UD) training splits. That route extends the Latin-script distinctions. Han-script Gan lies outside its scope.

Gan Wikipedia gives examples of why the label for an entry and the labels for spans within it must be kept distinct. In the United Nations entry, a Han-script name appears alongside Latin-script renderings. The Korean form of the name in the Yi Gi entry appears in Hangul. The following short excerpts identify the forms in the supplied corpus. The romanization of the Han-script name is its Mandarin name reading, used here for identification.

Corpus IDFormRomanization or original Latin spellingGlossTranslation
wiki:gan:聯合國聯合國Liánhéguóunited.nations‘United Nations’
wiki:gan:聯合國Nations uniesNations uniesnations united‘United Nations’
wiki:gan:李芑이기I Gisurname given.name‘Yi Gi’

The two names for the United Nations refer to the same organization. The Han-script form belongs to the other category under the current script coverage, while the French spelling uses a script for which the identifier has language-specific resources. The table records the languages and forms in the corpus, and gives no measured tagging result for either excerpt.

Parser output without a Gan model

tools/mova-parse uses the level-1 labels to dispatch spans at level 2. Each span is parsed with the model for its assigned language when that model is available. A missing model is reported in the # parse comment. For a span without a model, the token rows carry the following field values.

FieldValueInformation left unspecified or recorded
LEMMA_Lemma
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Morphological features
HEAD_Syntactic head
DEPREL_Dependency relation to the head
MISCParse=NoneAbsence of a parse

Gan has no level-2 model, so its tokens in this output are unannotated. A row makes the text visible in the output, while the fields above record the absence of analysis. In particular, an underscore in HEAD records an unspecified head. It cannot be counted as a root assignment. Likewise, the existence of rows gives no evidence that Mova has performed Gan word segmentation.

The Han-script coverage and the missing model affect different parts of this process. The first limits what level 1 can identify as Gan. The second leaves Gan without a parser at level 2 even when the language is known from the source.

Treebank availability and baseline measurements

Mova holds no annotated Gan treebank. The Gan Wikipedia examples supply text for inspection, while the shared baseline requires annotated UD training and development splits. There is currently no train-to-development measurement for Gan.

Mova's own parser is in the en crate. For a language with the required data, en xpos-fill precedes training. en train uses the UD training split to train a tree parser and tagger. en parse-eval measures attachment on the development split. The shared package specification in What every language gets asks for the same baseline for every language. Mova has models for English (en.bin) and French (fr.bin).

MeasureWhat counts as a correct attachmentGan result
UAS, unlabeled attachment scoreThe predicted head agrees with the reference head.Unmeasured
LAS, labeled attachment scoreThe predicted head and dependency relation both agree with the reference annotation.Unmeasured

An unmeasured score represents the absence of an evaluation. A measured score would require predicted analyses and development annotations to compare. In Gan, the text samples, the inventory of grammatical claims and the empty dependency fields all describe aspects of the package, but none provides that comparison.

Frames, pragmatics and world data

Mova's frame, pragmatic and world processing reads English trees through prag and world. For another language, those stages have no tree to read until the language is parsed. Gan reaches that limit before those stages, since the parser supplies no Gan heads or dependency relations.

The language label, text of a span and provenance of an excerpt serve different purposes from a tree. A span label identifies the language as far as the identifier can determine it. Provenance identifies the text's source. A dependency analysis supplies the structural input required by the later stages. For example, the identity of the organization named by a corpus excerpt can be apparent to a reader even when the output has no Gan dependency tree for a frame or pragmatic analysis to read.

Squid claims and priorities for segmentation, tagging and parsing

Squid turns each grammatical point in the manual into a claim. Formalizable claims, including rules, closed lists and statistics, wait in Squid's queue for a place in Mova's code. A queued claim records a grammatical point for implementation. The queue entry itself supplies no parser behavior, annotation or measured result.

For a language without its own model, the first priorities are the points needed by a tokenizer, a tagger and a UD treebank baseline. These priorities are related because tags attach to words and dependencies connect annotated units. A boundary decision can therefore change both what receives a tag and what can attach to a head.

PriorityWhat the grammar can specify for future analysis
SegmentationWhere to place word boundaries in continuous Han text and how to treat punctuation, numbers, names and material in another script. A switch of script and a boundary between words answer different questions.
Tagging and lemmatizationWhich categories apply to the segmented forms, which contexts distinguish uses of a shared written form, and which forms share a lemma when the grammar supports that analysis.
UD annotation and parsingWhich words serve as heads in defined constructions and which dependency relations link them to their dependents. Consistent annotation of these choices would support training and development evaluation.

Claims about a written form should state the context in which the analysis applies. A statement about a particle, for example, becomes more useful for tagging and parsing when its conditions distinguish the contexts where the form takes that analysis. A corpus excerpt can illustrate those conditions. Its attestation alone gives neither a complete inventory nor an attachment score.

How Mova handles Gan Chinese today

tools/mova-parse assigns languages to sentences and spans through tools/langseg at level 1 and uses the assigned language's model at level 2. The identifier distinguishes English and French in Latin script, Hebrew-script varieties, and Hebrew or Aramaic in scholarly transliteration. Han script receives other, so this step does not identify Han-script Gan spans as gan.

Gan has no level-2 model. tools/mova-parse reports a missing model in the # parse comment and returns unannotated tokens for it. The fields LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL contain _, with Parse=None in MISC. Gan has no implemented tokenization, tagging, lemmatization or parsing in this workflow.

Mova holds no Gan treebank, so it has no measured Gan baseline. The baseline in What every language gets uses en xpos-fill before en train and measures UAS and LAS from training to development with en parse-eval. The available models are en.bin for English and fr.bin for French.

The frame, pragmatic and world processing in prag and world reads English trees. At present, those stages have no Gan tree as input. Squid reads the Gan manual as claims, and formalizable claims wait in its queue. The chapter's rules are still unimplemented. The first implementation priorities are the grammatical points needed for segmentation, tagging and a UD treebank baseline.

Sources for this chapter

This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/zh/gan/29-mova-tools/