Mova0.6 pre-release

Valencian: the senyera of Valencia, with the crowned blue band at the hoist 32. Valencian in Mova

Mova uses ca-x-valencia for the Valencian grammar edition. Its multilingual pipeline assigns languages to text spans before looking up a parser model for each span. Valencian has no model or annotated treebank in Mova, so this chapter describes what the pipeline can report, which measurements are missing, and what the grammar contributes through Squid.

The Valencian edition and its data inventory

The edition code identifies the language described by the manual. In the parser pipeline, a language code also serves as the lookup key for a span’s model. Publishing the manual under a code and supplying the runtime resources for that code are separate steps.

ResourceState for Valencian
Grammar editionca-x-valencia
Annotated corpusMova holds no Valencian treebank
Level-2 parser modelNo model exists for ca-x-valencia
Train-to-development baselineNo Valencian UAS or LAS has been measured

The package specification in What every language gets calls for the same baseline for every language. For Valencian, the missing treebank leaves the baseline unmeasured. The missing model governs what the parser returns for tokens in a span assigned the Valencian code.

Language segmentation and requirements for a Valencian language code

At level 1, tools/langseg assigns a language to each sentence and each span. This matters in mixed-language text because level 2 uses the language of the span to select a model. A sentence can therefore contain spans with different model requirements.

For Latin script, the documented recognizer distinguishes English and French using a Latin 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 the supported cases receive other.

The documented route for adding another Latin-script language requires both a lexicon and a Lang code. langseg latin-lexicon builds lexicons from open Universal Dependencies (UD) training splits. Valencian shares the Latin script with the existing English and French cases. Script alone therefore does not provide a Valencian distinction. The edition code gives the identifier to use for Valencian, while recognition depends on support in the segmenter.

A mixed-language example (constructed):

SpanFormGlossTranslation
ValencianDemà plourà.tomorrow rain.FUT.3SG‘It will rain tomorrow.’
EnglishBring an umbrella.bring.IMP INDF umbrella‘Bring an umbrella.’

The spans in this example are identified by hand. If level 1 assigns the Valencian code to the first span and English to the second, level 2 looks for a model for each span. The missing Valencian model then affects the first span, and the English model is available for the second.

Model lookup, parse comments and unannotated token fields

At level 2, tools/mova-parse uses the model file named for the language code in that language’s model directory. The documented lookup is specific to the span’s code. English and French have model files, en.bin and fr.bin, respectively.

When a span’s model file is missing, tools/mova-parse reports the missing model in the # parse comment. The comment supplies the model-level explanation for the blank annotations. For any token rows belonging to the affected span, the fields have the following values.

FieldValue with no modelAnnotation normally carried by the field
LEMMA_Dictionary form
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Morphological features
HEAD_The token’s syntactic head
DEPREL_Dependency relation to that head
MISCParse=NoneToken-level indication that the parse is unavailable

For a span assigned ca-x-valencia, this is the current missing-model result. The presence of a token row with Parse=None records the absence of a parse for that row. It does not establish that Mova has carried out Valencian tokenization or assigned a lemma, part of speech or syntactic relation.

The treebank training workflow and current baseline status

Mova’s own tree parser and tagger are in the en crate. The workflow uses annotated Universal Dependencies data for the language being trained. For the package baseline, training uses the treebank’s train split and evaluation uses its development split.

StageCommandRole in the baseline
Prepareen xpos-fillPrepare the UD training data for the training step
Trainen trainTrain the tree parser and tagger on the language’s train split
Evaluateen parse-evalMeasure UAS and LAS on the development split after training

Unlabelled attachment score (UAS) measures how often the predicted syntactic head matches the reference head. Labelled attachment score (LAS) requires both the head and the dependency relation to match. A token attached to the correct head with the wrong relation can count as correct for UAS while failing the LAS criterion. Both scores require reference annotations against which to compare the parser’s output.

Mova has no Valencian UD treebank for this workflow. There is consequently no train-to-development result for Valencian and no UAS or LAS value to report. Parse=None is an output status for a missing model. It supplies neither a prediction for scoring nor a reference annotation for evaluation.

Frames and pragmatics dependencies

Mova’s frames, pragmatics and world components use dependency trees as input. The components identified as prag and world currently read English trees. A dependency parse is a prerequisite for giving these components syntactic data from another language. The documented reader support is for English.

For Valencian, the pipeline stops before that prerequisite is met. A language assignment can identify the span for model lookup. It supplies none of the heads or relations that a dependency tree would provide. The unannotated fields from a missing model therefore leave these components with no Valencian tree to read. The package has no Valencian frame, pragmatic or world analysis from this pipeline.

Squid claims and the implementation queue

Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable claims, including rules, closed lists and statistics, enter the implementation queue. A queue entry records a point that can be expressed formally and is awaiting a place in Mova’s code.

StateWhat it establishes
A grammatical point appears in the manualSquid reads it as a claim
A formalizable claim enters the queueThe point awaits implementation
A point is implementedMova has code that handles the point

For example, a table that gives every form in a closed paradigm can supply a formalizable claim. The table’s presence in the manual does not make a tagger recognize those forms or give a parser the annotated sentences it needs for training. The first implementation priorities for a language in this state are the points needed by a tokenizer, a tagger and a UD treebank baseline. The queue provides a way to carry those points forward from the grammar. Training and evaluation still require annotated data.

How Mova handles Valencian today

tools/langseg assigns a language to every sentence and span at level 1. It distinguishes English and French in Latin script using its Latin table, language lexicons and a character four-gram model. It also distinguishes Hebrew-script varieties and Hebrew or Aramaic in scholarly transliteration. Other scripts receive other. An additional Latin-script language requires a lexicon and a Lang code. langseg latin-lexicon builds lexicons from open UD training splits. Mova can identify spans of a language only where the segmenter has the relevant script or lexical support.

At level 2, tools/mova-parse looks up each span’s model by language code. There is no model for ca-x-valencia. For a span assigned that code, the # parse comment reports the missing model, and its token rows have _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, with Parse=None in MISC. Mova currently lacks Valencian tokenization, tagging, lemmatization and dependency parsing.

What every language gets calls for a baseline for every language. In the en crate, en train trains the tree parser and tagger on the UD train split after en xpos-fill. en parse-eval measures UAS and LAS on the development split. Models exist for English and French. Mova holds no annotated Valencian corpus, so there is no measured Valencian treebank baseline.

Mova’s frames, pragmatics and world components, including prag and world, read English trees. Without a Valencian parse, they have no Valencian tree to read. Squid reads the manual’s grammatical points as claims and queues the formalizable ones for implementation. None of the chapter’s rules is implemented for Valencian. The first points to implement 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/ca/ca-x-valencia/32-mova-tools/