34. Old Polish in Mova
Mova uses pl-x-old as the language code for Old Polish. The edition has a grammar, but Mova has neither an annotated Old Polish treebank nor a trained Old Polish parser model. This chapter describes how that gap affects language identification, the annotation returned by the multilingual parser, and the analyses that depend on a syntactic tree.
Language segmentation and model selection
Mova’s multilingual parser, 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 by its language code. A sentence with more than one language can therefore call for more than one model. Each lookup uses the language’s own data directory and the model named for that code in its models directory.
For Latin-script text, tools/langseg distinguishes English and French using a Latin-script table, a lexicon for each language, and a character 4-gram model. Recognition of Latin script alone cannot identify Old Polish. An additional Latin-script language needs a Lang code and a lexicon. The langseg latin-lexicon command builds a lexicon from an open Universal Dependencies (UD) training split. The pl-x-old edition code identifies the language in the manual. An Old Polish identification in running text would require support in the segmenter.
Language identification and model availability are separate conditions. A span can have an assigned language for which there is no model. Conversely, model selection uses the code assigned to the span, so the presence of a model for another Latin-script language does not supply an Old Polish analysis. The English and French model files are en.bin and fr.bin. There is no level-2 model for pl-x-old.
Old Polish output with Parse=None
When a span’s language has no model file, tools/mova-parse reports the missing model in the # parse comment. The output also records the condition on the affected token rows. The comment gives the reason at the level of the parser report. The row values tell a reader or downstream consumer which annotations are unavailable for those tokens.
| Output field | Value for a token of a language without a model | Annotation the parser leaves unset |
|---|---|---|
LEMMA | _ | Dictionary form |
UPOS | _ | Universal part of speech |
XPOS | _ | Language-specific part-of-speech tag |
FEATS | _ | Morphological features |
HEAD | _ | Index of the syntactic head |
DEPREL | _ | Dependency relation |
MISC | Contains Parse=None | Records that the token has no parse |
For an Old Polish token represented this way, a blank FEATS field leaves its morphological properties unspecified. The blank HEAD and DEPREL fields leave both ends of the syntactic decision open. The output supplies neither an attachment to another token nor a statement that the token is the root of a tree. Parse=None gives the reason the fields are blank. It is a processing status, so it applies independently of the token’s spelling, inflection, or function in the sentence.
The output convention concerns tokens shown for a span. The presence of those rows does not establish that Mova applied Old Polish tokenization rules. Similarly, a language label from the first level reports a segmentation decision. The fields in the table require analysis at the second level.
Treebank availability and the unmeasured parser baseline
Mova holds no annotated Old Polish corpus. Its language package specification, What every language gets, calls for the same parser baseline for each language. That baseline requires a UD treebank with a training split for fitting the model and a development split with reference trees for scoring its predictions.
Mova’s own parser is in the en crate. The workflow applies en xpos-fill before en train, which trains the tree parser and tagger on the language’s UD training split. The en parse-eval command measures attachment on the development split using the model trained on the training split. The crate name is shared by this workflow across languages. The training data and resulting model are language-specific.
| Measure | What counts as a correct attachment | Old Polish baseline |
|---|---|---|
| UAS, unlabeled attachment score | The predicted head matches the reference head | Unmeasured |
| LAS, labeled attachment score | The predicted head and dependency relation both match the reference annotation | Unmeasured |
For example, when a predicted head matches the reference head but the relation differs, that attachment counts as correct for UAS and incorrect for LAS. This distinction concerns comparisons between an actual parser output and annotated reference trees. A row marked Parse=None supplies no predicted attachment for that comparison. The Old Polish package has no measured UAS or LAS because the treebank baseline has not been run. The availability of models for English and French supplies no Old Polish measurement.
The inputs required by frames and pragmatics
Mova’s frame analysis, pragmatics and world components read English trees. The pragmatics and world components are named prag and world. The input relevant here is a parsed tree, with syntactic attachments and relations. A language label identifies the span, and a tag can classify a word, but neither supplies the relations among words that a tree provides.
The gap matters for analyses that depend on grammatical relations. A frame analysis that uses a predicate’s dependents needs to know which words attach to the predicate and what relations the tree assigns them. Rows with _ in HEAD and DEPREL provide neither piece of information. Those rows also provide no tree for the pragmatics or world components to read. Even where language segmentation succeeds, it cannot fill this input requirement.
An Old Polish treebank and model address the missing syntactic input. Support for reading Old Polish trees in the downstream components is a distinct part of language coverage. The behavior specified for those components is that they read English trees. The train-to-development attachment baseline, in turn, measures syntactic predictions against a treebank. It supplies no measurement of frame or pragmatic analysis.
Grammar claims in Squid and their implementation status
Squid reads the grammar manual and represents every grammatical point as a claim. The claim records a statement about the language. Formalizable claims, including rules, closed lists and statistics, enter Squid’s queue for a place in Mova’s code. A queued claim records work that awaits implementation. Its presence does not change the output of the segmenter, parser, or downstream components.
Conditions and exceptions are part of a rule claim. A restriction that applies only in a stated environment must carry that environment with it. An exception specifies where the general rule gives a different result. Likewise, a closed list specifies its membership, while a statistical claim concerns the observations on which the statistic is based. A statistic described in the grammar and a parser attachment score have different inputs. The parser score requires predictions and reference trees.
The first implementation priorities for a language without a model are the points needed for tokenization, tagging, and a UD treebank baseline. Tokenization concerns where tokens begin and end. Tagging concerns the grammatical labels assigned to those tokens. A treebank baseline requires reference annotations for testing predicted heads and dependency relations. These uses all draw on grammatical description, but they produce different outputs. Squid’s claim queue is where formalizable points await a place in that work.
How Mova handles Old Polish today
For pl-x-old, Mova stops before language-specific tokenization, tagging, lemmatization, and dependency parsing. Its ability to identify a span’s language is limited to the script or lexicon support in tools/langseg. For a span assigned pl-x-old, tools/mova-parse reports the missing model in the # parse comment and returns the unannotated rows with Parse=None in MISC. This leaves no Old Polish tree for frames, prag, or world.
There is no annotated Old Polish treebank in Mova and no measured parser baseline. Squid reads the Old Polish grammar as claims. Formalizable claims await implementation in its queue, and the grammar rules have no implementation for pl-x-old yet.
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/pl/pl-x-old/34-mova-tools/