Mova0.6 pre-release

the flag of India 27. Magahi in Mova

Mova uses the language code mag for Magahi. The supplied Magahi corpus contains Devanagari text. Mova’s language segmenter puts Devanagari in other, and Mova has neither a Magahi parser model nor an annotated Magahi treebank. These gaps affect different stages, from identifying the language of a span to supplying the dependency tree that downstream analysis requires.

Language segmentation and Devanagari input

The multilingual pipeline first assigns a language to each sentence and span. It then selects a parser model for each span according to its language code. The first decision concerns which language the text belongs to. Word boundaries and grammatical analysis belong to later stages.

tools/langseg distinguishes English and French in Latin script 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 receive other. Devanagari therefore supplies no route to a mag label. The extension mechanism for another Latin-script language adds a lexicon and a Lang code, with langseg latin-lexicon using open UD training splits. That mechanism concerns Latin-script input.

Script and language can vary within a corpus sentence. The table shows two extracts from a Magahi entry containing a parenthetical Punjabi name. The name in Gurmukhi and the surrounding Devanagari text pose separate language-identification decisions. The corpus sentence ID identifies the source of the extracts.

FormRomanizationGlossTranslationCorpus sentence ID
जिलामेjilā-medistrict-LOC‘in the district’wiki:mag:जलन्धर
ਜਲੰਧਰjalaṃdharJalandhar‘Jalandhar’wiki:mag:जलन्धर

Model availability and the Parse=None output

At level 2, tools/mova-parse looks for a model file named for the span’s language code in that language’s model directory. The available models are English (en.bin) and French (fr.bin). A span identified as Magahi has no corresponding model. The # parse comment reports the missing model, and the token rows use the following values.

FieldValue when the model is missing
LEMMA_
UPOS_
XPOS_
FEATS_
HEAD_
DEPREL_
MISCParse=None

The missing-model marker describes the status of the parse. An underscore in FEATS leaves the grammatical features unassigned. An underscore in HEAD leaves the governor unassigned. The presence of token rows gives no evidence that their boundaries have been determined by a Magahi tokenizer. Likewise, Parse=None gives no evidence that level 1 identified a Devanagari span as Magahi. The segmenter’s other label and the parser’s missing-model report describe separate conditions.

Treebank availability and the unmeasured parser baseline

Mova has Magahi corpus text and lacks a Magahi UD treebank. The Wikipedia extracts in this chapter show written forms in context. They provide no reference heads or dependency relations for scoring a parser.

The package described in What every language gets asks for the same baseline for every language. After en xpos-fill, en train trains the tree parser and tagger on the language’s UD training split. en parse-eval measures unlabeled attachment score (UAS) and labeled attachment score (LAS) on the development split. UAS checks whether the predicted head is correct. LAS checks whether both the head and the dependency relation are correct.

Magahi has no measured Mova treebank baseline. A baseline requires annotated training data and an annotated development split against which to compare predictions. The missing baseline gives no accuracy estimate for Magahi.

Inputs required by frames and pragmatics

Mova’s frame, pragmatic and world components read English dependency trees. For Magahi, the missing parse leaves them without a tree to read. A language label would identify the span, while a dependency analysis would supply the head and relation information that these components read from English trees. English-tree input is the current implementation.

The following extracts illustrate material a Magahi dependency analysis would have to account for before downstream interpretation could use it. One contains a demonstrative and nominal expression. The other gives the population expression from a clause about Aomori.

FormRomanizationGlossTranslationCorpus sentence ID
ई एगो स्वरī एगो svarthis one.CL vowel‘this one vowel’wiki:mag:अ
२.६ लाख2.6 lākh2.6 hundred.thousand‘260,000’wiki:mag:अओमोरी

The first extract raises a question about the role of the demonstrative in the full predication. The second raises a question about the role of the quantity in its clause. The glosses describe the expressions for the reader. The missing model leaves their syntactic relations unassigned in Mova.

Squid claims and priorities for tokenization, tagging and treebank annotation

Squid reads the grammar manual and turns each grammatical point into a claim. Rules, closed lists and statistics that can be formalized wait in its queue for a place in Mova’s code. Implementation is a separate step after queuing. For Magahi, the first priorities are the decisions required by a tokenizer, a tagger and a UD treebank baseline.

FormRomanizationGlossTranslationCorpus sentence ID
जनगननाके अनुसारjanagananā-ke anusārcensus-LINK according.to‘according to the census’wiki:mag:अओमोरी
अपन आत्माकेapan ātmā-keown soul-OBJ‘one’s own soul’wiki:mag:ऋषभदेव

For tokenization, the corpus presents Devanagari danda, decimal punctuation, script changes and markers written directly against the preceding noun. Both extracts in the table have joined के. The orthography supplies the character sequence. A tokenization rule must establish when to preserve a written unit and when to represent its grammatical parts separately.

For tagging and lemmatization, the same written marker can occur in different constructions. The first extract links ‘census’ to ‘according to’, and the second marks the object in its clause. The gloss LINK describes the local linking function. OBJ describes the function in the clause from which the second extract comes. Assigning a tag or feature requires a decision about token boundaries and the construction in which the form occurs.

For treebank annotation, the treatment of these constructions must carry through to heads and dependency relations. The same conventions must apply in the training and development splits for the baseline to measure attachment under a common analysis. These are priorities for Magahi annotation and implementation. The corpus fragments illustrate the decisions and carry no Mova dependency labels.

How Mova handles Magahi today

At level 1, tools/mova-parse uses tools/langseg to assign a language to each sentence and span. The segmenter reports Devanagari as other. At level 2, it uses the model for each span’s assigned language. Magahi (mag) lacks a level-2 model, so the # parse comment reports the missing model for a Magahi span. Its tokens receive _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL and Parse=None in MISC. Magahi tokenization, tagging, lemmatization and parsing are unavailable.

Mova holds no annotated Magahi treebank and has no measured Magahi parser baseline. The package baseline uses en xpos-fill and en train on the UD training split, followed by en parse-eval to measure UAS and LAS on the development split. Frames, pragmatics and world analysis read English trees. prag and world have no Magahi tree to read.

Squid records the manual’s grammatical points as claims and queues the formalizable ones. The Magahi rules in this chapter await implementation. The initial priorities are the rules and annotations needed for tokenization, tagging and a UD treebank baseline.

Sources for this chapter

This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/mag/27-mova-tools/