Mova0.6 pre-release

the flag of India 39. Punjabi in Mova

Mova handles multilingual text in stages. It assigns language labels to sentences and spans, then looks for a parser model for each span. For Punjabi (pa), script coverage limits language identification, and the package has neither a parser model nor an annotated corpus. These gaps affect different parts of the output, from the language label to the availability of frames and pragmatic analysis.

Language and script coverage in multilingual segmentation

Level 1, tools/langseg, assigns a language label to each sentence and span. A sentence can contain spans with different labels. The span label matters for parsing because level 2 selects its model separately for each span.

In Latin script, tools/langseg distinguishes English and French using its Latin table, a lexicon for each language and a character model based on four-character sequences. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside the supported set receive the label other. Gurmukhi and Shahmukhi both fall into that category. The label therefore gives no Punjabi identification, and two passages with the same other label can use different scripts.

FormRomanizationGlossTranslationScript and segmentation
ਘਰ (constructed)gharhouse‘house’Gurmukhi, other
گھر (constructed)gharhouse‘house’Shahmukhi, other

The two spellings illustrate the same Punjabi word. Their segmentation labels follow from script coverage. In a mixed text, a neighboring English or French span can receive its own language label, while the Punjabi-script material falls under other. A sentence-level label alone gives no account of which model is selected for each part of that sentence.

Writing Punjabi in Latin script brings it into the script used for English and French identification, but Punjabi has no supported Latin-script identity in the segmenter. Adding a Latin-script language through the existing route requires a lexicon and a Lang code. The langseg latin-lexicon command builds the lexicon from an open Universal Dependencies (UD) training split. This extension concerns language identification. A parser model provides the separate capability of analyzing the identified spans.

Punjabi model availability and Parse=None output

At level 2, tools/mova-parse looks for the model file belonging to the language of each span. Punjabi has no level-2 model. When a language has no model file, the output reports the missing model in the # parse comment. For tokens reported as Punjabi, Parse=None appears in MISC. This describes the absence of analysis for those tokens, separately from the other label that can arise during script-based segmentation.

Output fieldValue for a token without a modelInformation left unset
LEMMA_Dictionary form
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Morphological features
HEAD_Syntactic head
DEPREL_Dependency relation
MISCParse=NoneExplicit status of the parse

The underscores are missing values. An underscore in FEATS leaves the token’s morphology undetermined, and underscores in HEAD and DEPREL leave both its attachment and the type of dependency undetermined. A row can therefore carry visible text and a parse status while supplying no evidence for assertions about its lemma, word class, inflection or syntactic role.

The output convention also matters for word boundaries. A token row carrying Parse=None supplies no evidence that a Punjabi tokenizer determined its boundaries. The current package provides no Punjabi tokenization, lemmatization, tagging or dependency parsing. A successfully parsed span elsewhere in the same text supplies an analysis for that span only.

Annotated data and the unmeasured UD baseline

Mova holds no annotated Punjabi corpus. There is no Punjabi training split in the package for fitting the parser and tagger, and there is no measured Punjabi treebank baseline. The package specification, What every language gets, calls for the same baseline for each language.

Mova’s parser and tagger are in the en crate. The baseline workflow applies en xpos-fill before running en train on the language’s UD training split. It uses en parse-eval to measure labeled and unlabeled attachment on the development split. The language of the training data determines which language the model serves. Existing models are en.bin for English and fr.bin for French.

MeasureWhat a correct prediction requiresPunjabi baseline
Unlabeled attachment score (UAS)The head matches the annotated head.Unmeasured
Labeled attachment score (LAS)Both the head and the dependency relation match the annotation.Unmeasured

The missing baseline leaves both scores unknown. Parse=None records a missing model at run time and supplies no attachment predictions to compare against reference annotations. The grammar manual and its constructed examples describe forms and constructions. Measuring a baseline requires annotated training and development data in the format used for the UD workflow.

Segmentation and attachment scores answer different questions. The segmenter determines the language label used to select a model. The baseline measures the dependency predictions of a model trained for a particular language. A Punjabi model evaluated on a Punjabi development split would supply attachment measurements for that split. Identifying Punjabi spans in multilingual input would still depend on the segmenter’s coverage.

Frames and pragmatics for text without a Punjabi parse

Mova’s frame, pragmatic and world components, prag and world, read English trees. A Punjabi span with Parse=None supplies no syntactic tree to those components. Its text and language label cannot provide the head and relation information that would be available in a parsed tree.

Consider what the empty fields mean for a reader inspecting the output. HEAD and DEPREL give no attachment from which to identify a predicate’s dependents. LEMMA and UPOS give no lexical or category analysis of the forms in those rows. The absence of a frame or pragmatic analysis in this situation reflects missing input to the downstream components. It says nothing about whether the original utterance expresses a request, introduces a participant or conveys an inference.

The same limitation applies within a mixed-language sentence. Any English tree available to the downstream components describes the English material that was parsed. Its availability does not create a syntactic analysis for a neighboring Punjabi span. Parsing Punjabi would provide a prerequisite for downstream analysis. The current input described for these components is English trees.

Squid claims and the implementation queue

Squid reads the grammar manual and turns each grammatical point into a claim. Claims that can be formalized enter the implementation queue. These include rules with specified conditions and exceptions, closed lists with determinate membership, and statistics. A queued claim has the status of a specification awaiting implementation. It adds no parser behavior by itself.

The first Punjabi claims to address are those needed for tokenization, tagging and a UD treebank baseline. At the word-boundary level, the relevant points say where the written text divides into tokens under the conditions described in the manual. At the tagging level, the relevant points identify word classes and the conditions for their morphological features. For the treebank baseline, the relevant points concern how constructions are represented through syntactic heads and dependency relations. These priorities follow the analyses that must be available before their results can be inspected or measured.

A claim and an annotated occurrence serve different purposes. A claim states a generalization, including any conditions under which it applies. A treebank records an analysis for words and constructions in actual sentences. A rule in the queue supplies no annotated training split or development split, and the queue supplies no evaluation result. Punjabi has no measured baseline, and the grammatical rules described in the manual are still awaiting implementation for Punjabi.

How Mova handles Punjabi today

Mova can identify spans in a language where tools/langseg covers its script or lexicon. The supported coverage includes English and French in Latin script, Hebrew-script varieties, and scholarly transliteration of Hebrew or Aramaic. Other scripts receive other. Language identification is the first level of tools/mova-parse. The second level uses the model file for each span’s language. Punjabi has no such model, so its tokens carry Parse=None in MISC and _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL. The missing model is reported in the # parse comment.

The package contains no annotated Punjabi corpus, so it has no measured UD baseline. The common baseline uses en xpos-fill and en train on the training data and en parse-eval to measure UAS and LAS on the development split. For Punjabi, the absence of an analyzed tree also leaves prag and world without input from the Punjabi text.

Squid records grammatical claims from the manual and queues the formalizable ones. The current Punjabi implementation stops before language-specific tokenization, tagging, lemmatization and parsing. The first claims for implementation are those needed by a tokenizer, a tagger 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/pa/39-mova-tools/