Mova0.6 pre-release

the flag of Pakistan 27. Saraiki in Mova

Mova has no Saraiki parser model or annotated Saraiki treebank. The Saraiki text excerpts in this chapter illustrate the input a language package would need to handle. Language segmentation can report a script category, while tokenization, grammatical annotation and evaluation each require their own Saraiki data or conventions.

Language segmentation and Saraiki script coverage

Level 1 of the multilingual parser assigns a language label to each sentence and span. Its Latin-script coverage 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 coverage fall under other. Saraiki in its Arabic-derived script therefore falls under other, a category shared by other unsupported scripts.

Putting Saraiki into Latin letters changes the script presented to the segmenter. The current Latin coverage has no Saraiki category supported by its own lexicon. Adding a Latin-script language calls for a lexicon and a Lang code. The langseg latin-lexicon command builds lexicons from open Universal Dependencies (UD) training splits. A Latin lexicon would cover the Latin-script input for which it was built. Saraiki in its Arabic-derived script would still need script coverage.

A document’s language and the language of each span are distinct annotation questions. Saraiki articles can contain a Latin-script name, as in wiki:skr:شرلی میکلین, or a reference with English text, as in wiki:skr:ینگ جین لی. A Latin-script personal name by itself supplies little evidence about the language of its surrounding sentence. The script category identifies the writing system at a coarser level than the article’s editorial language.

The table gives short excerpts from Saraiki articles. The romanization is for reading the excerpts and is independent of the segmenter’s labels.

FormRomanizationGlossTranslationCorpus ID
“ݙو ٻال”ɗo ɓāltwo child‘two children’wiki:skr:یاروسلاو ہیرووسکی
“پڑھاوݨ دے طریقے”paṛhāvaṇ de tarīqeteach.INF GEN method.PL‘methods of teaching’wiki:skr:نصاب دے حصے
“١٩٧٥ء وچ”1975 vic1975.YEAR in‘in 1975’wiki:skr:نصیر الدین نصیر

Here INF marks an infinitive, GEN a genitive marker, PL a plural and YEAR a written year marker. The first two excerpts contain letters that a Saraiki tokenizer needs to preserve as part of the word. The date shows that word recognition also involves digits and a sign adjoining them.

Missing model behavior and Parse=None output

Level 2 of tools/mova-parse uses a model file for the language assigned to a span. There is no level-2 model for skr. For a language whose model file is missing, the # parse comment reports the missing model. The output has the following values for the affected token rows.

Column or fieldValueAnnotation represented by the column or field
LEMMA_Dictionary form
UPOS_Universal part of speech
XPOS_Language-specific part-of-speech tag
FEATS_Morphological features
HEAD_Index of the syntactic head
DEPREL_Dependency relation to that head
MISCParse=NoneStatus of the parse

The underscores indicate absent annotations. In particular, a blank HEAD supplies no attachment, and a blank FEATS gives no basis for deciding whether the form has a feature such as gender or number. Parse=None explains why these fields are absent. Token rows carrying that marker do not establish that their boundaries have been analyzed by a Saraiki tokenizer. The missing-model status and the level-1 other label report different gaps. The first concerns parsing a language span, and the second concerns identifying its language.

Treebank availability and unmeasured UAS and LAS

Mova holds no annotated Saraiki treebank and has measured no Saraiki treebank baseline. The article excerpts provide text with corpus identifiers. A UD treebank adds reference annotations on which a tagger and parser can train and against which their predictions can be evaluated.

Unlabeled attachment score (UAS) is the proportion of evaluated tokens whose predicted syntactic head matches the reference head. Labeled attachment score (LAS) requires both the correct head and the correct dependency relation. For instance, assigning a genitive marker the correct head but the wrong dependency relation would satisfy the UAS criterion for that attachment and fail the LAS criterion. An unmeasured score has no numerical value. Rows with Parse=None do not supply attachment predictions for an evaluation.

The package described in What every language gets calls for the same baseline for each language. For the train-to-development evaluation, the UD training split supplies the training annotations, and the development split supplies the reference for measurement. In Mova’s parser crate, en xpos-fill precedes training. en train trains the tagger and tree parser on the training split, and en parse-eval measures UAS and LAS on the development split.

Tokenizer, tagger and treebank baseline requirements

Tokenization defines the units on which the tagger and dependency parser operate. A Saraiki baseline needs consistent decisions for words, punctuation, and numeric expressions. The supplied excerpts contain Arabic-derived script, combining marks, Arabic-Indic and Western digits, attached year signs, and punctuation with varying spacing. Those are observable properties of the texts. A token boundary or normalization convention would have to be specified and applied consistently in the annotated data.

The following excerpts illustrate decisions the annotation needs to support. PFV.F.SG marks a feminine singular perfective form, and LOC marks a locative expression.

FormRomanizationGlossTranslationCorpus ID
“١٨ مارچ ٢٠١٩ء”18 mārc 201918 March 2019.YEAR‘18 March 2019’wiki:skr:نسیم سیمی
“شادی کیتی”śādī kītīmarriage do.PFV.F.SG‘married’wiki:skr:یاروسلاو ہیرووسکی
“رہنمائی وچ”rahnumāī vicguidance LOC‘under guidance’wiki:skr:نصاب دے حصے
“نصاب دے چار حصے”nisāb de cār hissecurriculum GEN four part.PL‘four parts of the curriculum’wiki:skr:نصاب دے حصے

The date calls for a consistent treatment of the character attached to the year. The marriage expression calls for a lexical analysis of the noun and inflected verb as well as a dependency analysis of the complex predicate. The guidance expression illustrates a postposition following its complement. In the curriculum phrase, the annotation must account for the genitive expression and the numeral within the same noun phrase. Glosses make the distinctions visible, while the treebank must encode them as word-level annotations and dependencies.

A tagger needs reference lemmas, part-of-speech tags and morphological features where those annotations apply. A tree parser also needs a reference head and dependency relation for each annotated syntactic word. The training and development splits need to apply the same conventions. Otherwise an evaluation may count differences in the annotation of token boundaries, inflection or attachments alongside differences in the parser’s predictions. The Saraiki baseline therefore depends on a common annotation convention from input text through development-set evaluation.

Frames, pragmatics and queued grammar claims

Mova’s frames, pragmatics and world components read English trees. For another language, a parse is a prerequisite for those components to have input. A script label, corpus identifier or word gloss supplies no syntactic heads or relations. Saraiki currently lacks the parsed input needed for that stage. The presence of an English tree reader by itself establishes no Saraiki frame or pragmatic analysis.

Squid reads the grammar manual and represents each grammatical point as a claim. Formalizable claims, including rules, closed lists and statistics, wait in its queue for a place in Mova’s code. Queue membership records a claim awaiting implementation. It establishes neither parser coverage nor a measured result. For Saraiki the first points for implementation are those required by a tokenizer, a tagger and a UD treebank baseline.

How Mova handles Saraiki today

tools/mova-parse assigns sentence and span labels through tools/langseg at level 1 and selects a language-specific model at level 2. tools/langseg covers English and French in Latin script, Hebrew-script varieties, and Hebrew or Aramaic in scholarly transliteration. Saraiki’s Arabic-derived script falls under other. There is no level-2 model for skr. A missing language model is reported in the # parse comment, and affected token rows carry _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, with Parse=None in MISC.

Mova’s parser is the en crate. The available models are English (en.bin) and French (fr.bin). For the baseline specified in What every language gets, en train trains a tree parser and tagger on a UD training split after en xpos-fill, and en parse-eval measures UAS and LAS on the development split. Mova holds no annotated Saraiki treebank, so neither score has been measured for Saraiki.

Mova has no Saraiki tokenization, tagging, lemmatization or parsing at present. Its frames, pragmatics and world components, including prag and world, read English trees and have no Saraiki parse to read. Squid records grammatical points as claims and queues those that can be formalized. The Saraiki grammar rules remain unimplemented. The first implementation points are those 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/skr/27-mova-tools/