Mova0.6 pre-release

the flag of Papua New Guinea 20. Hiri Motu in Mova

Mova has Hiri Motu (ho) text in its corpora. The language has no parser model or annotated treebank in Mova, so the parser supplies no Hiri Motu annotations and there are no baseline attachment scores. This chapter describes the processing stages and the data each stage requires.

Language segmentation and requirements for a Latin-script language

The first level of tools/mova-parse uses tools/langseg to assign a language to every sentence and span. A sentence may contain spans with different language assignments. At the second level, each span goes to the parser model selected for its assigned language.

For Latin-script text, tools/langseg distinguishes English and French using a Latin table, a lexicon for each language and a character 4-gram model. Hiri Motu shares the Latin script with those languages. Script alone therefore gives the segmenter no basis for a Hiri Motu assignment. To add a Latin-script language, the segmenter needs a Lang code and a lexicon. The langseg latin-lexicon command builds the lexicon from an open Universal Dependencies (UD) training split. The language code and lexicon are resources for segmentation. Parsing also requires the model described in the next section.

The Hiri Motu corpus includes the phrase “Matamaia neganai” (wiki:ho:Sivarai Namona Ioane Ia Torea). Its form is Matamaia neganai, glossed beginning time.LOC and translated ‘in the beginning’. The text supplies an example of Hiri Motu in Latin script. The gloss and translation explain the phrase for the reader.

Model lookup and the current ho parse output

At level 2, tools/mova-parse looks for the model corresponding to the span’s language code at <code>.bin. For ho, the expected model name is ho.bin. The lookup uses the span’s own code even when another span in the same sentence has a model available.

If the model file is missing, tools/mova-parse reports the missing model in the # parse comment. Hiri Motu currently takes this path. Its token records have the following values in the affected output columns.

ColumnValue for hoInformation normally carried
LEMMA_Dictionary form
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Grammatical features
HEAD_Syntactic head
DEPREL_Dependency relation
MISCParse=NoneStatus of the parse

Parse=None applies to the whole analysis of the token. For example, an underscore in HEAD under this condition leaves the syntactic head unspecified.

Treebank requirements and the status of baseline measurements

What every language gets calls for the same parser baseline for each language. The training input is the language’s annotated UD training split. After en xpos-fill, en train trains both a tree parser and a tagger on that split. The baseline uses en parse-eval to evaluate the trained parser on the development split. English and French have models, en.bin and fr.bin.

MeasureWhat the evaluation checks
UAS, unlabeled attachment scoreWhether the parser assigns the reference head
LAS, labeled attachment scoreWhether the parser assigns both the reference head and the reference dependency relation

The development split supplies the reference trees for both scores. A training split alone can supply training data, while the development split is needed to measure the baseline. Mova has no annotated Hiri Motu corpus, so there is no measured ho baseline for either UAS or LAS. The corpus examples document text forms and do not supply the reference attachments that these scores require.

Inputs to frame and pragmatic analysis

Mova’s frame, pragmatic and world analysis uses English dependency trees as input. The components named here are prag and world. Language segmentation supplies a language assignment. Dependency parsing supplies the heads and relations that connect the words in a tree.

For a Hiri Motu span, the missing model leaves HEAD and DEPREL unset. The span therefore provides no dependency tree for these downstream components to read. A Hiri Motu dependency parse is a prerequisite for downstream analysis of that span. The current frame, pragmatic and world analysis reads English trees.

Grammar claims and Squid's implementation queue

Squid reads each grammatical point in the manual as a claim. It queues claims that can be formalized, including rules, closed lists and statistics. The queue holds claims awaiting a place in Mova’s code. A queued claim has yet to become executable behavior.

The first points to put into code are those needed for tokenization, tagging and a UD treebank baseline. Tokenization needs conventions for where tokens begin and end. Tagging needs conventions for assigning parts of speech and grammatical features to those tokens. The treebank needs consistent head and relation annotations so that parser output can be evaluated against reference trees. The grammar supplies the conditions and exceptions that these conventions must account for. None of the chapter’s rules is implemented for Hiri Motu yet.

How Mova handles Hiri Motu without a parser model

tools/langseg assigns languages to sentences and spans where it knows the script or lexicon. Its Latin-script support distinguishes English and French. Adding a further Latin-script language requires a Lang code and a lexicon from an open UD training split, using langseg latin-lexicon.

There is no level-2 model for ho. tools/mova-parse reports the missing model in the # parse comment, leaves LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL as _, and adds Parse=None in MISC. Mova does not tokenize, tag, lemmatize or parse Hiri Motu. It holds no Hiri Motu treebank and has measured no treebank baseline. The frame, pragmatic and world components read English trees and have no Hiri Motu tree to read.

Squid records grammatical points as claims and queues the formalizable ones for implementation. No rule in this chapter is implemented for Hiri Motu. The first implementation needs are tokenization, tagging and a UD treebank baseline.

Sources for this chapter

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