Mova0.6 pre-release

the flag of Pakistan 33. Western Punjabi in Mova

Western Punjabi has the language code pnb in Mova. Its corpus examples provide Shahmukhi text, including passages that mix scripts. The package has no annotated treebank or parser model, so the available text illustrates the input and there is no measured parsing baseline.

The pnb package, treebank and measurement status

Mova’s language package specification, What every language gets, calls for a baseline trained and evaluated on Universal Dependencies (UD) data. A treebank provides the reference annotation for that work, including token boundaries, lemmas, part-of-speech tags, morphological features and dependency trees. The training split supplies examples for learning those analyses. The development split supplies separate examples on which to measure the resulting parser.

ItemStatus for pnb
Corpus textShahmukhi examples are available, including mixed-script Wikipedia material.
Annotated UD treebankAbsent from Mova.
Level-2 parser modelAbsent.
Unlabeled attachment score (UAS)Unmeasured for a pnb treebank baseline.
Labeled attachment score (LAS)Unmeasured for a pnb treebank baseline.

UAS measures whether a parser assigns the reference head to each scored token. LAS requires both the reference head and the reference dependency relation. A page title, a date or a passage of prose supplies text for annotation. It supplies a reference for attachment scoring only once the head and relation have been annotated. The absence of a baseline therefore leaves both attachment scores unknown.

Language segmentation and Shahmukhi

Level 1 of tools/mova-parse uses tools/langseg to assign a language to each sentence and span. Its Latin-script identification distinguishes English and French using a Latin table, a lexicon for each language and a character four-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside its supported set fall under other. Shahmukhi falls into that category, so a span can contain Western Punjabi without receiving the pnb code.

Western Punjabi input can contain Shahmukhi alongside Latin-script names, numerals and punctuation. The script boundary in “سائنسی ناں :; Eulemur rubriventer” falls between a Western Punjabi label and a Latin-script scientific name. The Latin script of the name supplies script evidence for that portion alone. Shahmukhi remains outside the languages that the segmenter can identify, and the material given here does not establish which label the segmenter would assign to the scientific name.

Corpus fragmentRomanizationGlossTranslationSentence ID
“سائنسی ناں”sāinsī nā̃scientific name‘scientific name’wiki:pnb:لال ٹڈ والا لیمر
“Eulemur rubriventer”—genus species-epithet‘red-bellied lemur’wiki:pnb:لال ٹڈ والا لیمر

These are fragments of the corpus line. The romanization represents the Shahmukhi reading and has no role in the segmenter’s treatment of the original text.

Model lookup and the unannotated parse output

Level 2 looks up the model for each span using the code assigned at level 1. The lookup pattern is <code>.bin, with the span’s language code filling both positions. Language identification and model availability are separate conditions. Correct identification would supply a code for the lookup, and parsing would still require a model for that code. There is no level-2 model for pnb.

For a language with a missing model, tools/mova-parse reports the absence in the # parse comment. The token rows carry the following values.

CoNLL-U fieldValueAnnotation absent
LEMMA_Lexical base form
UPOS_Universal part-of-speech tag
XPOS_Language-specific part-of-speech tag
FEATS_Morphological features
HEAD_Syntactic head
DEPREL_Dependency relation to the head
MISCParse=NoneParse for the token

Parse=None records the missing parse. A row carrying that marker supplies no evidence that Mova has determined a Western Punjabi word boundary or analyzed the form. In particular, an underscore in HEAD or DEPREL gives no basis for selecting a root or recovering any other dependency.

Frames, pragmatics and world processing

Mova’s frame, pragmatic and world processing currently reads English trees. The prag and world components therefore have no Western Punjabi tree to read. A corpus fragment such as a scientific name still has meaning for a reader, but its presence alongside a Shahmukhi label supplies neither a dependency tree nor a frame. The current output likewise supplies no pragmatic or world analysis for Western Punjabi.

A Western Punjabi parse is the prerequisite stated for downstream processing of the language. The existing downstream components are described as reading English trees, so model availability alone gives no confirmed Western Punjabi support for frames, pragmatics or world processing.

Squid claims and the implementation queue

Squid reads the grammar manual and turns each grammatical point into a claim. Claims that can be formalized, including rules, closed lists and statistics, enter Squid’s queue to await a place in Mova’s code. A queued claim records a point available for implementation. Its presence in the queue gives no evidence of executable behavior or of a measured result.

For Western Punjabi, an observation about written forms can guide a decision about token boundaries. A description of a word class can guide the assignment of tags and features. A syntactic rule can guide the choice of a head or a dependency relation. Each becomes testable as parser behavior once there is an implementation and reference annotation against which to check it. The unannotated corpus, the claims from the manual and the trained model with its evaluation represent different kinds of evidence. The first two are available for describing the language and informing annotation, while the model and evaluation are absent for pnb.

Tokenization, tagging and requirements for a UD baseline

The corpus shows what an annotation baseline would have to handle. A title may contain an adjective and noun written as separate words and a following modifier written against the preceding noun. A postposition may be separated by a space, and a visible word may contain a directionality mark. Dates can combine digits, a month name and a year suffix. The examples below give the written fragments and their readings. A hyphen in a gloss shows the analysis of a form, including where the source has no space.

Corpus fragmentRomanizationGlossTranslationSentence ID
“نیلیاں اکھاںوالا”nīlīā̃ akkhā̃-vālāblue.F.PL eye.PL-having‘blue-eyed’wiki:pnb:نیلیاں اکھاںوالا کالا لیمر
“جزیرہ مڈغاسکر وچ”jazīrā maḍgāskar vicisland Madagascar in‘on the island of Madagascar’wiki:pnb:وریسیا ربرا
“تو‏ں”tō̃from‘from’wiki:pnb:رتن ناتھ سرشار
“3 جنوری 1836ء”3 janvarī 18363 January 1836.CE‘3 January 1836’wiki:pnb:منشی نڡل کشور
“اک لیمر اے”ikk līmar aione lemur COP.PRS.SG‘is a lemur’wiki:pnb:وریسیا ربرا

In the first fragment, the written اکھاںوالا contains the plural noun ‘eyes’ and the element meaning ‘having’. Tokenization guidelines need to specify how to represent those units when the source joins them. In the third fragment, a right-to-left mark occurs inside the spelling of a single postposition. The guidelines need to account for such characters when mapping from source text to token boundaries. In the date, the year marker is attached to the digits, so the treatment of that combination also needs a consistent convention. Mixed-script labels and names require decisions about token boundaries in addition to any language labels assigned to their spans.

Tagging and lemmatization require reference decisions at the resulting word boundaries. The plural form meaning ‘eyes’ needs a lemma and an analysis of number, the form meaning ‘in’ needs its adpositional analysis, and the singular present copula needs its own annotation. The reference tree then assigns heads and relations in context. For instance, the fragment meaning ‘is a lemur’ comes from a clause in which a species name precedes the nominal predicate. The full clause provides the context for annotating the subject, the predicate and the copula.

The Mova baseline uses an annotated UD training split for the tagger and tree parser and an annotated development split for evaluation. After en xpos-fill, en train trains the tagger and parser on the training split. en parse-eval measures UAS and LAS on the development split. This baseline would test whether the learned analyses agree with the reference trees. Locating Shahmukhi spans in multilingual text is a separate requirement for running the trained model through the multilingual entry point.

How Mova handles Western Punjabi from input to output

tools/mova-parse first uses tools/langseg to label sentences and spans. The segmenter distinguishes English and French in Latin script, Hebrew-script varieties, and Hebrew or Aramaic in scholarly transliteration. It uses other for the remaining scripts, including Shahmukhi. Consequently, the Shahmukhi script of a span yields no pnb identification.

At level 2, tools/mova-parse looks for each span’s language model at <code>.bin. For a language with an absent model, it reports the absence in the # parse comment. Western Punjabi has no level-2 model. Its tokens are left with _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL and Parse=None in MISC. Western Punjabi tokenization, tagging, lemmatization and dependency parsing are unavailable. Mova’s frame, pragmatic and world processing reads English trees, leaving prag and world without a Western Punjabi parse to read.

The baseline specified in What every language gets uses en xpos-fill followed by en train on the UD training split, with en parse-eval measuring UAS and LAS on the development split. Models exist for English (en.bin) and French (fr.bin). Mova holds no annotated Western Punjabi treebank, so no treebank baseline is measured for pnb.

Squid reads the manual as claims and queues the formalizable points for implementation. The Western Punjabi rules described here are unimplemented. The first points needed for language support are those that define tokenization, tagging and a UD treebank baseline.

Sources for this chapter

This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/inc-x-punjabi/pnb/33-mova-tools/