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/lv/30-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/) / [lv](https://md.mova.elamur.ai/free/en/docs/languages/lv/) / 30. Latvian in Mova

# 30. Latvian in Mova

Mova assigns languages to sentences and spans, then uses a model for each span’s language to produce a Universal Dependencies (UD) tree. Latvian has no parser model in Mova and no measured treebank baseline. The language label, the presence of a tree and the availability of a downstream interpretation are separate properties of the output.

## Language segmentation and the requirements for Latin-script support

At level 1, `tools/langseg` assigns a language to each sentence and each span. The span labels let the parser select a model for a stretch of text within a sentence, including a stretch in a different language from the rest of the sentence. At level 2, `tools/mova-parse` uses the span’s language code to select its model.

The Latin-script recognizer currently distinguishes English and French. It uses a Latin table, a lexicon for each language and a character 4-gram model. The lexicons provide word-level evidence, while the 4-gram model uses sequences of four characters. The segmenter also recognizes Hebrew-script varieties and Hebrew or Aramaic in scholarly transliteration. Outside the scripts it handles, the label is `other`.

Adding a Latin-script language requires a lexicon and a `Lang` code. `langseg latin-lexicon` builds a lexicon from an open UD training split. For Latvian, the code is `lv`. The lexicon supports language identification, while a separate model file supplies the tagger and tree parser. Latvian’s use of the Latin alphabet alone gives no basis for assuming that the current recognizer will label a Latvian passage `lv`.

## Latvian spans and Parse=None output

The missing-model behavior applies when a span reaches level 2 with the language label `lv`. `tools/mova-parse` reports the missing model in the `# parse` comment. Where the output contains token rows for the span, it represents the unavailable annotations as follows.

| Field | Value under a missing model | Annotation that is 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` | The marker records the absence of a parse |

Consider a Latvian sentence whose span label is assumed to be `lv` for this example.

| Form | Gloss | Translation |
| --- | --- | --- |
| *Kaķis guļ.* | cat.NOM.SG sleep.PRS.3 | ‘The cat is sleeping.’ (constructed) |

The gloss identifies *kaķis* as nominative singular and *guļ* as a third-person present form. Those are annotations supplied by the example. In the missing-model output, both words would have `_` in FEATS and `Parse=None` in MISC. Their syntactic analysis would likewise be absent from HEAD and DEPREL. The marker records model availability for the assigned span language. It carries no judgment about whether the sentence is grammatical. The missing model for one span leaves model selection for the other spans governed by their own language labels.

## Latvian package status and corpus availability

The language package specification, [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/), calls for a UD treebank baseline for every language. For `lv`, Mova holds no annotated corpus and has no level-2 model file. There is therefore no measured Latvian baseline to report.

An open UD training split can supply data for both the segmentation lexicon and parser training. These uses give the package two different resources. The lexicon supports the assignment of `lv` to text spans. The trained model provides the analysis inside those spans. Measuring a baseline also requires a development split so that predicted trees can be compared with reference trees. The availability of a treebank outside Mova is a separate question from whether Mova holds the corpus, has trained a model or has evaluated one.

English and French have model files, `en.bin` and `fr.bin`. Their presence establishes model availability for those two languages. For Latvian, a model installed under its own code is the condition for moving beyond the missing-model output once `lv` has been assigned.

## Training and evaluation for a UD baseline

Mova’s parser and tagger are in the `en` crate. The same training tools serve each language’s baseline. First, `en xpos-fill` prepares the training data. Then `en train` trains the tree parser and tagger on the language’s UD training split. `en parse-eval` measures the resulting dependency analysis on the development split.

The two scores are unlabeled attachment score (UAS) and labeled attachment score (LAS). UAS counts an attachment as correct when the predicted head agrees with the reference head. LAS also requires the predicted dependency relation to match. An attachment with the right head and the wrong relation counts toward UAS only. For instance, a parser could attach a nominal to the correct verb but give it an object relation where the reference tree has a subject relation.

The scores concern dependency attachment. They do not measure how often the segmenter chooses `lv`, nor do they measure the quality of frames or pragmatic interpretation. A runtime row with `Parse=None` represents the absence of a model and supplies no predicted attachment to score. Latvian consequently has an unmeasured baseline, with no UAS or LAS result.

## Frames, pragmatics and the English tree input

Mova represents more than dependencies. Its downstream analyses include frames, pragmatics and a world representation. The downstream components, including `prag` and `world`, read English trees. A sentence label tells the pipeline which language has been assigned, while an annotated dependency tree supplies syntactic heads, relations and other information that a downstream analysis can read.

For Latvian, the immediate gap is at the tree input. A span marked `Parse=None` has neither heads nor dependency relations for those components to read. Producing a Latvian UD tree would supply a syntactic analysis. The downstream components’ English tree input would still be a separate requirement. Corpus availability, parser availability and downstream coverage therefore describe different parts of the language package.

## Squid claims and the implementation queue

Squid reads the grammar manual and turns each grammatical point into a claim. The claims that can be formalized, including rules, closed lists and statistics, wait in a queue for a place in Mova’s code. The queue records work that can be expressed for implementation. Its entries do not change the analysis a user receives.

The first implementation priorities for a language without its own tools are the points needed by a tokenizer, a tagger and a UD treebank baseline. For Latvian, those priorities correspond to decisions about token boundaries, the assignment of grammatical categories and features, and the representation of heads and dependency relations. Together they define the basic analysis that an annotated corpus can exemplify and a development split can test. A grammatical description in the manual is independent of whether any of these decisions has been implemented in Mova.

## How Mova handles Latvian today

At level 1, `tools/langseg` labels sentences and spans where it knows the script or lexicon. Its Latin-script support distinguishes English and French. Extending that support to Latvian requires a lexicon and a `Lang` code, with `langseg latin-lexicon` using an open UD training split.

At level 2, `tools/mova-parse` looks for the model for the assigned language at <code>.bin. No such parser model exists for `lv`. Mova reports the missing model in the `# parse` comment and supplies no Latvian tokenization, tagging, lemmatization or dependency parsing. For Latvian tokens present in the output, LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL are `_`, and MISC carries `Parse=None`.

Mova holds no annotated Latvian corpus, so the baseline required by [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) has no measured result for `lv`. The baseline uses `en xpos-fill` before `en train` on the UD training split and `en parse-eval` to measure UAS and LAS on the development split. English and French have models in `en.bin` and `fr.bin`. Frames, pragmatics and the world components, including `prag` and `world`, read English trees and have no Latvian parse to read.

Squid turns the grammatical points in the manual into claims and queues those that can be formalized. No Latvian grammar rules described here are implemented yet. The first priorities are the points needed by a tokenizer, a tagger 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/lv/sources/)).
- [← previous 29. Register and stylistic variation](https://md.mova.elamur.ai/free/en/docs/languages/lv/29-register/)
- [next → Sources](https://md.mova.elamur.ai/free/en/docs/languages/lv/sources/)
- [↑ back to Latvian (lv) — a reference manual for Mova](https://md.mova.elamur.ai/free/en/docs/languages/lv/)

> 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)
