Mova0.6 pre-release

the flag of the Philippines 33. Tagalog in Mova

Mova’s multilingual parser uses the language label assigned to a span to select a dependency model. The documented Latin-script segmenter distinguishes English and French. If a span is assigned Tagalog (tl), the parser reports a missing model. Mova holds no annotated Tagalog corpus, and its Tagalog treebank baseline is unmeasured. This chapter explains how to read the parser output and how Squid uses the grammatical claims in the manual.

Language segmentation and model selection

At level 1, tools/langseg assigns labels to sentences and spans. At level 2, tools/mova-parse looks up the model for each span’s label. In a sentence with differently labeled spans, model availability is checked separately for each span.

For Latin-script text, the documented language distinction is between English and French. The segmenter uses a Latin table, a lexicon for each language and a character 4-gram model. Latin-script Tagalog shares its script with both languages. Adding a Latin-script language to the segmenter requires a lexicon and a Lang code. The langseg latin-lexicon command builds lexicons from open Universal Dependencies (UD) training splits. A parser model is a separate requirement.

The segmenter also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside its supported inventory receive the label other, which applies to Baybayin. Recognition of Baybayin requires support for its script. The Latin-script lexicon procedure applies to Tagalog written in the Latin alphabet.

For a constructed example, consider Kumain ang bata, and I made tea. If the two clauses are assigned tl and English respectively, the first span has no level-2 model and the second has an English model. The model lookup depends on the assigned labels.

Tagalog parse output and annotation status

If a span is assigned tl, tools/mova-parse reports the missing model in the # parse comment. The same pattern applies to a span assigned any language whose model is missing. The rows for that span have the following values in the listed columns.

ColumnValueMeaning
LEMMA_No lemma is supplied.
UPOS_No universal part-of-speech tag is supplied.
XPOS_No language-specific part-of-speech tag is supplied.
FEATS_No morphosyntactic feature values are supplied.
HEAD_No syntactic head index is supplied.
DEPREL_No dependency relation is supplied.
MISCParse=NoneParsing was unavailable for the span.

Use the span’s language label to identify which model was requested. The # parse comment reports its availability, and Parse=None records the resulting status on each row. With both HEAD and DEPREL empty, the rows carry no dependency links. Parse=None reports parse availability only. Tagalog-specific tokenization is a separate capability.

In the following constructed example, the gloss is supplied by hand.

FormGloss
Kumaineat⟨actor voice, perfective⟩
angnominative marker
batachild

Translation “The child ate.”

If the example is assigned tl, FEATS is _ on the parse rows even though the gloss identifies the predicate’s voice and aspect. HEAD and DEPREL are also _, so the output leaves the dependency relation between the nominal and predicate unspecified.

Corpus availability and the unmeasured treebank baseline

Mova holds no annotated Tagalog corpus, and its Tagalog treebank baseline is unmeasured. The baseline requires a parser trained on an annotated training split and evaluated against reference annotations in a development split. A glossed chapter example illustrates an analysis of one sentence.

The language package specifies the same UD baseline procedure for each language. The command sequence is en xpos-fill, en train and en parse-eval. en train trains the tree parser and tagger on the language’s UD training split. en parse-eval evaluates the trained model on the development split. The en name identifies the crate, and the splits belong to the language under evaluation. Mova has English and French models. The procedure is specified in What every language gets.

MeasureWhat counts as correct
Unlabeled attachment score (UAS)The predicted head matches the reference head for an evaluated token.
Labeled attachment score (LAS)Both the predicted head and the predicted dependency relation match the reference for the same evaluated token.

Each score is the proportion of evaluated tokens that meet its criterion. A UD training split can also supply words for a Latin-script segmentation lexicon. That use supports language recognition. Attachment scoring requires predicted dependencies and reference dependencies on the development split. For Tagalog, the UAS and LAS values are unmeasured.

Frames and pragmatics input requirements

Mova’s frames, pragmatics and world components read English trees. A dependency tree supplies syntactic heads and relations. For a span assigned tl, HEAD and DEPREL are _, so there is no tree to pass to these readers. The language label identifies the span’s assigned language, and Parse=None records the parse status.

For Kumain ang bata, the hand gloss supplies the predicate’s voice and aspect, the function of the marker and the meaning of the noun. The readers take a tree as input. For example, use of a relation between the nominal and predicate requires the tree to specify a head and dependency relation.

Tagalog support at this stage depends on both producing a Tagalog tree and having readers that can use it. The documented reader input is an English tree.

Squid claims and implementation status

Squid is the deterministic Rust worker that reads the grammar manual. Each grammatical point becomes a claim. Formalizable claims, including rules, closed lists and statistics, enter Squid’s queue for implementation in Mova.

A conditional rule states the forms or constructions it covers, the conditions under which it applies, the result and any exceptions. A closed list defines the class and gives all of its members. A statistic states what was measured and identifies the data to which the result applies. For the Tagalog treebank baseline, both attachment scores are unmeasured.

The gloss of Kumain ang bata illustrates an actor-voice perfective reading of kumain. A rule about the distribution of the form requires its own conditions and any exceptions. Recording a claim preserves the point made in the manual, and queueing marks it as awaiting implementation. No Tagalog rule from the manual is implemented in Mova. The first points needed are those that support a tokenizer, a tagger and the UD treebank baseline.

How Mova handles Tagalog today

tools/langseg assigns sentence and span labels. Its documented Latin-script distinction is between English and French, and Baybayin receives other. The langseg latin-lexicon command builds lexicons from open UD training splits. Adding a Latin-script language to the segmenter requires a lexicon and a Lang code.

tools/mova-parse looks up a model for each span’s assigned language. For a span assigned tl, it reports the missing model in the # parse comment, leaves LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL as _, and sets Parse=None in MISC. Mova has no Tagalog-specific tokenization, tagging, lemmatization or parsing. It holds no annotated Tagalog corpus. Tagalog UAS and LAS are unmeasured under the baseline specified in What every language gets.

Mova’s frames, pragmatics and world components (prag, world) read English trees. The missing-model output for tl supplies no tree. Squid records the manual’s grammatical points as claims and queues the formalizable ones. No Tagalog rule from the manual is implemented in Mova.

Sources for this chapter

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