Mova0.6 pre-release

the flag of Eswatini 27. Swati in Mova and Squid

Swati has the language code ss. Mova has Swati text examples, but it has neither an annotated Swati treebank nor a Swati parser model. Language identification, grammatical annotation and interpretation are separate stages. A language label tells the parser which model to look for, and a dependency tree supplies the syntactic input required for interpreting a clause.

Latin-script span identification and language coverage

Mova assigns a language at the level of both the sentence and the span. A sentence may contain a name, a quotation or an expression in another language, so its label alone does not determine the language of each span. Script information can distinguish some spans. It cannot by itself distinguish Swati from English or French, since all three use Latin script.

The Latin-script coverage described here distinguishes English and French using a Latin-script table, language lexicons and a character four-gram model. The identifier also recognizes Hebrew-script varieties and Hebrew or Aramaic in scholarly transliteration. Scripts outside its coverage are treated as other. To add a Latin-script language to the identifier, it needs a language code supported by the identifier and a lexicon from an open Universal Dependencies (UD) training split. The code ss used for the grammar and corpus identifies the language in those resources. Swati is outside the stated Latin-script identification coverage.

FormRomanizationGlossTranslationCorpus ID
IJaphani—Japan (Swati name)‘Japan’wiki:ss:IJapani
日本Nippon / NihonJapan (Japanese name)‘Japan’wiki:ss:IJapani

The two names appear in the same corpus entry and refer to the same country. Their shared reference gives no basis for assigning them the same language label. The sentence-level corpus label also gives no basis for treating every span in the entry as Swati.

Swati output without a level-two parser model

Level one supplies language labels. Level two uses each span’s label to select the corresponding language model. If the language assigned to a span has no model file, the parser records that language in the # parse comment. The token rows for that span have the following values.

FieldValueAnnotation unavailable for the span
LEMMA_Dictionary form
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Morphological features
HEAD_Syntactic head
DEPREL_Dependency relation to the head
MISCParse=NoneStatus of the parse

Swati has no model for level two. The table therefore describes the output for a span assigned ss. The presence of token rows provides no evidence that their boundaries follow Swati word-division rules. In particular, a blank head field records the absence of a syntactic analysis. A root, an attachment and the relation between a dependent and its head all require annotation.

Treebank availability and baseline measurement

Mova’s Swati examples supply text for inspection. It has no annotated Swati corpus for training or evaluating a dependency parser. A treebank baseline requires a training split and a development split with reference annotations. The package calls for the same train-to-development baseline for each language. The training workflow fills language-specific part-of-speech tags on the training data before training the parser and tagger.

The baseline reports two attachment measures. Unlabeled attachment score (UAS) gives credit for assigning a token the correct head. Labeled attachment score (LAS) requires the correct head and dependency relation together. In both cases the reference comes from the development split. The scores address dependency attachment and do not by themselves establish the quality of word boundaries, lemmas, tags or morphological features. There is no measured Swati baseline.

Input requirements for frames and pragmatics

Mova’s frame, pragmatics and world components read English dependency trees. A corpus language label and the text of a Swati clause leave those components without the Swati syntactic input they would need. A dependency parse is the first prerequisite for processing another language. The current English-tree input coverage gives no basis for claiming that a future Swati parse would by itself produce a frame or a pragmatic analysis.

FormGlossTranslationCorpus ID
lutfutfukisa11.SBJ-develop‘it develops’wiki:ss:Luphiko lwemSebenti wetiLwimi taVelonkhe
kuchumanaINF-communicate‘to communicate’wiki:ss:Luphiko lwemSebenti wetiLwimi taVelonkhe

Here 11.SBJ marks class 11 subject agreement, and INF marks the infinitive. The gloss of the finite form identifies agreement. A tree for the clause would also have to identify the subject and determine how the infinitive attaches. Those relations belong to the syntactic input on which later interpretation depends.

Grammar claims and Squid's implementation queue

Squid reads each grammatical point in the manual as a claim. Rules, closed lists and statistics that can be formalized wait in Squid’s implementation queue. A queued claim has yet to be implemented in Mova’s code. The queue therefore records work that the grammar supplies for implementation. The annotation present in actual output records what the tools have done for a given input.

A usable rule claim specifies the form or construction it concerns, the conditions under which it applies and any exceptions. For example, an agreement claim needs to identify the elements that agree and the environment in which their forms are selected. A complete inventory of agreement forms would be a separate claim from the rule that selects a form in context. A corpus example can illustrate a choice in one construction. It cannot supply an entire inventory or establish the frequency of a pattern.

Priorities for tokenization, tagging and dependency annotation

Word division is the first annotation issue. The tokenizer needs decisions about the treatment of punctuation, hyphens, digits, attached morphology and spans that contain names from different languages. The decisions must distinguish morpheme boundaries used in a gloss from token boundaries used in a treebank. They must also account for the spelling and spacing that occur in the input.

FormGlossTranslationCorpus ID
e -EswatiniLOC-Eswatini‘in Eswatini’wiki:ss:SiSwati
letingu-4.710.REL-be-4.7‘numbering 4.7’wiki:ss:SiSwati
tilwimi letisemtsetfweni10.language.PL 10.REL.official‘official languages’wiki:ss:Luphiko lwemSebenti wetiLwimi taVelonkhe

LOC marks a locative, REL a relative form and PL plural. The first excerpt preserves the space before the hyphen. The second contains a hyphen adjoining a decimal numeral. These forms raise distinct boundary questions. The first requires a decision about how to represent the written locative and its spacing. The second requires a decision about the boundary before the number and the treatment of the decimal point within it.

Tagging needs criteria for choosing a lemma, a universal tag, a language-specific tag and morphological features for each annotated word. Swati noun class and concord are priorities because related information can occur on different words. In the last example the noun and its relative modifier show class 10 concord. The annotation needs a consistent way to record the morphology on each word and to link the modifier to the noun in the tree.

Dependency annotation also needs consistent choices for clause roots, subjects and other dependents, including the attachment of infinitives, agreeing modifiers and coordinated predicates. The training and development splits must apply compatible tokenization and annotation conventions for the attachment scores to have a consistent reference. These are priorities for preparing a Swati baseline. Their inclusion in the manual does not give the parser the corresponding analyses.

How Mova handles Swati today

tools/mova-parse uses tools/langseg at level one to assign languages to sentences and spans. In Latin script, tools/langseg distinguishes English and French using a Latin table, language lexicons and a character four-gram model. It also distinguishes Hebrew-script varieties and scholarly transliterations of Hebrew or Aramaic. It treats scripts outside its coverage as other. A further Latin-script language requires a lexicon from an open UD training split and a Lang code. langseg latin-lexicon supports the lexicon step. Language identification depends on the identifier knowing the script or lexicon.

At level two, tools/mova-parse selects the model for the language assigned to the span. There is no level-two model for ss. The missing model is reported in the # parse comment. The Swati token rows have _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, with Parse=None in MISC. Swati tokenization, tagging, lemmatization and dependency parsing are unavailable.

The en crate provides the training and evaluation workflow. en train trains a tree parser and tagger on the UD training split after en xpos-fill. en parse-eval measures UAS and LAS from training to development. The available models are English (en.bin) and French (fr.bin). The package specifies the same baseline for each language in What every language gets. Mova has no Swati treebank, so it has no measured Swati baseline.

Mova’s frame, pragmatics and world components read English trees. prag and world have no parsed Swati input. Squid reads the manual as grammatical claims and queues formalizable rules, closed lists and statistics for implementation. The Swati rules in the manual remain unimplemented. The first priorities are the claims 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/ss/27-mova-tools/