Mova0.6 pre-release

the flag of the Philippines 25. Chavacano in Mova

Mova uses cbk as the code for Chavacano. The package has Chavacano text samples, including excerpts from Zamboanga Chavacano Wikipedia. It has neither a Chavacano dependency treebank nor a parser model for the language. Language identification, dependency parsing, frames and pragmatics are separate stages. The status of one stage determines what the next stage can read.

Language identification for Latin-script text

The first level of tools/mova-parse uses tools/langseg to assign a language to each sentence and span. A span is a stretch of text that can receive its own language label within the sentence. This lets a sentence contain spans that are routed to different language models at the next level.

For Latin script, tools/langseg distinguishes English and French using its Latin table, a lexicon for each language and a character 4-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside the Latin and Hebrew cases are classified as other.

Adding another Latin-script language requires a lexicon and a Lang code. The langseg latin-lexicon command takes its lexical data from open Universal Dependencies (UD) training splits. A language label in the corpus identifies the language of the supplied text. Recognition of a span in input to the parser depends on the identifier’s coverage of its script or lexicon.

For example, the corpus labels the following fragment Chavacano. The place name occurs alongside words used in the Chavacano clause. The language label belongs to the text sample, while identification of a span containing the fragment is a separate operation.

FormGlossTranslation
“ya estudia medicina na Madrid”PFV study medicine LOC Madrid‘studied medicine in Madrid’

Corpus id wiki:cbk_zam:José Rizal. PFV marks perfective aspect and LOC marks a location.

Model lookup and Parse=None output

At level 2, tools/mova-parse looks for a model for the language assigned to each span. The model is stored under that language’s code, with the code as the base name of the .bin file. Each span is parsed with its own language’s model when that file exists. The package has models for English (en.bin) and French (fr.bin). It has no model for cbk.

When the model is missing, the # parse comment reports the language. Each output token row for the affected span has the following values. These rows record missing analysis and provide no Chavacano-specific tokenization.

FieldValueAnnotation absent or status reported
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=NoneModel unavailable for the span

In particular, an underscore in HEAD leaves the head unspecified, and an underscore in DEPREL leaves the relation unspecified. A dependency tree requires those annotations. The comment reports the missing model at the language level, while Parse=None marks the affected token rows.

The Chavacano treebank gap and the UD baseline

Mova holds no annotated Chavacano corpus. The supplied text samples attest forms and constructions. A UD treebank would supply annotated sentences, with token boundaries, word classes, heads and dependency relations against which the parser’s output could be checked.

The package specification in What every language gets asks for the same parser baseline for every language. In the en crate, en xpos-fill precedes training. The en train command trains a tree parser and tagger on a language’s UD training split. The en parse-eval command measures attachment on the development split after training on the training split.

MeasureWhat the comparison checks
UAS, unlabeled attachment scoreWhether the predicted head matches the reference head
LAS, labeled attachment scoreWhether both the predicted head and the predicted dependency relation match the reference

There is no measured Chavacano baseline. The train-to-development comparison requires annotated splits, and the Chavacano text samples supply no reference arcs for that comparison.

One such sample contains the fragment below. The gloss gives a reading of the words for the manual. A treebank entry would also specify their syntactic heads and relations in the full sentence.

FormGlossTranslation
“ta indicá un senso”IPFV indicate INDEF sense‘indicates a sense’

Corpus id wiki:cbk_zam:Saṁvega. IPFV marks imperfective aspect and INDEF marks an indefinite article.

Parsing as a prerequisite for frames and pragmatics

Mova’s frame, pragmatic and world components, including prag and world, read English dependency trees. For a language other than English, a parsed tree is a prerequisite. A language label supplies the identity of the span. It supplies no syntactic input for interpreting a predicate, identifying its dependents or using the structure in a pragmatic analysis.

The Chavacano gap is at this prerequisite. A corpus passage can contain an overt predicate and an expression naming a participant or a place, and the manual can gloss those expressions. For a cbk span with Parse=None, the parser supplies no arcs linking those expressions. There is consequently no Chavacano tree for the downstream components to read. The package facts establish English tree input for those components and the need for a parse in other languages.

The difference is visible in the fragment from the Rizal article. The gloss reads estudia as ‘study’, medicina as ‘medicine’ and na Madrid as a location. A dependency analysis would encode how these expressions attach in the clause. The gloss is part of the manual and supplies no such parser output.

Grammar claims in Squid’s 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. A queued claim records a point that can be formalized. Its presence in the queue confers no behavior on the parser.

For instance, the corpus examples above each show an aspect marker written separately before a verb. The examples attest specific sequences, ya estudia and ta indicá. A general claim about such sequences must give the forms it covers, the conditions under which they occur and any exceptions. A tokenizer would need facts about where written forms are separated. A tagger would need facts about the classes of the forms and the contexts that distinguish their uses. A UD baseline would need annotated instances with heads and relation labels.

These are the kinds of claims that come first for a language without a model. The grammar can describe them before the package has a treebank or a model. Their place in the queue is separate from their implementation and from any evaluation using annotated data.

How Mova handles Chavacano in the current package

At level 1 of tools/mova-parse, tools/langseg gives each sentence and span a language. Its Latin-script coverage distinguishes English and French with a Latin table, language lexicons and a character 4-gram model. It also distinguishes Hebrew-script varieties and Hebrew or Aramaic in scholarly transliteration. Other scripts are other. A further Latin-script language joins through a lexicon from open UD training splits and a Lang code, using langseg latin-lexicon. Identification of spans in a language without a model is limited to what tools/langseg knows from the script or lexicon.

At level 2, tools/mova-parse looks up a model by the span’s language code. There is no model for cbk. The # parse comment reports the missing model, and affected token rows have _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, with Parse=None in MISC. The package provides no Chavacano tokenization, tagging, lemmatization or parsing.

The en crate has models for English (en.bin) and French (fr.bin). The baseline specified in What every language gets uses en xpos-fill, then en train on a UD training split and en parse-eval to measure UAS and LAS on the development split. Mova holds no Chavacano treebank, so there is no measured baseline for cbk.

Mova’s frames, pragmatics and world components read English trees. With no Chavacano parse, prag and world have no Chavacano tree to read. Squid reads the manual as claims and queues the formalizable ones for implementation. None of the Chavacano rules described here is implemented yet. The first claims needed are those for tokenization, tagging and a UD treebank baseline.

Sources for this chapter

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