Mova0.6 pre-release

Cornish: St Piran's flag, a white cross on black 29. Cornish in Mova

Cornish has the language code kw in Mova’s grammar and corpus material. The multilingual pipeline identifies languages before it looks up a parser model. Mova has no Cornish parser model or annotated Cornish treebank, so it reports missing parses for spans identified as Cornish and has no Cornish evaluation scores.

1. Language identification and the Latin-script coverage of langseg

The first level of tools/mova-parse uses tools/langseg to assign a language to each sentence and span. Span-level identification matters when a sentence contains material in more than one language, because the second level selects a model for each span. A language code on a corpus entry identifies the language of the material. Automatic identification depends on the segmenter’s coverage.

Within the Latin script, the current segmenter distinguishes English and French. It uses a Latin-script table, a lexicon for each of those languages and a character four-gram model. The script table brings Cornish writing within the Latin-script coverage, but the English and French resources provide no dedicated Cornish recognition. A place name in Latin letters or a sentence written entirely in the Latin script is insufficient to establish that a span is Cornish. Adding a Latin-script language requires a lexicon and a Lang code. langseg latin-lexicon builds lexicons from open Universal Dependencies (UD) training splits.

The segmenter also distinguishes varieties written in Hebrew script and recognizes Hebrew or Aramaic in scholarly transliteration. It classifies scripts outside its coverage as other. A classification of writing by script is a different result from a language assignment within a supported script.

The corpus includes the phrase Sowsnek (de facto), with the gloss English (in fact) and the translation “English (in practice).” The parenthetical expression illustrates how a Latin-script passage labelled kw can include material that also occurs in texts in other languages. The corpus label gives the context for the example. (wiki:kw:Kernow)

2. Model lookup and Parse=None output for Cornish

At the second level, tools/mova-parse looks for a model under <code>.bin, using the span’s language code for both occurrences of <code>. English and French models exist as en.bin and fr.bin. There is no model for kw. The missing-model output described here applies when the span has been identified as kw.

The # parse comment reports the absence of a model. For tokens in the affected span, the output uses the following values.

FieldValueAnnotation unavailable
LEMMA_Lemma
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Morphological features
HEAD_Syntactic head
DEPREL_Dependency relation
MISCParse=NoneStatus of the parse

The underscores leave the corresponding fields unset. In HEAD, for example, _ leaves the head unspecified, whereas 0 in an annotated UD tree marks the token attached to the root. Parse=None records why the fields are empty. Token rows in this output provide places to record the status. Their presence supplies no Cornish-specific tokenization analysis.

For example, the corpus has yn kres Kernow, glossed in centre Cornwall, “in central Cornwall” (wiki:kw:Bosvena). The words are visible in the text. For a span identified as Cornish, the output supplies neither a part-of-speech assignment for yn “in” nor a syntactic attachment for the phrase.

3. Cornish treebank availability and the UAS and LAS baseline

Mova holds Cornish text in its corpus material, including the examples in this chapter. It holds no annotated Cornish treebank. A corpus entry with a language label provides text and its language, while a UD treebank provides reference token and word annotation, including the heads and dependency relations used to evaluate a parser.

The common baseline in What every language gets calls for the same train-to-development evaluation for each language. In Mova’s en crate, en xpos-fill precedes training, and en train trains the parser and tagger on the language’s UD training split. en parse-eval measures the resulting parser against the development split. The separation of the two splits lets the evaluation measure predictions on reference trees outside the training material.

MeasureWhat counts as a correct attachment
UAS, unlabeled attachment scoreThe predicted syntactic head matches the reference head.
LAS, labeled attachment scoreThe predicted head and the dependency relation both match the reference annotation.

Both measures summarize correctness over evaluated attachments. For instance, a prediction with the reference head and an incorrect relation label counts as correct for UAS and incorrect for LAS. These measures describe the dependency trees produced by the parser. They give no direct score for language identification, lemmatization, frames or pragmatics.

Cornish currently has no measured UAS or LAS baseline in Mova. The missing result follows from the absence of the annotated Cornish data needed for training and development evaluation. Parse=None is a status on output tokens and supplies no observations for either measure.

4. Dependencies of frames and pragmatics on parsed trees

Mova’s frames, pragmatics and world components, which include prag and world, read English trees. A dependency tree makes available the syntactic heads and relations within an utterance. A span label and the surface text alone do not provide these relations.

For a Cornish span with Parse=None, there is no tree for these components to read. This affects even a short phrase such as drehevyansow chyf an UE, glossed building.PL main DEF EU, “the main buildings of the EU” (wiki:kw:Unyans Europek). The translation conveys the expression’s meaning to the reader. The pipeline supplies no annotated head or relations for its modifier and dependent phrase, so these cannot serve as Cornish tree input for later analysis.

Parsing is therefore a prerequisite for the later stages. The current input described for those stages is English trees, so achieving a Cornish parsing baseline would establish the availability of syntactic input without establishing that those stages interpret Cornish trees.

5. Squid's claims queue and baseline priorities for Cornish

Squid reads the grammar manual and represents each grammatical point as a claim. Formalizable claims, including rules, closed lists and statistics, wait in Squid’s queue for a place in Mova’s code. Publication in the manual records a grammatical description, and entry in the queue identifies a point that can be formalized. Implementation requires a corresponding capability in the language tools.

The first priorities are the points a tokenizer, tagger and UD treebank baseline need. Tokenization requires decisions about written boundaries, including punctuation and forms printed with apostrophes. Tagging requires word-class and feature assignments. A treebank baseline requires annotated examples with heads and relations as well as the training and development data for evaluating predictions. Consistent treatment across those stages makes the reference annotations interpretable when measuring the parser.

The corpus phrase a'n Statys Unys, glossed of.DEF state.PL united, “of the United States,” illustrates a question of written and grammatical boundaries (wiki:kw:Mark Twain). The spelling joins the preposition and article with an apostrophe, and the gloss makes their two grammatical contributions visible. It illustrates the sort of form for which tokenization and treebank annotation need a consistent convention.

The phrase dhe Vosvena, glossed to Bodmin, “to Bodmin,” illustrates a separate annotation issue (wiki:kw:Bosvena). The place name appears as Vosvena after dhe, with a changed initial consonant. A useful annotation must distinguish the written form from the lemma it represents. A grammar claim can describe the conditions for that alternation, while its status in the queue gives no evidence that a tokenizer, tagger or parser applies it.

6. How Mova handles Cornish today

tools/mova-parse assigns languages at the sentence and span levels through tools/langseg, then looks up the parser model for each span. Automatic identification is limited to the script and lexicon coverage of the segmenter. In the Latin script its current language resources distinguish English and French. Adding another Latin-script language requires a lexicon and a Lang code, with langseg latin-lexicon available for open UD training splits.

There is no level-two model for kw. Where a span is identified as Cornish, tools/mova-parse reports the missing model in the # parse comment, leaves LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL unset with _, and records Parse=None in MISC. Mova provides no Cornish-specific tokenization, tagging, lemmatization or dependency parsing.

Mova has no annotated Cornish treebank and has measured no Cornish UAS or LAS baseline. The baseline in What every language gets uses en xpos-fill before en train on the UD training split, followed by en parse-eval on the development split. The frames, pragmatics and world components read English trees and have no Cornish trees to read.

Squid records the manual’s grammatical points as claims and queues the formalizable ones. The Cornish rules remain unimplemented. The initial priorities are the rules and data needed for tokenization, tagging and a UD treebank baseline.

Sources for this chapter

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