Mova0.6 pre-release

the flag of Poland 27. Masovian in Mova

The Masovian grammar manual serves the edition pl-x-masovian. Mova has a multilingual parsing workflow, but the Masovian package currently has neither a level-2 parser model nor an annotated corpus for training and evaluation. This chapter describes the coverage of language identification, the output for spans that lack a model, and the measurements available for Masovian.

Edition code and language segmentation coverage

pl-x-masovian is the edition code for this manual and the language code used here for Masovian when discussing parser model availability. The edition code identifies the language in the manual. Recognition of that language in running text depends on the coverage of the language segmenter.

The first level of tools/mova-parse uses tools/langseg to give each sentence and span a language label. Sentence and span labels matter separately in multilingual text because the parser selects a model for each span. The documented coverage of language identification is as follows.

InputCoverage in tools/langseg
English and French in Latin scriptThe Latin table, a lexicon for each language, and a character four-gram model distinguish English and French.
Hebrew-script varietiesThe segmenter distinguishes varieties written in Hebrew script.
Hebrew or Aramaic in scholarly transliterationThe segmenter recognizes this use of transliteration.
Every other scriptThe segmenter returns other.

The documented Latin-script coverage names English and French. For an additional Latin-script language, the extension requires both a lexicon and a Lang code. langseg latin-lexicon builds the lexicon from open Universal Dependencies (UD) training splits. Recognition of a Masovian span depends on the segmenter knowing the relevant script or lexicon. The presence of pl-x-masovian as a manual edition does not establish that the segmenter can assign that label to ordinary Latin-script input. The other rule in the table concerns scripts and does not specify the label for an unfamiliar Latin-script span.

Language identification and grammatical analysis have separate prerequisites. Adding coverage in the segmenter would allow a language label within that coverage. The span would still need a parser model for the language on that label before it could receive a level-2 analysis.

Multilingual output without a Masovian model

At level 2, tools/mova-parse uses the model file corresponding to the language assigned to each span. When that language has a model, the span goes to its own language’s parser. If the corresponding model is absent, tools/mova-parse records that absence in the # parse comment and leaves the affected tokens without a grammatical analysis.

There is no level-2 model for pl-x-masovian. For a span assigned that code, the missing-model behavior applies. In a multilingual sentence, a neighboring span may still be parsed if its assigned language has a model. The operative condition is model availability for the language of each span.

When reading the output for mixed text, check the language assignment before interpreting the parse status. A span labeled Masovian with a missing model has passed the language assignment stage and lacks the model needed for the second stage. A span assigned a different language does not establish that Mova recognized it as Masovian, even if the text is known independently to be Masovian. A successful parse under a different language label supplies no measurement of performance for pl-x-masovian.

Missing annotations and Parse=None

The missing-model output identifies the absent parse at two places. The # parse comment reports the language for which a model is missing. The affected token rows carry Parse=None in MISC. Six annotation columns contain the literal value _.

ColumnEntry for a token of a language with no modelAnnotation unavailable
LEMMA_Dictionary form
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Morphological features
HEAD_Syntactic head
DEPREL_Dependency relation to the head
MISCParse=NoneParse status recorded as absent

In this output, _ in FEATS leaves open which features the form bears. The two underscores in HEAD and DEPREL leave its syntactic attachment unspecified, including whether the token is the root. Likewise, an underscore under UPOS or XPOS leaves its category unassigned. The same pattern applies across the affected tokens regardless of the words they contain or the analysis a grammarian might give them.

The existence of output rows with this marker supplies no Masovian-specific tokenization. Mova can show the missing annotation on the rows it emits, while tokenization, tagging, lemmatization, and dependency parsing for Masovian remain unavailable. Parse=None is a statement about the system’s output for the span. It carries no judgment about whether its wording is grammatical.

The absent treebank and the unmeasured parsing baseline

Mova holds no annotated Masovian corpus, or treebank. A UD treebank supplies reference annotation against which a parser’s predictions can be scored. The shared baseline uses a training split to fit the parser and tagger and a development split to compare predictions with annotated sentences. With no Masovian treebank in the package, that train-to-development baseline is unmeasured for pl-x-masovian.

The shared evaluation reports unlabeled attachment score (UAS) and labeled attachment score (LAS). The two scores test different amounts of information in the same predicted dependency structure.

MeasureWhat must agree with the reference annotation
UASThe predicted syntactic head
LASBoth the predicted syntactic head and the dependency relation

For Masovian there is no measured value for either score. An underscore in HEAD or DEPREL belongs to the missing-model representation. It cannot be used as an attachment prediction in place of a benchmark run. Similarly, counting rows marked Parse=None would count missing output, with no reference attachments against which to measure accuracy.

The two gaps affect different uses of the package. The missing model prevents a level-2 Masovian parse at runtime. The missing annotated corpus leaves Mova without the Masovian training and development data for its shared baseline. A future model’s presence would make model selection possible for spans correctly labeled Masovian. A measured baseline would still require evaluation against the development data.

The shared training and evaluation workflow

Mova’s parser is in the en crate. The language package specification in What every language gets calls for the same baseline for each language. The workflow is defined in terms of a language’s UD splits.

OrderCommandRole
1en xpos-fillPrecedes parser and tagger training.
2en trainTrains a tree parser and tagger on the language’s UD training split.
3en parse-evalMeasures UAS and LAS on the development split for the train-to-development baseline.

Mova has models for English (en.bin) and French (fr.bin). Those models are available for spans assigned their respective languages. The shared workflow describes how Mova trains and measures a language model when the required data are available. For Masovian the workflow has no treebank in Mova to run against, and the parser has no Masovian model file to select.

The UD training data also have a separate role in extending language identification. Open training splits are the input for the Latin-script lexicon workflow. That lexicon and its Lang code support language assignment at the first level. The model trained for tree parsing supplies the second level. Evaluation on the development split measures the dependency parser’s performance, so the reported attachment measures do not in themselves measure language segmentation.

Frames, pragmatics and the current input gap

Mova’s frames, pragmatics, and world components, including prag and world, read English trees. A sentence or span label provides the result of language identification. A dependency tree provides the syntactic relations that those components read. The missing-model output for Masovian has no head or dependency relation annotations to serve as that input.

For example, the following sentence can be described in the manual even though Mova cannot currently supply a Masovian dependency tree for it.

The gloss gives a human analysis of the verb’s person, number, and tense and the noun’s case and number. It does not supply a tree to Mova. For a span assigned pl-x-masovian, the result at level 2 remains the missing-model output. There is consequently no Masovian tree input for a frame, pragmatic analysis, or world interpretation through the current components. Parsing is the immediate prerequisite for another language to supply tree input. The documented readers currently read English trees.

The manual and Squid's claim queue

Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable claims enter a queue for a place in Mova’s code. These include rules, closed lists, and statistics. A claim in that queue is awaiting implementation.

A rule can state which form occurs in a specified grammatical environment, and a closed list can give the full inventory for a stated category. These are descriptions that Squid can take from the manual. Their inclusion in the queue does not cause the segmenter to recognize forms, the tagger to assign features, or the parser to attach dependents. Corpus annotation and model training have their own roles in the shared workflow.

For Masovian, the first points for implementation are those needed by a tokenizer, a tagger, and a UD treebank baseline. Tokenization concerns identifying the units to annotate. Tagging concerns assigning grammatical categories and features to those units. The treebank baseline needs reference annotation for training and for evaluation on the development split. The claim queue and the baseline answer separate questions about the package. The queue holds formalizable descriptions awaiting implementation. The baseline would give measured attachment scores for a trained parser.

How Mova handles Masovian today

Masovian is identified here by pl-x-masovian. The first level of tools/mova-parse uses tools/langseg to assign languages to sentences and spans. Its documented Latin-script distinction is English and French, using a Latin table, lexicons, and a character four-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Every other script is other. A further Latin-script language requires a lexicon and a Lang code, with langseg latin-lexicon supplying the lexicon from open UD training splits. Mova can identify spans of a language without a model only where the segmenter knows its script or lexicon.

At level 2, tools/mova-parse selects each span’s own language model. No model exists for pl-x-masovian. The # parse comment reports the missing model, and the affected tokens have _ in LEMMA, UPOS, XPOS, FEATS, HEAD, and DEPREL and Parse=None in MISC. Masovian tokenization, tagging, lemmatization, and parsing are unavailable.

Mova has no annotated Masovian corpus and no measured Masovian treebank baseline. The baseline requested in What every language gets uses the parser in the en crate. After en xpos-fill, en train trains a parser and tagger on a UD training split, and en parse-eval measures UAS and LAS on the development split. The existing models are English en.bin and French fr.bin.

Mova’s frames, pragmatics, and world components read English trees. With no Masovian parse, prag and world have no Masovian tree input. Squid reads the manual and queues formalizable grammatical claims. The Masovian rules described in the manual remain unimplemented. The first points for implementation are those needed by a tokenizer, a tagger, and a UD treebank baseline.

Sources for this chapter

This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/pl/pl-x-masovian/27-mova-tools/