Mova0.6 pre-release

Circassian: the Circassian flag, twelve gold stars and three arrows on green 28. Adyghe in Mova

Mova assigns languages to sentences and spans before it looks for a model to parse each span. For Adyghe (ady), the current package contains source text, while Cyrillic language identification, dependency parsing and treebank evaluation are still unavailable. These limits determine what the parser can report and what the later stages can use.

Language segmentation and Cyrillic coverage

Level 1 of tools/mova-parse uses tools/langseg to assign a language to every sentence and span. A sentence can contain spans with different language assignments. The span assignment is what the next level uses to select a parser model, so identifying the language of a span and analyzing its grammar are two successive operations.

For Latin script, tools/langseg distinguishes English and French with a Latin table, a lexicon for each language and a character 4-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Other scripts receive the label other. Adyghe Cyrillic falls under this last condition, so an Adyghe passage in Cyrillic receives the script fallback wherever its language would have to be identified from that script. The language code ady identifies the package, while other is the segmentation result for the Cyrillic text.

For an additional Latin-script language, the extension uses a lexicon from an open UD training split, generated with langseg latin-lexicon, and an added Lang code. That procedure applies to Latin-script language identification. The current Adyghe material illustrates the separate issue of coverage for Cyrillic.

FormRomanizationGlossTranslationMova corpus sentence ID
“Адыгэ джэгу”Adyge dzheguAdyghe dance‘Adyghe dance’wiki:ady:Адыгэ джэгу
“абадзэбзэкIэ”abadzebzekʼeAbaza.language-INS‘in Abaza’wiki:ady:Абадзэбзэ
“джэгуакӀо”dzheguakʼodance.performer‘dance performer’wiki:ady:Абазэ Къамбот

The forms retain the source characters. The second uses Latin I within a Cyrillic word, and the third uses Cyrillic Ӏ. The romanizations and glosses in the table are editorial aids for reading the examples.

Model lookup and Parse=None output

At level 2, tools/mova-parse looks up a model for each span using the language assigned at level 1. The lookup pattern is <code>.bin, with the same language code in the directory and filename. When the model exists, level 2 uses it to parse that span. In a multilingual sentence, the lookup takes place for each span according to its own language assignment.

A missing model is reported in the # parse comment. On the affected token rows, the six linguistic analysis fields have the following values, and MISC carries the status of the parse.

FieldOutput for a span without a modelInformation unavailable from the parser
LEMMA_Lemma
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Morphological features
HEAD_Syntactic head
DEPREL_Dependency relation
MISCParse=NoneParser status showing that the span has no parse

A row with these values can display the source form, but supplies no Adyghe tokenization analysis. For example, an unannotated row containing “абадзэбзэкIэ” leaves open how the form should be tokenized, what lemma should be assigned, how its instrumental marking should be recorded and what it depends on in the sentence. The gloss in the table above comes from the example's grammatical analysis. The MISC value records the absence of a model for the span and applies across its token rows.

Treebank availability and baseline measurements

Mova holds no annotated Adyghe corpus. The Wikipedia examples provide attested forms and sentence identifiers. A UD treebank would provide annotated sentences with token boundaries, grammatical tags and dependency trees. Those annotations would supply the training data and the reference analyses for a development evaluation.

The package specification in What every language gets calls for the same parser baseline for every language. The existing model files en.bin and fr.bin belong to English and French. For Adyghe, both attachment measures are unmeasured because the package lacks a treebank for the train-to-development evaluation.

MeasureWhat counts as a correct attachmentAdyghe baseline
UAS, unlabeled attachment scoreThe predicted head matches the reference headUnmeasured
LAS, labeled attachment scoreBoth the predicted head and the predicted dependency label match the reference analysisUnmeasured

These measures use reference dependency annotations. Counting rows with Parse=None counts how often parser output is unavailable. It supplies neither of the attachment measurements in the table.

The training command and evaluation protocol

The en crate provides the training and evaluation commands for Mova's own parser. The crate name stays the same when the training data are for a language other than English. A run uses the language's UD training split to fit a tagger and tree parser, then uses its development split to measure the resulting parser's attachments.

OrderCommandRole in the baseline
1en xpos-fillPrepare the language-specific part-of-speech field before training
2en trainTrain the tree parser and tagger on the language's UD training split
3en parse-evalEvaluate the trained parser on the development split and measure UAS and LAS

The split roles determine how to read the evaluation. The training sentences supply the analyses from which the model learns. The development sentences supply the reference heads and labels for comparison with the model's predictions. An attachment with the correct head and a different label counts as correct for UAS only. An attachment with the wrong head fails both checks.

For Adyghe the protocol is specified, but there are no splits in the package on which to run it. Model lookup during multilingual parsing and the development evaluation also have different inputs. The former needs a model file for the assigned span language. The latter needs the trained parser and annotated development sentences from which to compute the scores.

Dependencies of frame and pragmatic processing

Mova's frame, pragmatic and world processing currently reads English trees. A dependency tree gives downstream processing access to the syntactic connections among the words in a sentence. For instance, a source form and its translation can suggest a participant in an event to a human reader, but the form alone supplies no head or dependency relation for the software to read.

For an Adyghe span, Parse=None marks the point at which the analysis stops. The blank HEAD and DEPREL fields leave the downstream stages without a tree for the span. Adyghe parsing is therefore a prerequisite for passing that span to tree-based processing. The existing tree input for prag and world is English, so the availability of an Adyghe dependency tree would establish the parsing prerequisite only. The current package supplies no Adyghe frame or pragmatic analysis from its source text.

Squid claim extraction and the implementation queue

Squid reads the grammar manual and turns each grammatical point into a claim. A formalizable claim, such as a rule, a closed list or a statistic, waits in Squid's queue for a place in Mova's code. A claim's presence in the queue means its implementation is pending. A paradigm in the manual can thus supply grammatical information to Squid while the multilingual parser still lacks a model for the language.

The first implementation needs come from tokenization, tagging and the UD baseline. These needs involve different decisions about the same text.

AreaGrammatical information needed
TokenizationWhich parts of the written sequence form tokens, including boundaries involving punctuation
TaggingWhich word classes and morphological features the token forms realize, including the conditions on their use
UD annotation and evaluationHow to assign heads and dependency relations so that training and development reference analyses can be prepared

For example, the manual can identify instrumental marking in a written form and describe when it occurs. Encoding a corresponding morphological analysis in a treebank requires deciding which token carries the feature. Training and evaluating a parser also requires heads and relations for the sentences in the respective splits. The claim records the grammatical point that can inform this work. Implementation and measurement require the corresponding code and annotated data.

How Mova handles Adyghe in the current package

tools/mova-parse first assigns sentence and span languages through tools/langseg. Its Latin-script coverage distinguishes English and French, and it also handles Hebrew-script varieties and scholarly transliterations of Hebrew or Aramaic. Adyghe Cyrillic falls under other. For an additional Latin-script language, the extension uses a Lang code and a lexicon built from open UD training material with langseg latin-lexicon.

The second level uses the model for the assigned span language. The ady model is absent. The missing-model output reports the language in # parse, gives _ for LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, and puts Parse=None in MISC. The package provides no Adyghe tokenization, tagging, lemmatization or dependency parsing.

The package baseline specified in What every language gets uses en xpos-fill before en train on a UD training split, and en parse-eval measures UAS and LAS on the development split. The available models are en.bin and fr.bin. Mova has no Adyghe treebank, so an Adyghe baseline has yet to be measured.

Mova's frames, pragmatics and world processing read English trees. Without an Adyghe tree, these components have no parsed Adyghe input. Squid extracts grammatical claims from the manual and queues those that can be formalized. Implementation of the chapter's grammatical points is pending, with tokenizer, tagger and UD baseline requirements first.

Sources for this chapter

This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/ady/28-mova-tools/