22. Dari in Mova and Squid
The Dari edition uses the language code prs. Mova’s text pipeline assigns language labels to spans and uses those labels to select parser models. Squid reads this grammar as a set of claims. For Dari, the current package has neither a parser model nor an annotated treebank.
Language segmentation and the Perso-Arabic script
Level 1 of the multilingual pipeline assigns a language label to each sentence and span. A span is a stretch of text to which the segmenter assigns one label. Span labels matter in mixed-language input because level 2 selects a parser separately for each span.
The segmenter distinguishes English and French in Latin script using a Latin character 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 set receive the label other. Dari written in the Perso-Arabic script falls in that category.
The code prs identifies Dari in the grammar and parser package. When ordinary written Dari receives other, that label supplies no identification of the span as prs. The provision for adding a Latin-script language uses a lexicon derived from an open Universal Dependencies training split and a Lang code. That provision applies to Latin-script recognition.
| Form | Romanization | Gloss | Translation |
|---|---|---|---|
| من آمدم | man āmad-am | 1SG come.PST-1SG | ‘I came.’ (constructed) |
Here man is the first-person singular subject pronoun, āmad is the past stem of ‘come’, and -am marks first-person singular agreement. These are grammatical properties of the example. The script-level label for the Perso-Arabic text supplies none of those properties.
Parser model availability and unannotated output
Level 2 uses a model file for the language assigned to the span. No such file exists for prs. For a language without a model, the multilingual parser reports the missing model in the # parse comment. Its output rows use the following values for the unavailable analysis.
| Field | Value with no parser model | Information the field would carry in an analyzed row |
|---|---|---|
| LEMMA | _ | Dictionary form |
| UPOS | _ | Universal part of speech |
| XPOS | _ | Language-specific part of speech |
| FEATS | _ | Morphological features |
| HEAD | _ | Index of the syntactic head, or 0 for the root |
| DEPREL | _ | Dependency relation to the head, or the root relation |
| MISC | Parse=None | Explicit indication that the row has no parse |
The output convention describes token rows when they are present. A row marked Parse=None carries no validated Dari token analysis. Dari has no tokenizer, tagger, lemmatizer or dependency parser in this package. In particular, HEAD and DEPREL are both unavailable. The output therefore provides neither a choice of head nor a relation label for any proposed dependent.
The sentence-level comment and the row-level marker describe availability at different points in the output. The comment reports the missing model, and Parse=None accompanies each affected row. An underscore in FEATS alongside that marker supplies no evidence about which features the word has.
Treebank availability and baseline measurements
Mova’s language package calls for the same parsing baseline for every language. Its own parser trains a tagger and dependency parser on a Universal Dependencies (UD) training split after XPOS filling. Evaluation uses the development split. The available models are for English and French. Mova holds no annotated Dari treebank, and there is no measured Dari baseline.
A treebank provides reference analyses against which parser output can be scored. In this baseline, the training split supplies the examples the model learns from, and the development split supplies the reference analyses for evaluation. The two metrics measure attachment to a syntactic head.
| Metric | Full name | Condition for a correct attachment |
|---|---|---|
| UAS | Unlabeled attachment score | The predicted head matches the reference head. |
| LAS | Labeled attachment score | The predicted head and the dependency relation both match the reference annotation. |
For example, suppose an analysis of the constructed sentence above attaches the subject pronoun to the verb. If that head matches the reference and the predicted relation differs from the reference, the attachment counts as correct for UAS only. This illustrates the metrics. It supplies no measured value for Dari. The empty fields in current output mark missing analysis, so they supply no baseline score either.
Dependencies of frames and pragmatics on parsed trees
Mova’s frame, pragmatics and world components read English trees. For another language, a parsed tree is a prerequisite for supplying input to these components. Dari currently stops before that prerequisite is met.
A dependency tree identifies which elements are linked syntactically and labels those links. In the constructed example, an analysis would need to identify the past-tense verb as the clause’s root and link the pronoun to it as a subject. The missing annotations give Mova no such links to read. A gloss in this manual explains the example to a reader and supplies no tree to the pipeline.
The absence of input applies to each downstream component. Mova currently derives no frames, pragmatic analyses or world analyses from Dari trees. The availability of a parser would address the tree prerequisite. The components’ stated input is English trees.
Grammar claims in Squid and their implementation status
Squid reads the grammar manual and turns every grammatical point into a claim. Claims that can be formalized, including rules, closed lists and statistics, wait in Squid’s queue for a place in Mova’s code. A queued claim records a point that can be considered for implementation. It has no effect on the output while it is in the queue.
For example, the description of -am in āmad-am states an agreement property of the form. That description gives the reader a condition to check in the example. It supplies no feature value to a parser output row. The same distinction holds for claims about phrase structure and dependency relations. Manual coverage records what the grammar describes, and implementation status records what the software can produce from input.
None of the Dari grammar rules is implemented in Mova today. The points that would come first are those needed by a tokenizer, a tagger and a UD treebank baseline.
How Mova handles Dari today
tools/mova-parse assigns language labels at level 1 through tools/langseg and uses the corresponding model for each span at level 2. tools/langseg recognizes English and French in Latin script, Hebrew-script varieties, and Hebrew or Aramaic in scholarly transliteration. Dari’s Perso-Arabic script receives other. The segmenter can identify a language only where it knows the script or lexicon needed to recognize it.
There is no level-2 model for prs. A missing model is reported in the # parse comment. Unannotated token rows have _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, with Parse=None in MISC. Mova does not tokenize, tag, lemmatize or parse Dari.
The en crate provides Mova’s own parser. After en xpos-fill, en train trains a tree parser and tagger on a UD training split. en parse-eval measures UAS and LAS on the development split. The available models are en.bin and fr.bin, and What every language gets calls for the same baseline across languages. Mova holds no annotated Dari treebank and has measured no Dari baseline.
Mova’s frame, pragmatics and world components read English trees. Dari supplies no parsed trees for them to read. Squid turns the manual’s grammatical points into claims and queues those that can be formalized. The Dari rules remain unimplemented. Tokenization, tagging and the UD treebank baseline are the first needs for implementation.
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/fa/prs/22-mova/