Mova0.6 pre-release

the flag of New Zealand 30. Māori in Mova

Mova has Māori text examples, but it has no Māori parser model or annotated treebank. This chapter explains what language identification can establish for Māori, how missing parses appear in the output, and what the grammar manual contributes to Squid.

The current Māori package

The language code for Māori is mi. Mova’s multilingual pipeline has two levels. Level 1 assigns a language to each sentence and span. Level 2 looks for a parser model for the language assigned to each span. For Māori, level 1 lacks dedicated Latin-script identification support, and level 2 has no mi model to load. An input known to a reader or labelled in a corpus as Māori therefore has two distinct coverage gaps.

The Māori examples in Mova’s corpora are text with sentence identifiers. They give evidence of forms and constructions that a Māori implementation would need to handle. An annotated Universal Dependencies (UD) treebank supplies a different kind of evidence. It records the reference analysis of tokens and of the dependencies between them. Mova holds no such treebank for Māori, so the supplied sentences do not constitute a training split or a development split for the Māori parser baseline.

One of the corpus excerpts shows both an ordinary Māori phrase and a vowel written with a macron.

The phrase is written in Latin script, as are the other Māori examples, so the examples in this chapter need no romanization. In the glosses, DEF.SG and DEF.PL mark singular and plural definite articles, PASS marks passive voice, and TAM marks a tense, aspect or mood particle. The glosses give the grammatical readings used in this chapter. They are separate from the fields Mova returns.

Latin-script language identification and its coverage

Level 1 runs through tools/langseg. Its Latin-script distinction currently covers English and French. That distinction uses a Latin table, a lexicon for each supported language and a character 4-gram model. A character 4-gram is a sequence of four characters. These sequences provide evidence based on recurring spelling patterns alongside the evidence from the lexicons.

The other coverage consists of Hebrew-script varieties and Hebrew or Aramaic in scholarly transliteration. Scripts outside the supported coverage fall under other. Māori uses Latin script, so the rule for other scripts does not determine what happens to a Māori passage. The current Latin-script coverage provides no dedicated distinction for identifying it as mi.

A macron in Māori gives a reader information about vowel length. It does not by itself establish a mi result in level 1. Conversely, a Māori span can contain a name written without any distinctively Māori spelling. The following corpus excerpt illustrates why the language of the surrounding construction matters.

The corpus identifier supplies the provenance of this example. It gives no observed tools/langseg result for the name, the phrase or the containing sentence. Sentence-level assignments and span-level assignments must be interpreted at the level where they were made, particularly when a sentence includes material from more than one language.

To add another Latin-script language, tools/langseg needs a lexicon and a Lang code. The lexicon route given for this purpose uses an open UD training split and langseg latin-lexicon. Adding a language at this level would give the segmenter a way to identify its spans. Parsing those spans would still depend on a model at level 2.

Model lookup and unannotated Māori output

tools/mova-parse selects a model for each span using the code assigned to that span. It looks for the file named <code>.bin in the model directory for that code under $MOVA_DATA. The sentence’s overall language and the contents of individual words do not substitute for the span’s code in this lookup. A separate span assigned a language with a model can be parsed with that model.

There is no level-2 model for mi. When a span reaches level 2 with that code, the missing model is reported in the # parse comment. The annotation for its token rows has the following values.

FieldValue for a token whose span has no modelInformation absent
LEMMA_Lemma
UPOS_Universal part-of-speech tag
XPOS_Language-specific part-of-speech tag
FEATS_Morphological features
HEAD_Index of the syntactic head
DEPREL_Dependency relation to the head
MISCParse=NoneParse status recorded as unavailable

Parse=None reports the lack of a parse for the token row. A row can therefore contain text while lacking every analysis in the table. Its presence does not establish that a Māori tokenizer determined the boundaries. For a span with no model, Mova supplies no language-specific tokenization, tagging, lemmatization or dependency analysis.

This description of the fields applies when the span reaches lookup as mi. A corpus sentence identifier or a reader’s identification of a passage as Māori does not determine the code assigned by level 1. The # parse comment and the token fields describe the result of the lookup with the code actually used.

Treebank availability and the UAS and LAS baseline

Mova’s native tree parser and tagger are in the en crate. Its baseline procedure applies en xpos-fill before en train, which trains on the language’s UD training split. en parse-eval measures the resulting parser on the development split. What every language gets calls for this same train-to-development baseline for each language. The existing model files are en.bin for English and fr.bin for French.

The two attachment scores compare the predicted dependencies against the reference trees in the development split.

MeasureA scored token counts as correct when
UAS, unlabeled attachment scoreIts predicted syntactic head matches the reference head.
LAS, labeled attachment scoreIts predicted syntactic head and dependency relation both match the reference analysis.

Predicting the right head with a different relation earns credit under UAS alone. These measures concern dependency attachment. They do not measure how reliably the language segmenter recognizes Māori or how well a later component interprets an utterance.

Mova currently holds no annotated Māori treebank and has measured neither UAS nor LAS for mi. There is no numerical Māori baseline. An unannotated corpus excerpt lacks the reference head and dependency relation needed to score either measure. Likewise, Parse=None records missing analysis in a particular output and cannot be counted as an attachment score.

Frames and pragmatics

Mova’s frames, pragmatics and world processing read English trees. The prag and world components therefore have no parsed Māori tree to read. Language identification can supply a span code, but that code contains no predicate, argument or dependency analysis for downstream processing.

Consider this excerpt from the corpus sentence about the establishment of the government.

The grammatical reading identifies a passive predicate and the government as the entity established. Neither that reading nor the English translation is an analysis produced by Mova for the Māori span. The absent level-2 tree leaves no dependency structure from which Mova could read a frame or proceed to pragmatic interpretation. Parsing is the first missing input for that processing. The stated coverage for reading trees is English.

Squid claims and the implementation queue

Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable claims, including rules, closed lists and statistics, wait in Squid’s queue for a place in Mova’s code. Queue membership records a formalizable claim awaiting implementation. It gives no parser behavior, annotation or evaluation result.

For a language without a parser model, the first relevant claims are those needed for a tokenizer, a tagger and a UD treebank baseline. These needs concern different parts of the analysis. A tokenizer needs decisions about written boundaries. A tagger needs categories for the tokens those boundaries define. A treebank baseline needs reference dependencies and a split for evaluating predictions made after training. The following excerpt illustrates the kinds of decisions that arise before a score is possible.

This excerpt supplies a separate written particle and a place name with internal hyphens. A tokenizer specification needs to say how its boundaries treat forms of this kind. A tagging specification needs a category for the particle in this use, and a reference tree needs the attachment of the phrase in the full sentence. The gloss identifies the use illustrated by the excerpt. It specifies neither a complete boundary rule nor a UD analysis. The manual’s Māori rules remain unimplemented, regardless of whether a particular observation can be expressed as a queued claim.

How Mova handles Māori today

tools/mova-parse uses tools/langseg at level 1 to assign a language to each sentence and span. The Latin-script support distinguishes English and French using a Latin table, language lexicons and a character 4-gram model. The segmenter also covers Hebrew-script varieties and Hebrew or Aramaic in scholarly transliteration, with other scripts assigned other. A further Latin-script language joins through a lexicon and a Lang code, using open UD training splits with langseg latin-lexicon. The current Latin-script coverage has no dedicated support for identifying Māori as mi.

At level 2, tools/mova-parse looks up <code>.bin for the language assigned to each span. There is no model for mi. When lookup is for mi, the # parse comment reports the missing model, LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL are _, and MISC contains Parse=None. Mova performs no Māori tokenization, tagging, lemmatization or parsing for that span.

The en crate provides Mova’s parser and tagger training through en train on a UD training split after en xpos-fill. en parse-eval measures development-set UAS and LAS. What every language gets calls for this baseline for every language, and models exist as en.bin and fr.bin. Mova holds no annotated Māori treebank, so there is no measured Māori baseline.

Mova’s frames, pragmatics and world components read English trees. With no Māori parse, they have no tree to read for Māori. Squid reads the manual as grammatical claims and queues those that can be formalized. The Māori rules remain unimplemented. The first claims for implementation would be 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/mi/30-mova-tools/