28. Middle Persian in Mova
Mova uses the language code pal for Middle Persian. Its multilingual parser first assigns languages to text spans and then uses a language-specific model to annotate each span. Middle Persian has no model or treebank in Mova. The grammar manual supplies claims about the language, while a parsing baseline requires examples of those claims applied consistently to texts.
Language and script recognition in langseg
At level 1, tools/langseg assigns a language to each sentence and span. A span is the unit passed to level 2, so a sentence containing more than one language can have different model selections for different spans. The level-1 label describes the segmenter’s classification of the text.
For Latin script, tools/langseg distinguishes English and French using its Latin table, a lexicon for each language and a character 4-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside its recognized inventory fall under other, including Pahlavi script. A Middle Persian passage in Latin transcription still requires Middle Persian coverage in the Latin recognizer. Transcribing the passage changes the characters the recognizer sees.
The route for adding a Latin-script language uses a lexicon and a Lang code. The langseg latin-lexicon command derives the lexicon from an open Universal Dependencies (UD) training split. The Latin-script route addresses recognition of that representation. Native-script recognition depends on coverage of the script itself. Both concern span labels. The model file determines whether a labeled span can then receive a grammatical analysis.
The missing pal model and Parse=None output
At level 2, tools/mova-parse selects the model for the language assigned to the span. When that language has no model file, the # parse comment reports the missing model and the token rows carry the values below. Middle Persian exercises this behavior when the span is assigned pal.
| Field | Value | Information the field would normally carry |
|---|---|---|
LEMMA | _ | Lexical base form |
UPOS | _ | Universal part of speech |
XPOS | _ | Language-specific part of speech |
FEATS | _ | Morphological features |
HEAD | _ | Index of the syntactic head, or zero for the root |
DEPREL | _ | Dependency relation to the head, or the root relation |
MISC | Parse=None | Status of the token row in the absence of a model |
The comment records the missing model, and Parse=None attaches that status to the affected rows. The underscores supply no grammatical analysis. In particular, an underscore in HEAD supplies no head assignment, including a root assignment. The presence of token rows supplies no evidence that their boundaries follow Middle Persian word or clitic conventions. Recognition is a separate condition. A native-script span can receive the label other before model selection, so the missing-model output alone cannot identify the language of the original text.
Treebank status and unmeasured parsing baselines
Mova holds no annotated Middle Persian corpus. The package asks for a common baseline for each language in What every language gets. Mova’s own parser is in the en crate. In the baseline workflow, en xpos-fill precedes en train, which trains a tree parser and tagger on the language’s UD training split. The en parse-eval command measures parsing on the development split. English and French have model files, en.bin and fr.bin, respectively.
The two parsing measures are unlabeled attachment score (UAS), which counts correct head assignments, and labeled attachment score (LAS), which requires the correct head and dependency relation together. A Middle Persian baseline would require reference assignments across a development split, alongside a training split for fitting the model. Mova has measured neither score for pal. The underscores in the missing-model output record the absence of predictions, so they do not supply an evaluation result.
A grammatical example can illustrate a construction with a single sentence. A development split gives a different kind of evidence by showing whether a trained parser can assign the reference analysis to sentences held out from training. Its interpretation depends on the annotations and on the representations and kinds of text in the split.
Manual claims and the Squid queue
Squid reads the manual and turns each grammatical point into a claim. Formalizable claims wait in its queue for a place in Mova’s code. These include rules with specified conditions, closed lists with defined membership, and statistics. The claim’s scope matters. A rule about an enclitic needs to identify the form, the conditions on its host and any exceptions. A statistic needs to specify what is counted and the set of instances over which it is calculated.
Queue status describes a claim awaiting implementation. A claim about a word boundary does not determine the segmentation of parser input, and a claim about a dependency does not supply a head or relation to an output row. The first claims a Middle Persian parsing pipeline needs to put to work are those that settle token boundaries, guide tagging and support consistent annotation of a UD treebank.
Data needed for tokenization, tagging and dependency parsing
Training and evaluation need text for which annotators can relate the source representation to individual words. For Middle Persian, the transcription conventions need to specify how written forms, transliterated spellings and normalized readings correspond wherever those representations are supplied. This is especially important for a heterogram, whose written form and Middle Persian reading can differ. The annotation needs to preserve which written span supports the reading used for the lemma and analysis.
Tokenization needs consistent decisions about sentence boundaries and the treatment of bound forms. When a clitic is attached in the writing but counted as a separate syntactic word, the data need to identify both the written group and the words it contains. The following example isolates the difference between the clitic’s host and its role in the clause.
| Form in Latin transcription | Gloss | Translation |
|---|---|---|
| u-š guft | and=3SG say.PST | ‘And he said.’ (constructed) |
The hyphen marks attachment in this transcription. The third-person clitic -š follows the conjunction u ‘and’ and expresses the agent of past transitive guft ‘said’ in this reading. A boundary annotation needs to account for the clitic’s attachment to the conjunction. A dependency annotation needs to account for its role with the verb.
Tagging data need lemmas, universal part-of-speech tags, the chosen treatment of language-specific tags, and morphological features where applicable. The same reading should receive consistent annotation across spelling variants. Identical spellings can also have different readings or functions, so examples in context are needed to distinguish them. The nominal linker provides a simple illustration of the difference between recording a form and assigning it a syntactic function.
| Form in Latin transcription | Gloss | Translation |
|---|---|---|
| mard ī dānā | man LINK wise | ‘a wise man’ (constructed) |
Here mard is the noun and dānā its adjectival modifier, with ī linking them. A treebank needs a consistent tag and dependency treatment for the linker as well as a head and relation for the modifier. Comparable decisions are needed for the clause constructions that recur across texts, including the treatment of core arguments in present and past constructions. Once those decisions are applied across sentences, the assigned heads and relations can serve as training targets and as reference analyses for evaluation.
Current input limits for frames, pragmatics and world
Mova’s frames, pragmatics and world processing read English trees. Their input is a syntactic analysis of the sentence. A language label identifies the span, and a token row can locate a form, but neither supplies the grammatical relations the downstream components read. In the constructed past clause above, for example, the agent interpretation depends on the relation between the clitic and the verb. A row marked Parse=None carries no such relation.
For Middle Persian, the absence of parsed trees is the immediate input gap for all three downstream areas. A Middle Persian UD tree would supply syntactic input. The stated coverage of these components is English trees, so the current package provides no demonstrated downstream processing of Middle Persian.
How Mova handles Middle Persian today
At level 1, tools/mova-parse uses tools/langseg to assign languages to sentences and spans. Recognition depends on the scripts and lexicons the segmenter knows. It covers English and French in Latin script, Hebrew-script varieties, and Hebrew or Aramaic in scholarly transliteration. Other scripts receive other. Latin-script recognition can be extended with a Lang code and a lexicon from an open UD training split using langseg latin-lexicon.
At level 2, tools/mova-parse uses the model for each span’s assigned language. There is no pal model. The # parse comment reports a missing model, and affected token rows have _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, with Parse=None in MISC. Middle Persian tokenization, tagging, lemmatization and dependency parsing are unavailable.
Mova has no Middle Persian treebank or measured baseline. The baseline requested in What every language gets uses en xpos-fill before en train and measures UAS and LAS on the development split with en parse-eval. Squid records the manual’s claims and queues those that can be formalized. The chapter’s rules await implementation, beginning with the points needed for tokenization, tagging and a UD treebank baseline. Frames, pragmatics and world read English trees and currently have no parsed Middle Persian input.
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/pal/28-mova-tools/