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/ml/33-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/) / [ml](https://md.mova.elamur.ai/free/en/docs/languages/ml/) / 33. Malayalam in Mova and Squid

# 33. Malayalam in Mova and Squid

Mova assigns language labels before it looks up a parser model. Malayalam-script spans receive the shared label `other`, and Mova has no Malayalam parser model. This chapter explains how the output represents an unavailable parse, what a Universal Dependencies (UD) baseline would measure, and how Squid records grammatical claims for possible implementation.

## Malayalam-script spans and current language identification

At level 1, `tools/langseg` assigns a language label to each sentence and span. For Latin-script text, it distinguishes English and French using a Latin table, a lexicon for each language, and a character 4-gram model. The identifier also distinguishes Hebrew-script varieties and recognizes scholarly transliteration of Hebrew and Aramaic. Scripts outside its coverage fall under `other`. A span written in Malayalam script falls under `other`, including in a sentence written entirely in Malayalam script.

| Form | Romanization | Gloss | Translation |
| --- | --- | --- | --- |
| മഴ പെയ്യുന്നു. (constructed) | maḻa peyy-unnu. | rain fall-PRS | ‘It is raining.’ |

Because several scripts share `other`, a count of `other` spans in a multilingual document combines material from those scripts. If the example is entered in romanized form, its letters fall within the repertoire used by the English and French identifier. The Latin-script identifier has neither a Malayalam lexicon nor a Malayalam language code. The procedure for adding a Latin-script language uses `langseg latin-lexicon` to build a lexicon from an open UD training split and adds a `Lang` code. Assigning a Malayalam label on the basis of Malayalam script requires script coverage.

## The missing Malayalam model and Parse=None output

At level 2, `tools/mova-parse` looks up a model file using the language assigned to each span. In a mixed text, it can use an available model on spans labeled for that model. The available models are `en.bin` for English and `fr.bin` for French. Malayalam-script spans are routed under `other`. Even if level 1 assigned a span the label `ml`, level 2 would still need a Malayalam model to parse it.

The missing-model output records parse unavailability in the `# parse` comment. Any token rows emitted for unparsed material carry the following values.

| UD column | Value | Annotation unavailable |
| --- | --- | --- |
| LEMMA | `_` | Dictionary form |
| UPOS | `_` | Universal part of speech |
| XPOS | `_` | Language-specific part of speech |
| FEATS | `_` | Morphological features |
| HEAD | `_` | Syntactic head |
| DEPREL | `_` | Dependency relation |
| MISC | `Parse=None` | Parse status is recorded here |

`Parse=None` marks the whole token row as unparsed. In HEAD, `_` leaves the head unspecified, while `0` identifies the root of a UD tree. With `Parse=None`, `_` in FEATS leaves the form’s morphological features unannotated, and `_` in DEPREL leaves its dependency relation unassigned. Mova supplies no Malayalam-specific tokenization, tagging, lemmatization, or dependency analysis for these rows.

## Annotated data and the unmeasured UD baseline

Mova holds no annotated Malayalam corpus and has no measured Malayalam treebank baseline. These statements concern Mova’s data and results. The package described in [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) calls for the same train-to-development baseline for every language.

| Measure | What counts as a correct attachment | Current Malayalam result |
| --- | --- | --- |
| UAS, unlabeled attachment score | The predicted syntactic head matches the reference head. | Unmeasured |
| LAS, labeled attachment score | The predicted head and its dependency relation both match the reference. | Unmeasured |

Each score is the proportion of evaluated tokens that meet its criterion. Computing the scores requires reference annotations and corresponding parser predictions. Rows marked `Parse=None` have no predicted head or relation and provide no measured score. Attachment scores describe dependencies on the evaluation data. Span recognition, lemma and feature accuracy, and discourse interpretation require separate evaluation.

## The training and evaluation procedure for a future baseline

A first Malayalam baseline requires an annotated UD training split and an annotated development split. The training split supplies the examples learned by the tree parser and tagger. The development split supplies reference trees for evaluating the trained model on sentences kept out of training. Identify the treebank and its version along with the two splits so the figures can be interpreted when the data or annotation conventions change.

| Stage | Mova command | Role in the baseline |
| --- | --- | --- |
| Prepare the training annotations | `en xpos-fill` | Prepare the language-specific part-of-speech column before training. |
| Train the model | `en train` | Train the tree parser and tagger on the UD training split. |
| Evaluate the trained model | `en parse-eval` | Measure UAS and LAS against the development trees. |

The `en` crate provides the training and evaluation procedure for a language’s UD data. Compute both scores on the same development split and report which tokens enter the evaluation. For example, if the model assigns the reference head to a token but predicts `obj` where the reference says `nsubj`, that token counts as correct for UAS only. If the relation also matches, it counts as correct for both scores. Identify the trained model and any preprocessing applied to the data in the baseline report.

To use the trained model in `tools/mova-parse`, level 1 must assign `ml` to the intended spans and level 2 must have the corresponding model file. Development-set attachment scores describe the model’s predictions on the evaluation data. Checking that Malayalam spans reach the model in mixed text requires running the multilingual pipeline.

## Parsed input requirements for frames and pragmatics

Mova’s `prag` and `world` components read English trees. Their input is structured syntactic analysis. A language label can select a parser model. The tree supplies syntactic relations that downstream analysis can use to identify a predicate and its arguments. The missing-model output for Malayalam supplies no such tree.

| Form | Romanization | Gloss | Translation |
| --- | --- | --- | --- |
| മീന വാതിൽ തുറന്നു. (constructed) | mīna vātil tuṟannu. | Meena door open.PST | ‘Meena opened the door.’ |

In a frame analysis of this example, the opening is the event, Meena is the agent, and the door is the entity opened. In answer to ‘Who opened the door?’, the sentence identifies Meena. In answer to ‘What did Meena open?’, it identifies the door. The clause has the same dependency structure in both exchanges. The preceding question determines which part supplies the requested information. Mova produces no Malayalam tree for the example. Work on Malayalam frames and pragmatics requires parsed input and downstream support for the resulting analysis. Each downstream task requires its own evaluation.

## How Mova handles Malayalam grammar claims in Squid

Squid reads the grammar manual and turns grammatical points into claims. Formalizable claims include rules, closed lists, and statistics. These claims enter Squid’s queue for possible implementation in Mova. A claim takes effect in processing only when Mova implements it.

`tools/langseg` places Malayalam-script spans under `other`. `tools/mova-parse` has no `ml` model and records `Parse=None` in MISC on any token rows it emits for those unparsed spans. The rows carry no Malayalam tags, lemmas, or dependency trees. Mova holds no annotated Malayalam corpus and has no measured Malayalam UD baseline. The `prag` and `world` components read English trees and have no parsed Malayalam input.

## Sources for this chapter

- [What every language gets](https://md.mova.elamur.ai/free/en/docs/languages/PACKAGE/) specifies the train-to-development baseline for language packages.
- [Sources](https://md.mova.elamur.ai/free/en/docs/languages/ml/sources/) lists grammar references for the manual. The Malayalam sentences in this chapter are constructed examples.
- [← previous 32. Reference, discourse and dialogue](https://md.mova.elamur.ai/free/en/docs/languages/ml/32-reference-and-discourse/)
- [next → Sources](https://md.mova.elamur.ai/free/en/docs/languages/ml/sources/)
- [↑ back to Malayalam (ml) — a reference manual for Mova](https://md.mova.elamur.ai/free/en/docs/languages/ml/)

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