Mova0.6 pre-release

the flag of Indonesia 27. Batak Toba in Mova

Batak Toba uses the language code bbc in Mova. The corpus samples include Latin spelling and Batak-script text. Mova has neither a Batak Toba parser model nor an annotated Batak Toba treebank. This chapter describes the coverage of language identification, the output for spans without a model, and the dependencies that determine which analyses are available.

Language identification and script coverage

Mova's multilingual parser assigns a language at two levels of textual scope. The first stage provides a language label for each sentence and for each span. Span labels matter because the second stage looks up a parser model separately for each span. A language code attached to a corpus item identifies the language of that item in the corpus. Automatic language identification depends on the segmenter's own script and language resources.

InputCoverage in tools/langseg
Latin scriptDistinguishes English and French using a Latin table, a lexicon for each language, and a character 4-gram model.
Hebrew scriptDistinguishes Hebrew-script varieties.
Scholarly transliteration of Hebrew or AramaicHas recognition for Hebrew or Aramaic in this form.
Any other scriptAssigns other.

Batak script falls in the other category. Latin-script Batak Toba is outside the stated English and French coverage. A corpus item labeled bbc may therefore contain text for which the segmenter has no Batak Toba identification. For an additional Latin-script language, the supported route is to add a lexicon and a Lang code. The langseg latin-lexicon command builds the lexicon from open Universal Dependencies (UD) training splits. This adds resources for identifying the language. Parsing has a separate model requirement.

The date fragment below occurs alongside a Latin-script rendering of the date in the same corpus sentence. The two forms show why the script of a span matters even when the language of the surrounding article is known.

FormRomanizationGlossTranslation
“1 ᯐᯮᯞᯪ”1 Juli1 July‘1 July’

Corpus sentence ID wiki:bbc:1 Juli.

Parser model lookup and Parse=None output

tools/mova-parse takes the span labels from tools/langseg at level 1. At level 2 it looks for the model corresponding to each span's language code, in that code's model directory under the configured Mova data root. A sentence may thus contain spans with different model lookups. The lookup for bbc finds no level-2 model.

When a span's language has no model file, the # parse comment reports that language. The token rows for the span carry the following values in the affected columns.

ColumnAnnotation it normally holdsOutput when the model is missing
LEMMADictionary form_
UPOSUniversal part-of-speech tag_
XPOSLanguage-specific part-of-speech tag_
FEATSMorphological features_
HEADIndex of the syntactic head_
DEPRELDependency relation to the head_
MISCMiscellaneous token informationParse=None

Parse=None records the absence of a parse for the token. Consequently, an empty FEATS field on such a row gives no morphological evidence, and an empty HEAD field gives no evidence about which word is the root. The same applies to the lemma and tag columns. Where rows are present in this output, they document the missing model. Batak Toba tokenization, tagging, lemmatization, and dependency analysis remain unavailable.

The distinction also matters when reading a mixed-language result. Model availability belongs to the language assigned to each span. The sentence-level language label alone gives insufficient information to tell whether each span has a model or whether its token rows carry a dependency analysis.

Treebank availability and the unmeasured UD baseline

Mova has Batak Toba corpus text, including the Wikipedia samples used in this chapter. A UD treebank provides a different kind of data. It records tokenization and linguistic annotations, including heads and dependency relations, against which a system can be trained and evaluated. Mova holds no annotated Batak Toba corpus of this kind and has no measured UD baseline for bbc.

The language package described in What every language gets asks for the same baseline for every language. In Mova's own parser crate, en, the sequence is en xpos-fill, followed by en train on a language's UD training split. Training builds a tree parser and tagger. en parse-eval measures the result on the development split. The training and development annotations have separate roles. The training split supplies examples for fitting the model, while the development split supplies reference analyses for scoring its predictions.

MeasureWhat must match the reference for an evaluated tokenBatak Toba result
Unlabeled attachment score (UAS)The headUnmeasured
Labeled attachment score (LAS)Both the head and the dependency relationUnmeasured

The missing model and missing baseline are separate facts. The first determines what the multilingual parser can return for a bbc span. The second determines what can be said about accuracy against annotated Batak Toba data. The language identification label and the presence of corpus text provide neither of the attachment measurements.

Dependencies of frame and pragmatics processing

Mova's frame, pragmatics, and world processing currently reads English dependency trees. A dependency tree provides the structural input by identifying a predicate and its syntactically related expressions. Frame analysis concerns the roles those expressions play in the situation described. Pragmatic interpretation concerns what is conveyed in context. For Batak Toba, the processing chain reaches a gap before these later analyses, at the point where it needs a dependency tree.

FormGlossTranslation
“diangkat gabe raja”PASS-appoint become king‘was appointed king’

Corpus sentence ID wiki:bbc:21 Juli.

In the complete corpus sentence, the surrounding words identify the appointee. A frame interpretation would need to associate that participant with the appointment and recognize kingship as the resulting role. A dependency analysis would first have to supply syntactic relations for the predicate sequence and the expressions around it. The example's gloss expresses a reading of the text for the manual. The Batak Toba output supplies no tree from which Mova could derive that reading. A tree is a prerequisite for downstream processing, whose current input is English trees.

Grammar claims and Squid's implementation queue

Squid reads each grammatical point in the manual as a claim. Claims that can be formalized, including rules, closed lists, and statistics, wait in Squid's queue for a place in Mova's code. A claim's presence in the queue indicates that the manual supplies a point for possible implementation. Runtime behavior depends on what the tokenizer, tagger, or parser actually implements.

The first implementation points are those needed for tokenization, tagging, and a UD treebank baseline. Tokenization needs decisions about the units to annotate. Tagging needs assignments to those units in context. Treebank annotation also needs heads and relation labels so that the resulting analyses can be used as training and development data. A useful rule for this work gives its domain, its conditions, and any exceptions. A closed list specifies all the members of the class it describes.

FormGlossTranslation
“sada huta”one village‘a village’

Corpus sentence ID wiki:bbc:Aek Nauli I, Sipahutar, Tapanuli Utara.

The gloss identifies the numeral and noun in this occurrence. A treebank needs token, tag, and dependency decisions for such expressions in their sentence contexts. One occurrence illustrates a pattern. A formal rule would also need to specify the constructions in which that pattern applies. For Batak Toba these manual claims remain ahead of implementation, and there is no annotated corpus in Mova against which to measure their coverage.

How Mova handles Batak Toba today

tools/mova-parse uses tools/langseg at level 1 to assign a language to every sentence and span. In Latin script, tools/langseg distinguishes English and French using a Latin table, a lexicon per language, and a character 4-gram model. It also distinguishes Hebrew-script varieties and Hebrew or Aramaic in scholarly transliteration. Other scripts, including Batak script, fall under other. Identification of another Latin-script language requires a lexicon and a Lang code. langseg latin-lexicon builds lexicons from open UD training splits.

At level 2, tools/mova-parse looks up each span's language model by its code. Batak Toba has no level-2 model. The # parse comment reports the language for which the model is missing. Its token rows have _ in LEMMA, UPOS, XPOS, FEATS, HEAD, and DEPREL, with Parse=None in MISC. For a language without a model, Mova's coverage is limited to identifying spans where tools/langseg knows the script or lexicon. Batak Toba tokenization, tagging, lemmatization, and parsing are unavailable.

Mova has no Batak Toba treebank and has measured no UD baseline for bbc. In the en crate, 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. Models exist for English (en.bin) and French (fr.bin). What every language gets asks for the same baseline for each language.

Mova's frames, pragmatics, and world processing, including prag and world, read English trees. Batak Toba supplies no parsed trees for this processing. Squid reads the manual's grammatical points as claims and queues formalizable claims for implementation. The Batak Toba rules remain unimplemented. The first points in scope for implementation are the ones needed by 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/bbc/27-mova-tools-and-data/