29. Hakka in Mova
Mova has Hakka text in its corpora and grammar coverage for the hak edition. It has neither a Hakka parser model nor a Hakka treebank. This chapter describes how those gaps affect language identification, grammatical annotation, evaluation, and the analysis of meaning in context.
Hakka text and the limits of language segmentation
A Hakka document can use Chinese characters, Latin-script Hakka spelling, or both. The Hakka Wikipedia corpus also contains names, numerals, and quoted material within Hakka text. A document label can establish the language of the surrounding text while leaving individual spans to be identified. The script of a span is evidence for that decision, but Chinese characters are shared across languages and Latin letters are used in both Hakka romanization and other languages.
-
Form “客家語嘅版本”
Romanization “Hak-kâ-ngî ke pán-pún”
GlossHakka-language GEN version
Translation “the Hakka-language version” (wiki:hak:Thèu-Ya̍p) -
Form “Hildburghausen-khî”
GlossHildburghausen-district
Translation “the district of Hildburghausen” (wiki:hak:Hildburghausen-khî)
The first example shows the same phrase in two scripts. In the second, a place name and a Hakka element appear together in a hyphenated expression. A segmenter has to decide where language evidence changes, and a tokenizer has to decide where grammatical words begin and end. The hyphen is visible to both, but its presence alone settles neither decision.
Mova’s first level assigns language labels to sentences and spans. In Latin script, its current English–French distinction uses a Latin table, a lexicon for each language, and a character four-gram model. It also recognizes Hebrew-script varieties and Hebrew or Aramaic in scholarly transliteration. Scripts outside its supported distinctions receive other. In particular, Han script supplies no Hakka label through the current script distinctions. The English and French resources likewise supply no dedicated recognition of romanized Hakka. A Hakka label supplied by a corpus identifies the corpus material independently of what the segmenter can recognize in raw text.
Missing Hakka parser model and Parse=None output
At the second level, tools/mova-parse looks for the parser model corresponding to the language of each span. There is no level-2 model for hak. When the parser handles a span as Hakka, it reports the missing model in the # parse comment and marks the span’s output tokens as follows.
| Output column | Value for a token in the unparsed Hakka span |
|---|---|
LEMMA | _ |
UPOS | _ |
XPOS | _ |
FEATS | _ |
HEAD | _ |
DEPREL | _ |
MISC | Contains Parse=None |
The underscores leave the lemma, universal and language-specific part of speech, features, and dependency annotation unspecified. Parse=None records the unavailable parse explicitly. The presence of token rows in this output supplies no evidence that Hakka word boundaries have been established. The marker also depends on the language assigned to the span. It cannot serve as a general test for Hakka in input whose language has yet to be identified.
Treebank availability and the unmeasured UAS and LAS baseline
Mova’s Hakka Wikipedia material provides text and examples of written usage. Mova holds no annotated Hakka corpus that can supply Universal Dependencies training and development splits. The package therefore has no measured Hakka baseline for either unlabeled attachment score or labeled attachment score.
| Measure | What must agree with the reference annotation for an evaluated token | Hakka baseline |
|---|---|---|
| UAS, unlabeled attachment score | The predicted syntactic head | Unmeasured |
| LAS, labeled attachment score | The predicted syntactic head and dependency relation | Unmeasured |
These scores compare parser predictions with reference trees. An unmeasured score has no numerical value. In particular, the empty head and relation fields in a missing-model output cannot be counted as an evaluation on a development set.
The package baseline trains on a UD training split and evaluates on the development split. For a Hakka score to be interpretable, the evaluation would need to identify the text and orthographies represented in those splits and specify which word boundaries the parser receives. Evaluation on reference tokens addresses a different question from evaluation starting with raw text, where word boundary errors can also affect the dependencies. A baseline measured on one spelling or regional variety describes performance on the evaluation material used.
The tokenizer, tagger and parser baseline requirements
A Hakka baseline needs compatible definitions of the units that the tokenizer emits, the tagger labels, and the parser connects. The treebank must apply the same definitions to its reference annotation. Decisions about spaces and hyphens in romanized text must be made alongside decisions about word boundaries in character text. The output needs to retain the written forms, including tone marks where the spelling uses them, while supporting a consistent interpretation of the boundaries.
- Form “2-ngie̍t 24-ngit”
Glosstwo-month twenty-four-day
Translation “February 24” (wiki:hak:1955-ngièn)
In this date, each hyphen joins a numeral in digits to a romanized calendar unit. The gloss explains how to read the expression. The tokenization policy still has to decide how those written pieces map to syntactic words. The same punctuation also appears within romanized lexical forms and between the parts of a name such as “Hildburghausen-khî”. Treating each of these cases consistently requires a word boundary criterion beyond the presence of a hyphen.
The tagger needs annotated instances of each relevant part of speech and criteria for distinguishing uses in context. For example, the gloss GEN for the linker in “客家語嘅版本” describes its function in the phrase. The treebank must specify how to represent that use in a universal part-of-speech tag and a dependency relation. A gloss, a part-of-speech tag, and a relation answer different questions about the same item.
The parser needs reference heads and relations based on the treebank’s word units. For a phrase like the one above, annotation must decide which word heads the phrase and how the preceding modifier and its linker attach. Across clauses, it must apply consistent analyses to predicates, arguments, and other dependents. The development split then gives a common reference against which predicted attachments can be compared.
The package specifies the same baseline procedure across languages in What every language gets. en xpos-fill precedes training on the UD training split. en train trains the tagger and tree parser, and en parse-eval measures UAS and LAS on the development split. The available English and French models are en.bin and fr.bin.
Frames and pragmatics and their dependence on English trees
Mova’s frame, pragmatics, and world components take English trees as their input. A frame analysis needs evidence about predicates and the expressions associated with them. Pragmatic analysis can also depend on how a clause presents its content and how that content relates to the surrounding discourse. In the current Hakka output, there are no dependency heads or relations to supply that evidence.
- Form “he yit-chak phìn-ngièn”
Glossbe one-CL common-year
Translation “is a common year” (wiki:hak:1955-ngièn)
The phrase comes from a clause that classifies a year. A human reader can take the preceding context into account and understand what year is being classified. A language label and unannotated token rows encode neither the classification nor its participants. Parsing Hakka would provide the first missing syntactic input. The current downstream components read English trees, so the existence of a Hakka tree would by itself establish only the availability of Hakka syntax.
Grammar claims and the Squid implementation queue
Squid reads each grammatical point in the manual as a claim. Formalizable claims, including rules, closed lists, and statistics, wait in its implementation queue. A queued claim records a candidate for implementation. Its presence in the queue does not change the analysis of any input.
A rule claim needs the conditions under which it applies and any exceptions. A closed list needs an explicit scope and all members within that scope. A statistical claim needs a defined population or sample and a stated measure. These distinctions matter when the manual describes forms from different Hakka varieties or writing conventions. Evidence for a rule in one variety, for example, establishes the scope of that claim only as far as the evidence extends.
For Hakka, the first claims relevant to implementation are those required for tokenization, tagging, and the UD treebank baseline. A documented spelling pattern can inform a token boundary decision. A description of the uses of a linker can inform tag definitions and annotation criteria. A dependency analysis can inform the reference trees. Corpus examples show how these decisions apply to particular forms. A treebank extends that work by recording the decisions consistently across complete sentences and providing material for training and evaluation.
How Mova handles Hakka today
tools/mova-parse first uses tools/langseg to assign a language to each sentence and span. The segmenter distinguishes English and French in Latin script using its Latin table, language lexicons, and a character four-gram model. It also distinguishes Hebrew-script varieties and Hebrew or Aramaic in scholarly transliteration. Other scripts receive other. Adding a further Latin-script language requires a lexicon from open UD training splits and a Lang code. langseg latin-lexicon provides the lexicon step. Mova can identify a Hakka span only where the segmenter knows its script or lexicon.
At the second level, tools/mova-parse uses each span’s own language model. No model exists for hak. The # parse comment reports the missing model, and Hakka output tokens carry Parse=None in MISC, with _ in LEMMA, UPOS, XPOS, FEATS, HEAD, and DEPREL. Mova supplies no Hakka tokenization, tagging, lemmatization, or parsing.
Mova holds no Hakka treebank, so it has no measured Hakka UAS or LAS baseline. The en crate has models for English and French, en.bin and fr.bin. The baseline in What every language gets calls for en xpos-fill, training the tagger and tree parser with en train on the UD training split, and measuring UAS and LAS with en parse-eval on the development split. Mova’s frames, pragmatics, and world components read English trees. prag and world have no Hakka tree input.
Squid reads the chapter’s grammatical points as claims and queues those that can be formalized. The chapter’s rules have no Hakka implementation yet. The first points needed are those that support 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/zh/hak/29-mova-tools/