Mova0.6 pre-release

the flag of Poland 24. How Mova handles Borderland Polish

Borderland (Kresy) Polish has a grammar manual in Mova under the edition code pl-x-borderland. Mova currently has neither an annotated treebank nor a parser model for the edition. This chapter describes what the multilingual tools can identify and return, what a Universal Dependencies (UD) baseline would measure, and how Squid records the manual’s grammatical claims.

Latin-script language identification and its supported languages

Language identification is level 1 of tools/mova-parse. The tools/langseg component assigns a language to each sentence and span. Span labels matter in multilingual text because level 2 selects its parser separately for each span. A sentence-level label alone therefore gives an incomplete account of how the parser will handle a sentence with more than one span.

InputCoverage in tools/langseg
Latin scriptDistinguishes English and French using a Latin table, a lexicon for each language, and a character 4-gram model.
Hebrew scriptDistinguishes Hebrew-script varieties.
Scholarly transliterationRecognizes Hebrew or Aramaic in scholarly transliteration.
Every other scriptAssigns other.

A character 4-gram consists of four consecutive characters. The lexicons and the character model supply evidence for identification. Identifying a stretch of text as a language and assigning grammatical analyses to its words are separate operations, performed at different levels.

The Latin-script extension mechanism requires a lexicon and a Lang code for each additional language. The langseg latin-lexicon command uses open UD training splits to build lexicons for this purpose. The edition code pl-x-borderland identifies the manual. Borderland Polish is outside the current English–French coverage of the Latin-script language identifier, so a reader should expect no dedicated Borderland Polish span identification from that coverage. In particular, the later description of missing-model output concerns a span with a language label for which level 2 lacks a model. The script of an input by itself does not establish that label.

Model lookup and unannotated output with Parse=None

At level 2, tools/mova-parse looks up a model for the language of each span. Within $MOVA_DATA, it uses the language code as the directory name and looks in that directory’s models subdirectory for a .bin file named after the same code. One sentence can consequently contain spans with different model lookups. The lookup depends on the language assigned at level 1.

When a language has no model file, tools/mova-parse reports the language in the # parse comment. The affected token rows have the following values in the analysis columns.

ColumnValueAnnotation absent from the row
LEMMA_Lemma, or dictionary form
UPOS_Universal part-of-speech tag
XPOS_Language-specific part-of-speech tag
FEATS_Morphological features
HEAD_Syntactic head
DEPREL_Dependency relation to the head
MISCContains Parse=NoneThe marker records that the row has no parse.

The comment records which language lacks a model, while Parse=None marks the affected rows. An underscore in HEAD leaves the head unspecified. An underscore in DEPREL likewise supplies no relation. These rows therefore furnish neither the attachments nor the labels needed to recover a dependency tree.

There is no level-2 model for pl-x-borderland. For tokens under that code, Mova returns the missing-model output described above. The presence of token rows in that output supplies no Borderland Polish tokenization analysis. Mova currently provides no tokenization, tagging, lemmatization, or parsing for the variety.

Treebank availability and the unmeasured UD baseline

Mova holds no annotated treebank for Borderland Polish. A UD treebank supplies annotated sentences against which parser output can be evaluated. The kind of reference annotation needed for a parsing baseline identifies the syntactic words, their heads, and the relations linking them. The baseline requested in What every language gets uses the same train-to-development evaluation setup for each language.

MeasureWhat it measures
Unlabeled attachment score (UAS)The proportion of evaluated words for which the predicted head matches the reference head.
Labeled attachment score (LAS)The proportion of evaluated words for which both the predicted head and the predicted dependency relation match the reference annotation.

A word with the correct head and an incorrect relation counts as a correct attachment for UAS only. A word with an incorrect head receives no credit under either measure, even if the predicted relation matches. Both measures depend on reference trees. A grammar description can explain an attachment, but evaluating a parser requires sentences in which the reference attachments have been recorded.

Borderland Polish has no measured UD baseline in Mova. There is no UAS or LAS result for the edition. Missing-model rows describe the output of the pipeline when a model is unavailable. A score would require parser predictions and reference annotations for a development split.

Training, tagging and evaluation prerequisites

Mova’s own parser is the en crate. The training procedure starts with a language’s UD training split. The procedure runs en xpos-fill first. Then en train uses the training split to train a tree parser and tagger. The corresponding development split supplies the reference annotation for the train-to-development evaluation with en parse-eval. That command measures attachment with UAS and LAS.

OperationPrerequisite or inputRole
langseg latin-lexiconAn open UD training splitBuilds a lexicon for Latin-script language identification. Adding the language also requires a Lang code.
en xpos-fillThe language’s UD training dataPrepares XPOS before training.
en trainThe prepared UD training splitTrains the tree parser and tagger.
en parse-evalThe trained parser and the UD development splitMeasures UAS and LAS on development data.

The identification lexicon and the parser model serve different jobs even when training data inform both. The lexicon supports a span’s language assignment. The parser model supports grammatical analysis of a span after that assignment. Likewise, part-of-speech tags and attachment scores answer different questions. A tag classifies a word, while the attachment scores assess the word’s connection to a head and, for LAS, the label of that connection.

Models exist for English (en.bin) and French (fr.bin). Borderland Polish has no annotated corpus in Mova from which to draw the training and development splits for its own baseline. The grammatical points relevant first are those needed to define tokenization, assign tags, and annotate reference UD trees. For evaluation to be interpretable, the reference analysis must make these decisions explicit in the corpus.

Tree requirements for frames and pragmatics

Mova’s frame, pragmatics, and world components, including prag and world, read English trees. For another language, a parsed tree is a prerequisite for these components to have input to read. The need for a tree applies even when the span already has a language label or the grammatical features of its words can be described in the manual.

A dependency tree records which word each dependent attaches to and how the two are related. Consider Maria czyta książkę (constructed). The form is Maria czyt-a książk-ę, glossed Maria.NOM read-PRS.3SG book-ACC.SG, with the translation “Maria is reading a book.” An illustrative UD analysis attaches Maria to czyta as the subject and książkę to czyta as the object. These attachments express relations between the words that are absent from a list of forms or case glosses alone.

For pl-x-borderland, the missing values in HEAD and DEPREL leave the components without a tree to read. The prerequisite is syntactic input. The availability of such input and the capacity to interpret trees of a given language are separate matters. The tree input these components currently read is English.

How Mova handles Borderland Polish claims in Squid

Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable claims, including rules, closed lists, and statistics, enter Squid’s queue for a place in Mova’s code. A queued claim still awaits implementation. The manual’s description of a grammatical distinction and the presence of that distinction in the running tools are separate states.

For pl-x-borderland, tools/langseg can identify spans only within its script or lexicon coverage. Its Latin-script distinction currently covers English and French. tools/mova-parse has no Borderland Polish model. For tokens under the edition code, it leaves LEMMA, UPOS, XPOS, FEATS, HEAD, and DEPREL unannotated and puts Parse=None in MISC. The package has no Borderland Polish treebank and no measured UD baseline. The frame, pragmatics, and world components read English trees and have no Borderland Polish parse to read.

The manual’s Borderland Polish rules await implementation. The first claims relevant to that work concern the distinctions a tokenizer and a tagger need and the annotation needed for a UD treebank baseline.

Sources for this chapter

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