Mova0.6 pre-release

the flag of India 32. Vedic Sanskrit in Mova

The Vedic Sanskrit package uses the language code vsn and contains unannotated text examples. It lacks a language-specific parser model and an annotated treebank, so there is no parsing baseline for the package. Mova’s language identification, dependency parsing, and interpretation components have separate coverage requirements.

The vsn package and its unannotated examples

The package holds plain-text examples from public-domain Vedic texts in Wikisource transcriptions distributed under CC BY-SA 4.0 or CC0. The examples include both Ṛgveda Saṃhitā text and Ṛgveda Padapāṭha text. A corpus sentence ID identifies the example record. Mova supplies neither a linguistic annotation layer for these records nor measurements based on them.

The Saṃhitā example below preserves the running text, including the written retroflex initial in षिच्यते. The gloss gives a manual reading of the displayed forms. The locatives occur with predicates of motion and pouring, so the English translation uses different prepositions for the two phrases.

Formआकलशेषुधावतिपवित्रेपरिषिच्यते
Romanizationākalaśeṣudhāvatipavitrepariṣicyate
Glosstowardjar.LOC.PLrun.PRS.3SGfilter.LOC.SGoverpour.PASS.PRS.3SG

“It runs into the jars and is poured over the filter.” (vsn:rigveda-samhita:0207:6)

The Padapāṭha excerpt below preserves the vertical bars in the transcription. These marks record divisions in the source text. The corpus record has no Mova tokenization or dependency annotation, and the gloss and translation are supplied here for the reader.

Formतम्देवासःप्रतिगृभ्णन्तिअश्वम्
Romanizationtamdevāsaḥpratigṛbhṇantiaśvam
Glossthat.ACC.SG.Mgod.NOM.PLtowardgrasp.PRS.3PLhorse.ACC.SG

“The gods receive that horse.” (vsn:rigveda-padapatha:0002:1600)

The glosses use ACC, LOC, and NOM for accusative, locative, and nominative, SG and PL for singular and plural, M for masculine, PRS for present, PASS for passive, and 3 for third person.

Language identification and script coverage

Level one of tools/mova-parse uses tools/langseg to assign a language to each sentence and span. For Latin-script text, the segmenter 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 scholarly transliteration of Hebrew or Aramaic. Scripts outside this coverage are classified as other.

The Devanagari in the Vedic examples therefore falls under other. Latin romanization changes the script presented to the segmenter but supplies no vsn lexicon or language code in its inventory. The vsn prefix in a corpus ID gives the package affiliation of a stored example. Identification of a span in arbitrary input depends on the segmenter’s own script and lexicon coverage.

The documented route for adding a Latin-script language uses a lexicon from an open Universal Dependencies (UD) training split and a Lang code. The langseg latin-lexicon command builds the lexicon. This route concerns language identification. Level-two parsing uses a separate model for the language assigned to the span.

Level-two model availability and Parse=None output

Level two of tools/mova-parse selects a model file for the language of each span. No level-two model exists for vsn. When a span’s language lacks a model file, the parser reports the missing model in the # parse comment. The token rows it emits for that span carry the following values.

Output fieldValue when the span has no modelInformation left unassigned
LEMMA_Dictionary form
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Morphological features
HEAD_Syntactic head
DEPREL_Dependency relation
MISCParse=NoneThe entry records the absence of a parse.

This output convention applies after identification, when the assigned language has no model. For Devanagari input, the level-one classification is other. The existence of rows carrying Parse=None supplies no evidence that Mova has analyzed Vedic word boundaries. Vedic Sanskrit currently has no Mova tokenization, tagging, lemmatization, or dependency parsing.

Treebank and evaluation status

Mova holds no annotated Vedic Sanskrit treebank. Its unannotated examples provide text to inspect. An attachment evaluation requires reference heads for the tokens being scored, and labeled attachment evaluation also requires reference dependency relations. The examples have neither kind of reference annotation.

The package specification in What every language gets calls for the same baseline for each language. Mova’s parser and tagger are in the en crate. After en xpos-fill, en train trains the parser and tagger on the language’s UD training split. The en parse-eval command measures performance from training to development data. Mova has models for English (en.bin) and French (fr.bin).

Baseline measureWhat a correct attachment requiresStatus for vsn
Unlabeled attachment score (UAS)The predicted head matches the reference head.Unmeasured
Labeled attachment score (LAS)Both the predicted head and the predicted dependency relation match the reference.Unmeasured

The missing treebank and missing model are distinct gaps. A model supplies predictions, and an annotated development split supplies the reference analysis against which those predictions are scored. Mova makes no measurement on the plain-text vsn examples.

Coverage of frames, pragmatics and world knowledge

Mova’s frame, pragmatic, and world-knowledge processing reads English trees. This includes the components named prag and world. A parsed tree is a prerequisite for these components to have linguistic input from another language. A vsn text record and a span with Parse=None each lack that input.

For example, a reader can interpret the second-person verb and the address in the following question. The English gloss records those readings for the manual.

Formकंनक्षसेविभावरि
Romanizationkaṃnakṣasevibhāvari
Glosswho.ACC.SG.Mapproach.PRS.MID.2SGradiant.one.VOC.SG.F

“Whom do you approach, radiant one?” (vsn:rigveda-samhita:0332:39)

Here MID marks middle voice, 2 marks second person, VOC marks vocative, and F marks feminine. The reading connects the vocative to the addressee of the question. The example illustrates the kind of information available to a reader of the manual. Mova has no Vedic tree from which to read the relevant relations and produces no Vedic frame or pragmatic analysis for the example. The documented tree input for these components is English.

Squid claims and the route from formalizable rules to implementation

Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable claims enter its queue for eventual implementation in Mova. They include rules, closed lists, and statistics. A rule states what applies and under which conditions, including any exceptions. A closed list specifies all members of a defined category. A statistical claim states a measurement. The queue records claims awaiting a place in the code. Queued claims have no effect on parser output.

The first implementation needs for a language without a model concern the tokenizer, the tagger, and the UD treebank baseline. For Vedic Sanskrit, relevant questions include how to handle the divisions recorded in Padapāṭha text and how to establish word boundaries in running Saṃhitā text, where external sandhi can join forms in writing. A tagging rule needs identifiable forms and conditions for assigning their categories or features. A treebank baseline needs reference token-level analyses and dependencies so the predicted structure can be evaluated. These are uses for formalizable grammar claims. The Vedic grammatical rules described in the manual have no implementation in Mova yet.

How Mova handles Vedic Sanskrit today

Mova holds vsn examples as unannotated plain text from Wikisource transcriptions of public-domain texts. The transcriptions are distributed under CC BY-SA 4.0 or CC0. Mova makes no measurement on these examples and has no annotated Vedic Sanskrit treebank or treebank baseline.

At level one, tools/mova-parse uses tools/langseg to assign languages to sentences and spans within the segmenter’s coverage. The segmenter distinguishes English and French in Latin script, Hebrew-script varieties, and Hebrew or Aramaic in scholarly transliteration. Devanagari falls under other, and Latin-script Vedic Sanskrit has no vsn identification through the current lexicon coverage. For a further Latin-script language, the route uses a Lang code and a lexicon from an open UD training split built with langseg latin-lexicon.

At level two, tools/mova-parse looks for the model of the language assigned to each span. There is no vsn model. For a language with a missing model, the # parse comment reports the absence, the LEMMA, UPOS, XPOS, FEATS, HEAD, and DEPREL fields are _, and MISC contains Parse=None. Mova provides no Vedic tokenization, tagging, lemmatization, or dependency parsing.

The common baseline in What every language gets uses the en crate. After en xpos-fill, en train trains on the UD training split, and en parse-eval measures UAS and LAS on development data. The available models are English en.bin and French fr.bin. Frame, pragmatic, and world-knowledge processing, including prag and world, reads English trees and has no Vedic parse to read.

Squid extracts grammatical claims from the manual and queues the formalizable rules, closed lists, and statistics. The Vedic rules have no implementation yet. The first claims relevant to implementation are those needed for 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/sa/vsn/32-mova-tools/