Elamur: **Mova** · [Parse](https://mova.elamur.ai/free/en/parse/) · [Research](https://md.research.elamur.ai/free/en/) · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/) · [Shryfti](https://md.shryfti.elamur.ai/free/en/)

[Mova](https://md.mova.elamur.ai/free/en/) · [this page in HTML](https://mova.elamur.ai/free/en/docs/languages/pt/pt-x-old/31-mova-tools/)

[Mova](https://md.mova.elamur.ai/free/en/) / [docs](https://md.mova.elamur.ai/free/en/docs/) / [languages](https://md.mova.elamur.ai/free/en/docs/languages/) / [Portuguese](https://md.mova.elamur.ai/free/en/docs/languages/pt/) / [pt-x-old](https://md.mova.elamur.ai/free/en/docs/languages/pt/pt-x-old/) / 31. Galician-Portuguese in Mova

# 31. Galician-Portuguese in Mova

Mova has a multilingual parsing pipeline, but Galician-Portuguese (`pt-x-old`) has neither a parser model nor an annotated treebank in Mova. This chapter describes how the pipeline identifies languages, what its output records when a model is missing, and what data would support a first Universal Dependencies (UD) baseline.

## 1. Language identification and multilingual parsing

`tools/mova-parse` works in two levels. At level 1, `tools/langseg` assigns a language to each sentence and span. At level 2, the parser selects a model for each span using that span’s language code. A sentence containing material in more than one language can therefore have spans with different model requirements.

For Latin-script text, `tools/langseg` distinguishes English and French using a Latin table, a lexicon for each language, and a character 4-gram model. It also distinguishes varieties written in Hebrew script and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside its coverage receive `other`. The route for adding a Latin-script language is to add a lexicon and a `Lang` code. The `langseg latin-lexicon` command supports building the lexicon from open UD training splits.

Galician-Portuguese shares its script with languages already covered by the Latin-script identifier. Recognition of the script alone cannot establish that a span is `pt-x-old`. The missing-model behavior described below applies once the pipeline has assigned that code to a span. Coverage at language identification and availability of a parsing model are separate conditions.

## 2. The missing pt-x-old model and Parse=None output

There is no level-2 model for `pt-x-old`. When the pipeline processes a span under that code, the `# parse` comment reports the missing language model. The token rows carry the following values.

| CoNLL-U field | Output | Annotation unavailable |
| --- | --- | --- |
| LEMMA | `_` | Dictionary form |
| UPOS | `_` | Universal part-of-speech tag |
| XPOS | `_` | Language-specific part-of-speech tag |
| FEATS | `_` | Morphological features |
| HEAD | `_` | Syntactic head |
| DEPREL | `_` | Dependency relation |
| MISC | `Parse=None` | Status indicating that the token has no parse |

`Parse=None` applies to the affected token rows. In a multilingual sentence, those rows may occur alongside rows from spans with an available model. A blank HEAD supplies no attachment decision, including a decision about which word is the root. A blank FEATS supplies no analysis of the form’s morphology. The presence of a token row in this output establishes where the status is recorded. It supplies no Galician-Portuguese tokenization analysis.

## 3. The missing annotated treebank and unmeasured UAS and LAS baseline

Mova holds no annotated Galician-Portuguese corpus from which to train and evaluate a UD parser. There is consequently no measured baseline for unlabeled attachment score (UAS) or labeled attachment score (LAS). A missing baseline has no numerical value. Counting rows marked `Parse=None` would measure the occurrence of missing parses in that output, while attachment scores require predicted trees and reference trees.

UAS is the proportion of evaluated words assigned the reference head. LAS is the proportion assigned both the reference head and the reference dependency relation. The reference annotation and the evaluation setup determine which words are compared. Both scores can be computed on the same set of words to show how often a correct attachment also has the correct label.

(constructed)

| Form | Maria | canta |
| --- | --- | --- |
| Gloss | Maria | sing.PRS.IND.3SG |

‘Maria sings.’

In a reference UD tree for this example, *canta* heads *Maria* with the relation `nsubj`. If a hypothetical parser attaches *Maria* to *canta* with the relation `obj`, the attachment for *Maria* is correct for UAS and incorrect for LAS. This example illustrates the scoring distinction without supplying a measured result.

## 4. Training and evaluation requirements for a UD baseline

The language package calls for a baseline trained on a UD training split and measured on a development split. Both splits need reference annotation. A collection of transcriptions can supply text for a treebank, but training a tagger and tree parser requires word-level annotation, and measuring attachments requires reference heads and relations on held-out material.

The treebank needs a stated transcription policy and consistent sentence and word segmentation. The segmentation policy must cover how contracted forms and clitic spellings map from written forms to syntactic words. Where one written token represents several syntactic words, the annotation needs to represent both the written token and the component words so that dependencies can attach to the appropriate words. The word annotations also need consistent conventions for lemmas, parts of speech, morphological features and dependency labels. Where an edited reading affects segmentation or syntax, the chosen reading and its analysis must agree.

The split determines what the baseline measures. Training and development material must be distinguishable, and the split policy should account for repeated passages and alternate transcriptions of the same passage. Placing versions of a passage on both sides can make the development score reflect familiarity with that passage. Differences in genre or editorial practice also affect what a result represents. A score on one development split describes performance on that split under the stated representation and evaluation conditions.

Mova’s parser and tagger are trained with `en train` after `en xpos-fill` on the UD training material. `en parse-eval` measures UAS and LAS on development material using the trained model. To interpret the scores, record the treebank version, the split, and the evaluation conditions, including how token boundaries are supplied and which words are counted. An attachment score with reference word boundaries describes performance given those boundaries. A run that also has to recover word boundaries has an additional source of error. Language identification likewise needs its own evaluation if it is part of the input pipeline being assessed.

## 5. Manual claims and Squid's implementation queue

Squid reads the grammar manual and turns each grammatical point into a claim. It queues formalizable claims, including rules, closed lists and statistics, for a place in Mova’s code. A queued claim has the status of a specification awaiting implementation.

The first points for a language without a model are those needed by a tokenizer, a tagger and a UD treebank baseline. For tokenization, a claim has to specify the form and the conditions that determine its word boundaries. For tagging, it has to specify the distinctions that can be assigned to the resulting words and the contexts or exceptions that affect those assignments. For treebank annotation, a syntactic claim has to be expressed in terms that support consistent choices of heads and relations in the reference data.

These tasks depend on one another. The decision about whether a written sequence represents one syntactic word or several determines which words are available to tag and attach. A morphological distinction can be documented in the manual before the treebank has examples annotated for it. A statistic describes the material from which it was obtained, so its use in a baseline depends on the population and counting conditions it describes. The manual, the implementation queue, the treebank and the model each supply a different part of the work.

## 6. How Mova handles pt-x-old today

`tools/mova-parse` uses `tools/langseg` at level 1 to label sentences and spans by language. For a language without a model, recognition extends only as far as the identifier’s script or lexicon coverage. Level 2 uses the model for the span’s assigned language. For `pt-x-old`, the model is missing. The `# parse` comment reports the missing model, the six analysis fields LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL contain `_`, and MISC contains `Parse=None`. Mova currently performs no Galician-Portuguese tokenization, tagging, lemmatization or parsing.

The `en` crate provides Mova’s parser. It has models for English (`en.bin`) and French (`fr.bin`). The language package asks for the same train-to-development UD baseline for each language, using `en xpos-fill`, `en train` and `en parse-eval`. Mova has no annotated Galician-Portuguese treebank, so UAS and LAS remain unmeasured for `pt-x-old`.

Mova’s frames, pragmatics and world components read English trees. `prag` and `world` have no Galician-Portuguese trees to read. The manual supplies claims to Squid, and formalizable claims enter its implementation queue. This chapter’s grammatical rules are still unimplemented. The first points needed are those that support 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](https://md.mova.elamur.ai/free/en/docs/languages/pt/pt-x-old/sources/)).
- [← previous 30. Register and genre](https://md.mova.elamur.ai/free/en/docs/languages/pt/pt-x-old/30-register-and-genre/)
- [next → Sources](https://md.mova.elamur.ai/free/en/docs/languages/pt/pt-x-old/sources/)
- [↑ back to Galician-Portuguese (pt-x-old) — a reference manual for Mova](https://md.mova.elamur.ai/free/en/docs/languages/pt/pt-x-old/)

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://mova.elamur.ai/sitemap.xml) · [llms.txt](https://mova.elamur.ai/llms.txt)
