Mova0.6 pre-release

the flag of Angolathe flag of Mozambique 27. African Portuguese in Mova

The pt-x-african edition describes African Portuguese. Mova currently has neither a parser model nor an annotated corpus for this edition. This chapter explains what a reader can determine from Mova’s output, what measurements are available, and which parts of the grammar matter first for a parsing baseline.

The edition and the language package

The edition identifier is pt-x-african. The manual uses it for a scope that includes multiple national varieties of Portuguese. A grammatical observation can apply across that scope or be restricted to a particular variety, register, or context. Those restrictions belong with the observation when it is considered for implementation.

Mova’s language package specification, What every language gets, asks for the same parser baseline for every language. The baseline uses an annotated Universal Dependencies (UD) training split to train a tagger and a dependency parser, then evaluates the result on a development split. For pt-x-african, the current state is as follows.

ComponentCurrent state
Grammar editionpt-x-african
Language segmentationLatin-script support covers English and French. Recognition of an additional Latin-script language requires a lexicon and a language code in the segmenter.
Tagger and dependency parserNo model for pt-x-african
Annotated corpus in MovaNo treebank for pt-x-african
Dependency evaluationNo measured baseline for pt-x-african
Formalizable grammar claimsAwait implementation in Squid’s queue

Language segmentation and current coverage

tools/mova-parse handles multilingual input in two levels. At level 1, tools/langseg assigns a language to each sentence and span. A span is the unit passed on to level 2, where the parser selects a model by the span’s language code. Language assignment supplies the routing decision. The availability of a model under that code determines whether the span can receive a parse.

For Latin-script text, the segmenter distinguishes English and French using a Latin table, a lexicon for each language, and a character 4-gram model. It also recognizes Hebrew-script varieties and Hebrew or Aramaic in scholarly transliteration. Other scripts receive the label other. Portuguese shares the Latin script with English and French, so the script alone cannot identify a span as pt-x-african.

An additional Latin-script language enters the segmenter with a lexicon and a Lang code. The langseg latin-lexicon command builds the lexicon from an open UD training split. This is a separate part of coverage from parsing. Reliable assignment of pt-x-african would allow level 2 to look for that edition’s model, and the model would still have to exist for parsing to proceed.

Parser model availability and unannotated output

At level 2, tools/mova-parse looks for the model associated with the language assigned to each span. The installed models described here are en.bin for English and fr.bin for French. There is no model for pt-x-african. When a span reaches level 2 under that code, the # parse comment reports the missing model. Its token rows carry the following values.

FieldValueAnnotation that is unavailable
LEMMA_Dictionary form
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=NoneThe marker that the parser supplied no analysis

Read the underscores together with the # parse comment and Parse=None. For example, _ in FEATS under this condition leaves number, gender, and other features unanalyzed. _ in HEAD leaves the head unassigned, including the decision about which token is the root. The presence of token rows in this output does not establish that Mova tokenized the span according to Portuguese conventions. The package lacks language-specific tokenization as well as tagging, lemmatization, and dependency parsing.

Treebank availability and the unmeasured baseline

Mova holds no annotated African Portuguese corpus. A UD treebank would supply the reference tokenization, tags, features, and dependency trees needed to train and evaluate the parser. The baseline specified by What every language gets uses the training split for model fitting and the development split for scoring. A corpus without reference trees can supply examples of written usage, but it cannot supply the heads and relations against which the parser’s output is scored.

In the en crate, en train trains a tree parser and tagger on the UD training split after en xpos-fill. The en parse-eval command measures the resulting parser on the development split.

MeasureWhat is scored against the reference treeStatus for pt-x-african
UAS, unlabeled attachment scoreWhether the predicted head matches the reference headUnmeasured
LAS, labeled attachment scoreWhether both the predicted head and the dependency relation match the referenceUnmeasured

Missing-model output is a report about model availability. It cannot serve as an evaluation result. A baseline would describe performance on the development data used to compute it. Its interpretation across the edition’s national varieties and registers would depend on which of them those data represent.

Grammar claims and Squid's implementation queue

Squid reads the 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 the code. A claim’s presence in the queue records work awaiting implementation.

The conditions on a grammatical claim determine its scope. A closed list needs all its members and the context in which the list is closed. A rule needs the environments where it applies and any exceptions. A statement restricted to a national variety or a register needs to retain that restriction. A statistic needs the population or sample it describes. These distinctions matter when choosing whether a claim should guide a token boundary, a tag, or the analysis of a dependency.

A grammar claim and a parser score answer different questions. A claim can specify how to annotate a construction in a given context. A score measures how often a trained model recovers the reference annotations in held-out data. The manual supplies claims, while the train-to-development evaluation requires an annotated corpus and a trained model.

Treebank, tagger and tokenizer priorities

The first priorities are the decisions that let a tokenizer produce consistent units, a tagger assign annotations to those units, and a treebank record the reference trees. These decisions also make evaluation reproducible. A change in token boundaries can change which heads and relations are available to compare.

PriorityDecisions needed for a baseline
TreebankSet the text coverage and the train and development splits. Document the annotation of forms that vary by national variety or register and of material from another language within a sentence. Assign reference heads and relations consistently.
TokenizerSpecify sentence and token boundaries. Define how the written form is retained when a contraction represents separate syntactic words, how to handle hyphenated clitics, and how punctuation and numerical notation affect boundaries.
TaggerSpecify lemmas, universal and language-specific part-of-speech tags, and morphological features. Annotate recurrent ambiguities in context, including forms whose function varies across constructions.

The constructed example below illustrates the distinction between the written form and the syntactic words a treebank can represent. The single written form da combines the preposition de and the feminine singular article a.

FormGlossTranslation
As alunas chegaram da escola. (constructed)DEF.F.PL student.F.PL arrive.PRET.3PL from=DEF.F.SG school.F.SG“The students arrived from school.”

DEF marks the definite article, F feminine, SG singular, PL plural, PRET preterite, and 3PL third-person plural. A reference annotation for this sentence would preserve da in the text and specify how its preposition and article are represented in the dependency analysis. The same convention would need to apply in training and development data.

How Mova handles African Portuguese today

tools/mova-parse first assigns languages to sentences and spans through tools/langseg, then looks up a parser model for the language of each span. Latin-script segmentation currently distinguishes English and French. Adding a Latin-script language requires a lexicon and a Lang code, and langseg latin-lexicon builds a lexicon from an open UD training split. Recognition of a span depends on the script or lexicon coverage of the segmenter.

There is no level-2 model for pt-x-african. For a span assigned that code, tools/mova-parse reports the missing model in the # parse comment. The token rows receive _ in LEMMA, UPOS, XPOS, FEATS, HEAD, and DEPREL and Parse=None in MISC. Mova has no tokenizer, tagger, lemmatizer, or dependency parse for African Portuguese.

Mova holds no annotated African Portuguese treebank and has no measured UAS or LAS baseline for the edition. The baseline requested by What every language gets uses en xpos-fill before en train on the UD training split, followed by en parse-eval on the development split. Mova’s frames, pragmatics, and world components read English trees. African Portuguese currently supplies no parsed input for these components.

Squid records the manual’s grammatical points as claims and queues the formalizable ones. The queued rules await implementation. The first priorities are the claims 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/pt/pt-x-african/27-mova-tools/