Mova0.6 pre-release

the flag of Sri Lanka 34. Sinhala in Mova

Mova uses the language code si for Sinhala. Sinhala script falls into the language segmenter’s other category, and Mova has neither a Sinhala parser model nor an annotated Sinhala corpus. These gaps affect different stages of processing, from identifying a span as Sinhala to using its dependency tree for frames and pragmatics.

1. Language segmentation and Sinhala script

The first level of tools/mova-parse uses tools/langseg to assign a language to each sentence and span. The span assignment matters in mixed-language text because it determines which language model the second level can use for that span. An assignment for one part of a sentence does not establish the language of every part.

Script or representationDistinctions available in tools/langseg
Latin scriptEnglish and French, using the Latin table, a lexicon for each language and a character 4-gram model
Hebrew scriptHebrew-script varieties
Scholarly transliterationHebrew and Aramaic
Other scripts, including SinhalaThe category other

The label other groups scripts outside the segmenter’s supported distinctions. It does not identify a Sinhala span as si. For a further Latin-script language, the available extension uses a Lang code and a lexicon built from open UD training splits with langseg latin-lexicon. That route concerns Latin-script identification. Sinhala-script identification requires coverage of Sinhala script, and a Latin-script rendering of Sinhala has no Sinhala lexicon in the current segmenter.

The following sentence illustrates the script used in the input. The romanization is a reading aid supplied with the example.

(constructed)

Word 1Word 2Word 3
Sinhala formමමපොතක්කියවනවා
Romanizationmamapotakkiyavanavā
GlossIbook.INDFread.NPST

Translation is “I read a book.” INDF marks indefiniteness and NPST marks nonpast. The displayed word divisions and glosses belong to the example. They do not represent analysis supplied by the parser.

2. Model availability and unannotated parser output

At level 2, tools/mova-parse uses the model associated with each span’s language. Mova has the English model en.bin and the French model fr.bin. There is no model for si. Language identification and model availability are separate conditions for parsing. Even if a span is identified as si, it has no Sinhala model at level 2.

When the model for a language is unavailable, tools/mova-parse reports this in the # parse comment. Any token rows it emits for the unparsed material carry the following values.

Output fieldValueAnalysis absent
LEMMA_Lemma
UPOS_Universal part-of-speech tag
XPOS_Language-specific part-of-speech tag
FEATS_Morphological features
HEAD_Syntactic head
DEPREL_Dependency relation
MISCParse=NoneParse status recorded as unavailable

A row with these values is unannotated. Its presence does not establish that Sinhala word boundaries have been analyzed. The blanks in HEAD and DEPREL mean that the row specifies no dependency arc, including no decision that a token is the root. Likewise, the blank in FEATS gives no information about which grammatical features apply to the form. In a mixed-language output, these limits concern the unparsed material. Spans assigned to a language with an available model can still receive that language’s analysis.

3. Corpus status and the UD training and evaluation baseline

Mova holds no annotated Sinhala corpus. There is no measured Sinhala treebank baseline, so there are no Sinhala attachment scores to report. An unannotated output provides neither reference heads and relations for scoring nor training examples for the tagger and parser.

The common baseline in What every language gets uses a language’s Universal Dependencies training and development splits. The en crate supplies the tagger and tree parser for this workflow. Its name is also the name of the command used for the available training and evaluation steps.

StageDataCommand and result
PreparationUD training spliten xpos-fill precedes training
TrainingUD training spliten train trains the tagger and tree parser
EvaluationUD development spliten parse-eval measures UAS and LAS for the trained parser

Unlabeled attachment score, or UAS, measures whether a token is attached to the reference head. Labeled attachment score, or LAS, also requires the reference dependency relation. The baseline therefore needs reference attachments and relation labels on the development split as well as the training annotations used to build the model. These scores assess the dependency analysis under the train-to-development setup. They provide no measurement of Sinhala script identification, frames or pragmatics.

4. Dependencies of frames and pragmatics on parsed input

Mova’s frame, pragmatics and world components, including prag and world, read English trees. An unparsed Sinhala span supplies no tree to read. The gap begins before any question of which frame or discourse interpretation to assign. Language labels supply no syntactic links, and rows whose HEAD and DEPREL fields are blank supply no predicate–dependent structure.

A Sinhala UD parse would provide the syntactic input that is currently missing. The stated support of the downstream components is for English trees, so the existence of a Sinhala parser model alone would establish only that Sinhala spans can receive syntactic analysis. It would supply no Sinhala measurement for frames or pragmatics. Where a mixed-language text contains both parsed and unparsed spans, an English tree describes the English span from which it was produced. It supplies no syntactic analysis of the adjoining Sinhala material.

5. Squid claims and implementation priorities

Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable claims, including rules, closed lists and statistics, enter a queue for implementation in Mova. A queued claim records a point that can be formalized. Its status as a claim does not indicate that a parser applies it, a tagger predicts it or an evaluation has tested it.

For Sinhala, the first grammatical points to implement are those needed by a tokenizer, a tagger and a UD treebank baseline. A tokenizer needs the conditions for locating words and punctuation in the script and for handling forms that raise a boundary question. A tagger needs criteria for assigning categories and features to the resulting tokens, including the conditions that distinguish competing analyses. A dependency baseline needs consistent decisions about heads and relation labels in the training and development data. These are criteria for selecting claims from the manual. The resulting annotation still needs a corpus on which those decisions have actually been applied.

Language identification is an additional prerequisite for the multilingual entry point. The segmenter must be able to assign a Sinhala span to si for level 2 to select a Sinhala model. A model and a measured baseline would address the tagger and parser only once the required annotated data exist. Claims concerning frames or discourse do not supply the missing annotation or substitute for that evaluation.

6. How Mova handles Sinhala today

At level 1 of tools/mova-parse, tools/langseg assigns a language to each sentence and span. It distinguishes English and French in Latin script, Hebrew-script varieties, and Hebrew and Aramaic in scholarly transliteration. Sinhala script is other, so Sinhala text in that script has no si identification at this level.

At level 2, tools/mova-parse selects a model by span language. Mova has English and French models and no Sinhala model. The # parse comment reports a missing model, and unparsed token rows have _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, with Parse=None in MISC. Mova currently provides no Sinhala tokenization, tagging, lemmatization or dependency parsing.

Mova holds no annotated Sinhala corpus and has no measured Sinhala treebank baseline. The baseline specified in What every language gets is to run en xpos-fill before training the tagger and parser on the UD training split with en train, then measure UAS and LAS on the development split with en parse-eval.

Mova’s frame, pragmatics and world components read English trees. There is no Sinhala tree for them to read. Squid records the manual’s grammatical points as claims and queues the formalizable ones. The queued Sinhala rules await implementation, with the needs of a tokenizer, a tagger and a UD treebank baseline coming first.

Sources for this chapter

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