Mova0.6 pre-release

Pali: the Buddhist flag 32. Pāli in Mova

Mova’s multilingual pipeline assigns languages to sentences and spans, then looks for a parser model for each span. Pāli (pi) has no level-2 model or annotated treebank in Mova, so the package has no measured parsing baseline. The Pāli corpus excerpts illustrate the inputs a package must handle, including more than one script and more than one language on a page.

Language segmentation and script coverage

At level 1, tools/langseg assigns a language to each sentence and span. For Latin script, the supported languages are English and French. The segmenter uses a Latin table, a lexicon for each language and a character 4-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside its coverage are assigned other. To add a Latin-script language, the package needs a Lang code and a lexicon built from an open UD training split with langseg latin-lexicon.

The edition code pi identifies the Pāli material in this manual and its corpus references. The language assigned to an individual span depends on the segmenter’s coverage. Romanized Pāli falls within the Latin script, whose language inventory currently lacks Pāli. Devanagari falls outside the supported scripts. The route for adding a Latin-script language therefore addresses Romanized Pāli. Devanagari Pāli would also require coverage for its script.

FormRomanization if neededGlossTranslationCorpus ID
cattāri saccānifour.N.NOM/ACC.PL truth.N.NOM/ACC.PL‘four truths’wiki:pi:बुद्धत्ता
बुद्धधम्मस्स अनुसारेणbuddhadhammassa anusāreṇaBuddha.teaching.GEN.SG accordance.INS.SG‘according to the Buddha’s teaching’wiki:pi:बुद्धो
बुद्धत्तं तिbuddhattaṃ tiBuddhahood QUOT‘“Buddhahood”’wiki:pi:बुद्धो
फ्लोरिडाphloriḍāFlorida‘Florida’wiki:pi:फ्लोरिडा

The first excerpt includes vowel length and a consonant written with a diacritic. The second and third show Pāli words in Devanagari. The Florida entry pairs the Devanagari name with its English spelling. Its page ID identifies the corpus entry, while the two forms give evidence about the scripts and language content of the line itself. These are corpus excerpts with manual glosses. Language spans and their eventual syntactic words are separate units: one span can contain several words, including a separate quotation marker such as ti.

Parser model availability and unannotated output

At level 2, tools/mova-parse looks up a model for the language assigned to each span. English and French have model files, en.bin and fr.bin. There is no model file for pi. When a span has a language assignment for which the model is missing, # parse reports the missing model and any token rows for that span have the following values.

FieldValue without a modelAnalysis left unavailable
LEMMA_Dictionary form
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Morphological features
HEAD_Syntactic head
DEPREL_Dependency relation
MISCParse=NoneStatus of the parse

The missing-model convention applies after language assignment. It cannot establish that an input span was recognized as Pāli, and the presence of a surface form in output cannot establish that a Pāli tokenizer chose its boundaries. Each _ in the table records an unavailable annotation. In particular, HEAD and DEPREL together leave the token’s position in the dependency tree unspecified.

A constructed clause illustrates the information missing from those fields. Form puriso gacchati. Gloss man.NOM.SG go.PRS.3SG. Translation ‘The man goes.’ (constructed) A UD analysis can give the noun the lemma purisa, tag it as NOUN, annotate nominative singular, and attach it to the verb as nsubj. The finite verb can serve as the root. This is a manual analysis of the example. With a missing Pāli model, the output provides none of those annotations.

Treebank requirements and baseline measurements

What every language gets calls for the same parser baseline for each language. Mova’s parser and tagger are in the en crate. The baseline uses a UD training split prepared with en xpos-fill, followed by en train. en parse-eval measures attachment on the development split. The train and development splits serve different purposes: the first supplies analyses for the model to learn, and the second supplies reference analyses for evaluating its predictions.

MeasureWhat the prediction must matchPāli in Mova
UAS, unlabeled attachment scoreThe reference syntactic headUnmeasured
LAS, labeled attachment scoreBoth the reference syntactic head and the reference dependency relationUnmeasured

Mova holds no annotated Pāli treebank, so neither score has been measured. A raw corpus excerpt supplies text. To serve in a UD split, that text needs sentence and word boundaries and reference annotations, including lemmas, parts of speech, morphological features where applicable, and dependency heads and relations. The training and development material need consistent choices about which units receive those annotations.

For example, cattāri saccāni shows neuter plural forms whose surface shapes allow nominative or accusative. The surrounding clause and the role of the phrase determine the case in an annotated occurrence. Word boundaries likewise need explicit decisions when editorial spacing, attached particles or sandhi leave more than one possible analysis. If a treebank includes both Romanized and Devanagari forms, its annotation conventions need to specify how to represent equivalent words and grammatical analyses across those scripts. These are decisions for the reference data. The attachment scores measure the resulting head and relation predictions, while language identification and script coverage concern the earlier segmentation stage.

Frames and pragmatics

Mova’s frame, pragmatic and world components, prag and world, read English trees. The absence of Pāli trees is the immediate gap for Pāli input. A Pāli parser would supply that structural input. The supplied package state establishes English as the tree input for those downstream components.

The distinction matters for reported speech, reference and discourse. The corpus excerpt buddhattaṃ ti shows a quotation marker alongside the expression it marks. In a full clause, a syntactic analysis can record how the quoted material relates to a predicate of speaking or naming. Interpreting who uses the expression, what it refers to and what role it plays in the discourse calls for evidence from the surrounding text.

Consider the constructed form “gacchāmi” ti so āha. Gloss go.PRS.1SG QUOT he.NOM.SG say.PST.3SG. Translation ‘He said, “I am going.”’ (constructed) The reporting clause gives a subject for ‘said’, and first person marks the speaker’s role inside the quotation. Resolving ‘he’ to a person already mentioned requires prior discourse. The example illustrates what a grammar can describe about the utterance even when the package produces no Pāli tree, frame or pragmatic analysis for it.

Manual claims and Squid's implementation queue

Squid reads the grammar manual and records each grammatical point as a claim. Formalizable claims, including rules, closed lists and statistics, wait in Squid’s queue for a place in Mova’s code. A claim’s presence in the manual or queue records the description. Implementation is a separate step, and the queue provides no parsing behavior on its own.

Conditions on a rule matter when it is turned into an annotation decision. A rule about ti as a quotation marker applies when the occurrence marks quoted material. A claim describing the case forms of neuter plurals must allow the same form to realize both nominative and accusative, leaving the choice for an individual token to its construction. A treebank gives these claims concrete applications through annotated occurrences. Explanations of reference and discourse can require context beyond the sentence containing the form.

For Pāli, the first implementation needs come from tokenization, tagging and the UD baseline. Tokenization needs conventions for editorial marks, word boundaries and script-dependent spelling. Tagging needs inventories of word classes and features and examples that show how to resolve ambiguous forms. The baseline needs those decisions applied consistently in training and development data, with dependency annotation on the resulting words. The manual describes the distinctions relevant to those tasks. The Pāli package has yet to implement them.

How Mova handles Pāli today

tools/mova-parse uses tools/langseg at level 1 to assign languages to sentences and spans. The segmenter distinguishes English and French in Latin script using its Latin table, lexicons and character 4-gram model. It also covers Hebrew-script varieties and Hebrew or Aramaic in scholarly transliteration. Other scripts receive other. Pāli identification is limited by the segmenter’s knowledge of its script or lexicon. A further Latin-script language joins by adding a Lang code and a lexicon from an open UD training split using langseg latin-lexicon.

At level 2, tools/mova-parse selects a model for each span’s assigned language. No model exists for pi. The # parse comment reports a missing model, and the output for its token rows has _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, with Parse=None in MISC. Mova has no Pāli tokenization, tagging, lemmatization or parsing at this stage.

The baseline specified by What every language gets uses en xpos-fill before en train on a UD training split, then en parse-eval to measure UAS and LAS on the development split. English and French have en.bin and fr.bin. Mova has no annotated Pāli treebank and no measured Pāli baseline.

The frame, pragmatic and world components, prag and world, read English trees. Pāli supplies no parsed trees for them to read. Squid records the manual’s grammatical claims and queues the formalizable ones. The Pāli rules are still unimplemented. The first points 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/pi/32-mova-tools/