Mova0.6 pre-release

the flag of Ghana 29. How Mova handles Ewe

Mova has neither a parser model nor an annotated treebank for Ewe (ee). Its multilingual output records the absence of a parse with Parse=None when a span is assigned to Ewe. The Ewe grammar supplies claims for Squid. Language identification, grammatical annotation, and interpretation each have a separate set of requirements.

Language segmentation and model lookup

tools/mova-parse works at two levels. At level 1, tools/langseg assigns a language to every sentence and span. At level 2, the parser looks up the model file for each span's assigned language code. The span assignment governs model lookup, so a sentence containing more than one language can require more than one model.

The Latin-script recognition in tools/langseg distinguishes English and French using a Latin-script table, a lexicon for each language, and a character 4-gram model. The segmenter also distinguishes varieties written in Hebrew script and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside its supported set receive other. To add a Latin-script language, the segmenter needs a Lang code and a lexicon. langseg latin-lexicon builds lexicons from open Universal Dependencies (UD) training splits.

Ewe uses the Latin script. Its spelling includes forms such as Eʋegbe ‘Ewe language’ and agbalẽ ‘book’ (both from wiki:ee:Eʋegbe and wiki:ee:Biblia, respectively). In the first example, Eʋe names the people and gbe means ‘language’. In the second, the tilde marks vowel nasality. These are features of the written forms available to a recognizer. An Ewe edition, a recognizable spelling, and a sentence-level or span-level ee assignment are different kinds of evidence. The supplied corpus IDs identify the source of the examples. They provide no measurement of how the segmenter classifies those examples.

A mixed-language passage illustrates why the two levels matter. The Ewe article containing the name “True Jesus Church” presents that English name in parentheses (wiki:ee:Yesu Hame Vavã). The text presents material in more than one language, while actual analysis depends on the span boundaries and language codes assigned by the segmenter. A model lookup failure for a span assigned to ee establishes a level-2 gap. It gives no count of how much Ewe text level 1 identifies correctly.

Ewe parser status and Parse=None output

There is no level-2 model for ee. When a span is assigned to Ewe, tools/mova-parse reports the missing model in the # parse comment. Its token rows contain the following values.

FieldValueInformation left unassigned
LEMMA_Dictionary form
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Grammatical features
HEAD_Syntactic head
DEPREL_Dependency relation to the head
MISCParse=NoneExplicit status of the parse

The comment records the model gap. The column values show its consequences for individual rows. In particular, _ in HEAD leaves the choice of a syntactic head open, including the choice of which word is the root. _ in FEATS leaves feature values open even when the surface form gives a human reader evidence for them.

For example, the following phrase contains a written plural marker and a following locative word. The gloss and translation give a human analysis of the phrase. The current Ewe output supplies neither that morphological analysis nor the dependency structure.

Biblia-wo me
Bible-PL inside
‘in the Bibles’ (wiki:ee:Biblia, written Bibliawo me)

The hyphen in the glossed form makes a morpheme boundary visible. It does not represent a space in the corpus or establish a token boundary. Likewise, the presence of a form in an output row gives no evidence that Ewe-specific tokenization has taken place.

Treebank availability and baseline measurements

Mova holds no Ewe treebank. The Ewe sentences cited here supply attested written forms and contexts. An annotated UD treebank would also supply reference lemmas, tags, features, heads, and dependency relations under documented annotation conventions. No Ewe treebank baseline has been measured.

The package specification, What every language gets, asks for the same baseline for each language. The en crate supplies the training and evaluation commands. The training workflow applies en xpos-fill before en train, which trains a tagger and tree parser on the language's UD training split. en parse-eval measures attachment on the development split. The available model files are en.bin for English and fr.bin for French.

MeasureWhat must match the development annotationEwe result
Unlabeled attachment score (UAS)The syntactic headUnmeasured
Labeled attachment score (LAS)Both the syntactic head and the dependency relationUnmeasured

The two measures answer different questions about the same prediction. If a parser attaches a possessor to the reference head but assigns a different relation, the attachment matches for UAS and fails to match for LAS. Both measures require reference dependencies. The Ewe status Parse=None is a record of model availability, so it yields neither measure. A baseline would describe performance on the development material under its annotation conventions. Language identification, frame analysis, and pragmatic interpretation are outside the scope of those attachment scores.

Grammar claims in Squid

Squid reads the manual and turns each grammatical point into a claim. Formalizable points, including rules, closed lists, and statistics, enter Squid's queue for a place in Mova's code. A claim's presence in the queue records its availability for implementation. The model's output still depends on what the parser and its supporting components implement.

The distinction matters when a descriptive example bears on several annotation decisions. The following phrase documents a possessor, a possessive marker, and a possessed expression.

Peki fia-wo ƒe xexlẽfia
Peki chief-PL POSS list
‘a list of the Peki chiefs’ (wiki:ee:Peki dukɔ ƒe fiawo, written Peki fiawo ƒe xexlẽfia)

In this phrase, the marker ƒe follows the possessor and precedes the possessed noun. That ordering claim is distinct from a decision about the lemma and features of fiawo, the part of speech of ƒe, or the heads and relations assigned to those forms. A dependency convention needs to specify those choices so that the same analysis can be applied across examples. The phrase supports the stated ordering in this construction. It supplies no inventory of all possessive constructions or all uses of ƒe.

A formalizable claim needs a defined context. A rule about the position of a marker applies to the construction in which the marker has that function. A closed list needs a defined class and all of its members. A statistic needs a defined body of material and a counting unit. Those distinctions let the same descriptive chapter provide evidence for annotation without turning every occurrence of a spelling into the same grammatical analysis.

Priorities for tokenization, tagging and dependency annotation

A first Ewe baseline needs decisions that can be applied consistently to both training and development texts. The corpus examples give concrete cases for those decisions.

AreaDecisions needed for an Ewe baseline
TokenizationPreserve letters and diacritics in the input forms. Specify boundaries for written words with attached morphology, freestanding grammatical markers, and punctuation around names, dates, and quotations.
Lemmas and featuresSpecify the base forms and feature values to record for inflected words. Keep the written form, the lemma, and the feature analysis distinct in the annotation.
Part-of-speech taggingSpecify how nouns, verbs, and grammatical markers receive tags in context. Document recurring uses that require different analyses of the same spelling.
Dependency annotationSpecify the root and dependents for simple clauses and the heads and relations in noun phrases. Extend those conventions to locative expressions, serial verbs, and subordinate clauses represented in the treebank.
Baseline evaluationApply the same conventions across splits, then compare predicted heads and labeled dependencies against the development annotation.

The distinction between word boundaries and grammatical structure comes up even in a short constructed clause.

Afi ƒe agbalẽ le kplɔ̃ dzi.
Afi POSS book be.at table top
‘Afi’s book is on the table.’ (constructed)

The written spaces show ƒe and dzi as separate forms, and the tildes in agbalẽ and kplɔ̃ belong to the word forms. The gloss identifies the possessive marker and the locative expression. An annotation convention must also say how the possessor attaches, how the locative expression is headed internally, and how it attaches in the clause. Explicit decisions at that level make the reference trees usable for both training and attachment evaluation.

Some decisions recur across these areas. In fiawo ‘chiefs’ (wiki:ee:Peki dukɔ ƒe fiawo), the gloss chief-PL identifies the plural morphology inside one written form. In Afi ƒe agbalẽ ‘Afi’s book’ (constructed), the gloss Afi POSS book identifies a separate marker. The tokenizer needs a consistent account of each surface form, the tagger needs a consistent account of its grammatical information, and the dependency annotation needs a consistent account of the relations between words.

How Mova handles Ewe analysis and the boundary of frame and pragmatic processing

In tools/mova-parse, language assignment precedes model lookup. tools/langseg can identify a language where it knows the script or lexicon. Level 2 uses the assigned language's own model. When a span is assigned to ee, tools/mova-parse reports the missing Ewe model in the # parse comment. The span's tokens have _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL and Parse=None in MISC. Mova has no Ewe tokenization, tagging, lemmatization or parsing.

Mova has no Ewe treebank, and the training-to-development baseline requested in What every language gets is unmeasured for Ewe. The baseline uses en xpos-fill before en train and measures UAS and LAS with en parse-eval. The existing English and French parser models are en.bin and fr.bin.

Squid reads the grammar and queues its formalizable claims. The Ewe rules remain unimplemented. The first implementation points are those needed for tokenization, tagging and a UD treebank baseline.

Mova's frame, pragmatic and world processing, including prag and world, reads English trees. A parsed tree is a prerequisite for processing another language. The current Ewe output contains no tree for those components to read.

Sources for this chapter

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