30. Caipira and southern Brazilian Portuguese in Mova
The edition code pt-x-caipira covers the Caipira and southern Brazilian Portuguese described in this manual. Mova’s multilingual pipeline identifies language spans before looking for a parser model for each span. This edition currently has no regional model and no annotated treebank. Its grammar is represented in Squid as claims for possible implementation.
Language identification and Latin-script coverage
Language identification is the first level of the multilingual pipeline. tools/langseg assigns a language to each sentence and span. A span is the unit passed to the next level for model selection, so a sentence with spans assigned different languages can require different models.
For Latin-script text, the current identifier distinguishes English and French using its Latin table, a lexicon for each language and a character four-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside its recognized coverage are assigned other.
Caipira and southern Brazilian Portuguese use the Latin script. Recognizing that script leaves open which language or variety a stretch of text belongs to. The edition code identifies the scope of the manual and package, while assigning that code to a span requires support in the language identifier. The supplied Latin-script coverage establishes English and French identification. It gives no basis for expecting pt-x-caipira labels on regional Portuguese input.
The extension procedure for a further Latin-script language adds a lexicon and a Lang code. langseg latin-lexicon builds the lexicon from an open Universal Dependencies (UD) training split. This procedure addresses language identification. Span parsing has its own model requirement.
Span parsing and the missing regional model
tools/mova-parse uses the span language assigned at level 1 to look up that language’s model at level 2. The lookup is specific to the language code. In a mixed-language sentence, a span with its own model can be parsed even when another span has no model.
Mova has an English model, en.bin, and a French model, fr.bin. There is no level-2 model for pt-x-caipira. When the parser receives a span under that code, it records the absence of the model in the # parse comment and leaves the corresponding token rows without linguistic annotations. The same missing-model rule applies to any span whose assigned language has no model file.
For example, consider a short regional Portuguese clause.
| Form | Gloss | Translation |
|---|---|---|
| Nós falamo baixo. | we speak.PRS.1PL quietly | ‘We speak quietly.’ |
(constructed)
The gloss gives the intended reading of the example. It supplies no evidence about which language tools/langseg would assign to the sentence or about its token boundaries in Mova. If the pipeline receives the clause as a pt-x-caipira span, the missing-model rule applies.
Unannotated output and Parse=None
The # parse comment reports the language for which the model is missing. On the token rows for that span, the annotation columns listed below contain _, and MISC carries Parse=None.
| Field | Output for a span without a model | Information normally recorded |
|---|---|---|
| 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 |
| MISC | Parse=None | Status of the parse for the token |
The underscores record missing annotations. An underscore in FEATS leaves open which morphological features the form would receive. An underscore in HEAD leaves the head unassigned, including the decision about which token is the root. Parse=None identifies a token row for which the pipeline produced no parse. It supplies no grammatical judgment about the form and no evidence of regional tokenization support.
The comment and the token marker apply at different points in the output. The comment identifies the language with the missing model. The MISC value identifies the affected rows, which matters when a sentence contains more than one language span.
Treebank availability and the unmeasured UD baseline
Mova holds no annotated treebank for pt-x-caipira. There is therefore no measured UD baseline for the edition. That statement concerns the annotation available in Mova and gives no estimate of the accuracy a regional model could achieve.
What every language gets calls for the same baseline procedure for each language. The en crate provides the parser and tagger. After en xpos-fill, en train trains the tree parser and tagger on the language’s UD training split. en parse-eval measures attachment on the development split.
| Measure | What must match the reference annotation |
|---|---|
| Unlabeled attachment score (UAS) | The syntactic head |
| Labeled attachment score (LAS) | Both the syntactic head and the dependency relation |
The train-to-development comparison requires reference dependency annotations. A collection of unannotated sentences supplies text for inspection, but it has no reference heads or relations for this comparison. Likewise, Parse=None records that a parse is absent for a span. It contributes no attachment score. The English and French model files establish model availability for those languages and supply no measurement for pt-x-caipira.
Frames, pragmatics and their dependence on parsed trees
Mova’s frame, pragmatics and world components currently read English trees. Language identification and parsing provide different inputs here. Identification gives a span its language label. A parse supplies a tree with syntactic heads and dependency relations for downstream interpretation.
For pt-x-caipira, the missing model leaves that tree unavailable. The underscores in HEAD and DEPREL carry no relations for Mova’s frame or pragmatics processing to read. A surrounding span with a parse supplies a tree for its own material. The regional span still lacks one.
A parsed tree is a prerequisite for downstream processing. The current tree-reading coverage described for these components is English. Adding a regional parser would supply the missing tree input. Frame, pragmatics and world coverage for those regional trees would remain a separate implementation question.
Squid’s grammar claims and implementation queue
Squid reads this grammar manual and turns each grammatical point into a claim. For a conditional rule, the claim includes the circumstances in which the rule applies and any exceptions to it. A claim about a closed inventory needs all the members of that inventory. Where a point reports a statistic, the claim records that quantitative statement.
Formalizable claims, including rules, closed lists and statistics, wait in Squid’s queue for a place in Mova’s code. Queue membership records a claim awaiting implementation. A paradigm can therefore be stated in the manual while the corresponding forms still receive no tag or lemma in parser output.
The first implementation points are the ones needed by a tokenizer, a tagger and a UD treebank baseline. These concern how to delimit tokens, which categories and features to assign to them, and which heads and dependency relations to use in the reference trees. These resources support different stages of the pipeline. Token boundaries establish the units of annotation, tags describe those units, and dependency annotations give the baseline its reference analysis.
How Mova handles pt-x-caipira today
tools/mova-parse uses tools/langseg at level 1 to assign languages to sentences and spans. Identification is limited to the scripts or lexicons that tools/langseg knows. In Latin script it distinguishes English and French using its Latin table, language lexicons and a character four-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Other scripts receive other. Further Latin-script coverage requires a lexicon and a Lang code, with langseg latin-lexicon using open UD training splits.
At level 2, tools/mova-parse uses a model specific to each span’s assigned language. pt-x-caipira has no such model. The missing language model is reported in the # parse comment. Its token rows receive _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, and Parse=None in MISC. Regional tokenization, tagging, lemmatization and parsing are unavailable.
The baseline specified in What every language gets uses the en crate. After en xpos-fill, en train trains the parser and tagger on the UD training split, and en parse-eval measures UAS and LAS on the development split. English and French have models, en.bin and fr.bin respectively. Mova has no annotated treebank for pt-x-caipira, so the edition has no measured baseline.
Mova’s frames, pragmatics and world components (prag, world) read English trees. The regional spans supply no parsed tree for those components. Squid turns the manual’s grammatical points into claims and queues the formalizable ones. The rules described here await implementation, starting with the points needed for tokenization, tagging and a UD treebank baseline.
Sources for this chapter
- No source was planned for this chapter; its points are to be checked against public-domain and open grammars (see Sources).
This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/pt/pt-x-caipira/30-mova-tools/