Mova0.6 pre-release

the flag of Madagascar 31. Malagasy in Mova

Malagasy uses the language code mg. Mova has Malagasy text samples, but it has neither a Malagasy parser model nor an annotated Malagasy treebank. This chapter describes the output available for Malagasy and the work needed to measure its first parsing baseline.

Language identification and Malagasy spans

Mova assigns languages at two scales, the sentence and the span within a sentence. Span labels determine which language model is selected for parsing. The Latin-script inventory in tools/langseg distinguishes English and French using a Latin character table, a lexicon for each language and a character four-gram model. The script alone gives no Malagasy label. Adding Malagasy to that inventory requires a lexicon and a Lang code. The prescribed source for the lexicon is an open Universal Dependencies (UD) training split, processed with langseg latin-lexicon.

Language identification needs evidence from the surrounding words when a name or abbreviation is shared across languages. The Malagasy corpus illustrates the issue with French place names inside Malagasy phrases. This phrase contains a Malagasy adposition and a department noun followed by a name.

FormGlossTranslation
“amin'ny departemantan'i Meuse”in.DEF department.of.PERS Meuse‘in the department of Meuse’

Corpus sentence wiki:mg:Chauvoncourt. DEF marks the definite article and PERS the personal article.

A test of Malagasy identification should include sentences with personal articles, borrowed vocabulary, names, acronyms and digit strings. It should also include sentences that genuinely switch languages, so that a correct decision to keep a name within a Malagasy span can be distinguished from a missed span boundary.

Parser model availability and unannotated output

The multilingual parser, tools/mova-parse, uses a separate model for each language. English and French have models. Malagasy has no level-2 model. When a span is assigned a language for which the model file is absent, a # parse comment reports the missing model. For tokens in that span, the output has the following values.

Output columnValue
LEMMA_
UPOS_
XPOS_
FEATS_
HEAD_
DEPREL_
MISCParse=None

The underscored columns carry no predicted lemma, universal or language-specific part of speech, morphological features, head or dependency relation. The presence of forms in output rows gives the reader surface text. Malagasy-specific tokenization, including any division of written forms into syntactic words, still needs implementation. An output row for a Malagasy form therefore provides no evidence about how a Malagasy treebank would segment or analyze it.

Treebank availability and baseline measurements

Mova holds no annotated Malagasy treebank and has no measured Malagasy treebank baseline. Its Malagasy corpus sentences provide attested forms and contexts. For training and evaluation, the examples would need UD annotations that establish the syntactic words and record their tags, features, heads and dependency relations. The postal-code sentences in the corpus repeat the same wording across municipality articles. If such material is used to build a treebank, keeping sentences from the same template together when making splits helps prevent near duplicates from inflating the development result.

The baseline requested in What every language gets uses en xpos-fill before en train on the language's UD training split. en parse-eval then evaluates on the development split. The two attachment measures distinguish an error in the choice of head from an error in the relation assigned to an otherwise correct head.

MeasureWhat counts as correct for a scored word
Unlabeled attachment score (UAS)The predicted head matches the annotated head.
Labeled attachment score (LAS)The predicted head and dependency relation both match the annotation.

A missing baseline leaves both measures unavailable. Rows with Parse=None record the lack of a parse and cannot supply attachment scores for a Malagasy model.

Dependencies for frames and pragmatics

Mova's frame and pragmatic processing uses English dependency trees. The prag and world components have no Malagasy tree to read while Malagasy parsing is unavailable. Language labels and surface forms do not supply the predicate, its arguments or their syntactic relationships.

Malagasy voice illustrates the information a tree would need to provide. The following pair describes the same event with the actor as pivot in the first clause and the theme as pivot in the second.

FormGlossTranslation
Manasa ny lamba ny ankizy. (constructed)AV.wash DEF clothes DEF children‘The children wash the clothes.’
Sasan'ny ankizy ny lamba. (constructed)TV.wash.DEF children DEF clothes‘The clothes are washed by the children.’

AV marks actor voice and TV theme voice. The semantic roles of washer and thing washed stay the same across the pair, while the voice and pivot change. This is the kind of distinction that downstream processing would need to recover from a Malagasy analysis. The current processing described here reads English trees.

Squid claims and the implementation queue

Squid reads the grammar manual and turns every grammatical point into a claim. Formalizable claims go into its implementation queue. These include rules, closed inventories and statistics. A queued claim records a point available for implementation. Its presence in the queue gives no evidence of support in a tokenizer, a tagger or a parser.

For a condition on word division, a claim needs to specify the relevant form, its environment and any exceptions, so that it can be checked against the same written sequence in different contexts. For a closed inventory, such as the forms of a pronoun series in a stated variety, the claim needs to preserve the conditions that distinguish the forms as well as the membership of the list. These claims give targets for checking the language tools when they are implemented. They supply no measured parsing baseline.

Priorities for tokenization, tagging and a UD baseline

Tokenization comes first wherever the choice of word boundaries changes the units used for annotation. A Malagasy tokenizer and treebank need compatible decisions for apostrophes and hyphens in grammatical forms, hyphens inside names, punctuation next to names or digits, and whitespace inside expressions such as grouped numerals. The exact written form should be recoverable after any normalization or division into syntactic words. The corpus provides contrasting uses of a hyphen and examples of numeric text with different functions.

FormGlossTranslationCorpus sentence
“kaodim-paositra”code-postal‘postal code’wiki:mg:Chauvoncourt
“Saint-Dié-des-Vosges”place name‘Saint-Dié-des-Vosges’wiki:mg:Allarmont
“02601”postal identifier‘02601’wiki:mg:Barnstable, Massachusetts
“-71.0188888889”signed decimal‘minus 71.0188888889’wiki:mg:Brockton, Massachusetts

For example, converting 02601 to an integer would lose the initial zero of the postal identifier. The hyphen inside the place name and the minus sign before the decimal have different functions even when both are written with the same character. Such cases call for context-sensitive annotation decisions before training.

Tagging priorities include articles, pronouns, demonstratives and high-frequency particles, along with lexical categories and the features needed to distinguish verb forms. The treebank then needs consistent head and relation choices for predicate-initial clauses, nonverbal predicates, voice alternations, possession and dependencies involving particles. Annotating voice alternations across several verbs makes it possible to test whether a decision generalizes beyond the examples used to establish it. Once there are training and development splits, the model and its attachment scores can provide a baseline against which later changes can be measured.

How Mova handles Malagasy from input to output

At level 1, tools/langseg assigns a language to each sentence and span. Its Latin-script resources distinguish English and French. The same component recognizes Hebrew-script varieties and Hebrew or Aramaic in scholarly transliteration. Scripts outside its recognized inventory are labeled other. A Malagasy span label depends on identification support for Malagasy. A further Latin-script language can be added with a Lang code and a lexicon built from an open UD training split using langseg latin-lexicon.

At level 2, tools/mova-parse looks for a model for the assigned span language. Models exist for English (en.bin) and French (fr.bin). When a span has the code mg, there is no corresponding model. The # parse comment reports the absence. Its token rows carry _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, with Parse=None in MISC. Mova provides no Malagasy-specific tokenization, tagging, lemmatization or parsing at this stage.

The baseline in What every language gets calls for en xpos-fill, en train on the UD training split and en parse-eval on the development split to measure UAS and LAS. Mova has no annotated Malagasy treebank, so that baseline is unmeasured. Frames, prag and world read English trees and have no Malagasy parse to consume. Squid records the manual's Malagasy points as claims and queues the formalizable ones. The rules remain unimplemented, with tokenization, tagging and a UD baseline as the first priorities.

Sources for this chapter

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