Mova0.6 pre-release

Occitan: the Occitan cross, gold on red 35. Gascon in Mova

This chapter describes what a reader can obtain from Mova for Gascon (oc-x-gascon). It follows the text from language identification through dependency parsing and interpretation, then explains how the grammar manual supplies claims for future implementation.

The Gascon package and its current data

The Gascon edition uses the language code oc-x-gascon. The package inventory has two gaps that matter for parsing and evaluation. There is no Gascon model for the multilingual parser, and Mova holds no annotated Gascon corpus. A parser model is the trained data used to assign tags and build a dependency tree for new text. A treebank is a corpus with reference annotations that can be used to train and evaluate such a model.

ResourceGascon statusWhat its status means in practice
Reference grammarAvailable for oc-x-gasconReaders can consult the grammar for descriptions of forms, constructions and usage.
Annotated corpusAbsent from MovaThere are no Gascon reference trees in the package for training or evaluation.
Level-2 parser modelAbsentThe multilingual parser has no Gascon model to load for a span routed to that code.

The manual covers Gascon across varieties and includes dedicated chapters on Béarnais and Aranese. That scope describes the material available to the reader. The parser looks up models by the language code assigned to a span, so the variety headings in the manual do not specify parser routes.

Language identification and multilingual span routing

tools/mova-parse processes multilingual text in two levels. At level 1, tools/langseg assigns a language to each sentence and to each span. The span assignment supplies the language code used at level 2. A sentence can therefore contain spans routed to different models. The language assigned to the sentence does not override the individual span assignments.

Input covered by tools/langsegBasis for identification
English and French in Latin scriptA Latin-script table, a lexicon for each language and a character 4-gram model
Hebrew-script varietiesCoverage for varieties written in Hebrew script
Hebrew or Aramaic in scholarly transliterationCoverage for the scholarly transliterations of those languages
Other scriptsThe label other

Gascon uses Latin script, which it shares with English and French. The stated Latin-script coverage identifies English and French. To add another Latin-script language, the identifier needs a lexicon and a Lang code. langseg latin-lexicon builds the lexicon from an open Universal Dependencies training split. That resource supports the language decision at level 1. The model used to assign grammatical structure is a separate resource looked up at level 2.

This distinction matters when reading multilingual output. The missing-model behavior for Gascon applies once a span has the code oc-x-gascon. Whether level 1 can supply that code depends on its identification data. A span routed under some other code follows the lookup for that code, even if a reader recognizes the text as Gascon.

Parser model lookup and unannotated output

At level 2, tools/mova-parse uses the span's code to look in that language's data directory for the corresponding model. The model belongs in the models subdirectory, with the language code as its filename stem and .bin as its extension. Each span is looked up under its own code, including when neighboring spans have different codes.

When the lookup finds no model, the output reports the language in the sentence's # parse comment. On token rows for the affected span, the fields below are left unannotated. The entries in this table apply to Gascon whenever its code is used for the lookup.

Output fieldEntryInformation the field would carry when annotated
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 to the head
MISCParse=NoneStatus of parsing for the row

In this output, an underscore in FEATS supplies no evidence about the word's morphology. An underscore in HEAD leaves the head unspecified. The Parse=None marker explains why those fields are empty, and the comment reports the condition at sentence level. The token rows described here are the output representation for an unparsed span. Their presence does not establish that Mova has applied Gascon tokenization.

The following example illustrates the difference between a grammatical description and the information supplied by those rows. Form La hemna canta. Gloss DEF.F.SG woman sing.PRS.3SG. Translation “The woman sings.” (constructed) The gloss supplies a third-person singular present reading for canta. If this text is routed as Gascon, FEATS leaves that information unspecified, and HEAD and DEPREL leave the dependency analysis unspecified.

Treebank requirements and baseline measurements

The package specification in What every language gets calls for the same baseline across languages. The baseline uses a Universal Dependencies training split to fit the model and a development split to measure its accuracy. The training split supplies the annotations from which the tagger and tree parser learn. The development split supplies reference heads and dependency labels for comparison with the parser's output.

StageCommandRole in the baseline
Preparationen xpos-fillPrepare the part-of-speech annotation before training.
Trainingen trainTrain the tree parser and tagger on the language's UD training split.
Evaluationen parse-evalMeasure UAS and LAS on the development split after training.

The en crate provides this workflow. The available models named in this workflow are en.bin for English and fr.bin for French. Gascon has no measured baseline because Mova has no Gascon treebank. Its baseline status is unmeasured.

MeasureWhat counts as correct
UAS, unlabeled attachment scoreThe parser assigns the same syntactic head as the reference annotation.
LAS, labeled attachment scoreThe parser assigns both the reference head and the reference dependency label.

The two scores distinguish errors in attachment from errors in naming the relation. A dependent attached to the correct verb with the wrong dependency label is correct for UAS and incorrect for LAS. The results describe performance on the development material used for the evaluation. They cannot be obtained by counting language labels or rows marked Parse=None, since neither supplies a predicted attachment that can be compared with a reference tree.

A treebank for this workflow must represent word boundaries, tags, heads and dependency labels in UD annotations. A collection of Gascon sentences can supply texts to annotate. Running the baseline requires the annotations and the train and development splits. An open training split can also supply material for the language identification lexicon, giving the same annotated data a role at both levels of the pipeline.

Frames and pragmatics

Mova's frames, pragmatics and world components use English trees. The components named prag and world read syntactic input from that English analysis. A language label identifies how text is routed. It supplies no dependency relations for those components to read. The same applies to an unannotated token row, where even the head and dependency relation are unspecified.

For Gascon, the chain currently stops before there is a dependency tree. Its grammar can describe which expressions introduce arguments, how clause types differ or what a construction contributes in discourse. Those descriptions do not supply the syntactic input for frames and pragmatics on an instance of Gascon text. Parsing is a prerequisite for passing a Gascon tree to later analysis. The stated coverage of the components that read trees is English.

How Mova handles Gascon claims and the implementation queue

Squid reads the manual and turns each grammatical point into a claim. Formalizable claims, including rules, closed lists and statistics, wait in Squid's queue for a place in Mova's code. A queued claim records a grammatical description awaiting implementation. Its presence in the queue leaves parser behavior unchanged.

For Gascon, the first claims relevant to implementation are the ones needed for a tokenizer, a tagger and a UD treebank baseline. These concern where the system places token boundaries, which tags it assigns and how a dependency analysis can be trained and evaluated. Mova currently supplies no Gascon tokenization, tagging, lemmatization or dependency analysis. Language identification remains limited to the script or lexical coverage of tools/langseg. No rule in this chapter is implemented for Gascon.

Sources for this chapter

This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/oc/oc-x-gascon/35-mova-tools/