Mova0.6 pre-release

the flag of Somalia 31. Somali in Mova

Mova assigns languages to stretches of text before it attempts a Universal Dependencies (UD) parse. Somali (so) has text examples in Mova’s corpora and grammatical descriptions in this manual. It has no level-two parser model or annotated treebank in Mova. The examples below illustrate the input and the decisions a Somali annotation scheme would need to make.

Language identification and span segmentation

A sentence label gives the language of the sentence as a whole. A span label applies to a stretch within it. The distinction matters in Somali text that includes names, titles, or quoted material in another language. The multilingual parser uses the span label to select a model, so a language-identification decision can affect which parser receives a stretch of text.

The Latin alphabet alone gives no Somali-specific language evidence. The Latin-script identification described for tools/langseg covers English and French, using a Latin character table, a lexicon for each language, and a character four-gram model. The provision for adding a Latin-script language is to add a language code and a lexicon drawn from an open UD training split. The existence of Somali text in Mova’s corpora gives no measured identification accuracy for so.

FormGlossTranslationCorpus ID
“Af Faransiis”language French‘French’wiki:so:Moosoro
“Château de Montsoreau”castle of Montsoreau‘Castle of Montsoreau’wiki:so:Qasriga Moosoro

The first expression is a Somali language label. The second is a French proper name embedded in Somali prose. Such material raises a span-boundary question even when the surrounding sentence is clearly Somali to a reader. These excerpts show the forms present in the text. They supply no reference span boundaries or observed segmenter output.

The Somali package and level-two model status

The language code for Somali is so. At level two, tools/mova-parse looks for a model corresponding to the language assigned to a span. There is no level-two Somali model. The absence applies even when the language of a span is known or supplied by the preceding stage. Text availability, grammatical description, and model availability are separate parts of the package’s state.

ItemState for Somali
Corpus textSomali text excerpts are available.
Annotated UD treebank in MovaNone.
Level-two parser modelNone.
Measured treebank baselineNone.

A corpus excerpt can document a spelling or construction. To serve as a treebank example, the sentence would also need annotated token boundaries, lemmas, tags, and dependencies. Likewise, a rule in the manual can describe how a construction works without supplying the sentence-level annotation required for parser training. The package calls for the same treebank baseline for each language.

CoNLL-U output and Parse=None

CoNLL-U represents the original form and its annotations in separate columns. On the missing-model path, the # parse comment reports the language for which the model is missing. For tokens reported on that path, the following fields have the same values throughout the affected span.

FieldInformation the field carriesMissing-model value
LEMMADictionary form_
UPOSUniversal part-of-speech tag_
XPOSLanguage-specific part-of-speech tag_
FEATSMorphological feature values_
HEADIndex of the syntactic head_
DEPRELDependency relation to the head_
MISCMiscellaneous token informationContains Parse=None

Read the annotation blanks together with Parse=None. For example, a blank FEATS field in such a row gives no evidence about whether a Somali form has number, case, or definiteness. A blank HEAD field gives no evidence that the form is a clause root. A visible row records a piece of the input in the output, and its presence supplies no evidence that a Somali tokenizer established its boundary.

FormGlossTranslationCorpus ID
“Gobolka Jubbada Hoose”region.DEF Juba.DEF lower‘the Lower Juba Region’wiki:so:Beer Xaano

Here DEF marks the definite ending in the gloss. This is a grammatical reading of the source phrase. For a Somali span on the missing-model path, the parser produces neither a definiteness feature for Gobolka nor a dependency linking Hoose to the rest of the name.

The treebank baseline and UAS and LAS measurements

A UD baseline requires a training split and a development split with reference annotations. The package’s workflow applies en xpos-fill before training. The en train command trains the tree parser and tagger on the training split, and en parse-eval compares parser output with the annotated development split. The two attachment scores measure agreement with that reference.

MeasureWhat counts as a correct attachment
Unlabeled attachment score (UAS)The predicted head matches the reference head for the token being scored.
Labeled attachment score (LAS)Both the predicted head and the predicted dependency relation match the reference annotation for the token being scored.

A token attached to the right head with the wrong relation counts as correct for UAS only. A correct relation assigned to the wrong head satisfies neither measure. Both scores concern dependency attachment. Language identification, tokenization, lemmatization, and part-of-speech tagging pose their own evaluation questions. In particular, an attachment comparison needs corresponding tokens in the prediction and the reference, so the treatment of token boundaries affects how a baseline can be interpreted.

Mova has no Somali train and development treebank split on which to run this procedure. Somali therefore has no measured UAS or LAS baseline. Parse=None describes output produced in the absence of a model, whereas an attachment score requires predictions to compare with reference trees.

Grammar claims in Squid and priorities for annotation

Squid reads the manual and records each grammatical point as a claim. Formalizable claims, including rules, closed lists, and statistics, enter its queue for placement in Mova’s code. The queue records implementation work that remains to be done. For Somali, the first priorities are the decisions a tokenizer, a tagger, and a UD treebank baseline would need.

Token boundaries

Tokenization needs rules that can be applied consistently to the written text. Among the decisions are how to treat apostrophes within words and how to represent grammatical material written together with a host. A morphological gloss can show where an ending begins without assigning it a separate UD word.

FormGlossTranslationCorpus ID
“Toban gu'”ten year‘ten years’wiki:so:Toban-gu'
“18kii Sebtembar”18.DEF September‘the 18th of September’wiki:so:Teniola Aladese

In the first phrase the apostrophe belongs to the spelling of gu'. In the second, the definite ending is written against the digits. The two forms give distinct boundary decisions for an annotation scheme. The first concerns a character inside a written word, and the second concerns a suffix on a numeric form.

Tags, features, and dependencies

Tagging needs a consistent treatment of inflected forms, grammatical particles, and pronouns. A treebank also needs decisions about dependency heads and relations. This is especially important in preverbal sequences, where a focus marker, a subject pronoun, and material expressing a relation such as location can occur together. Once word boundaries are established, the annotation must specify which function each unit has in the construction and how it connects to the predicate.

FormGlossTranslationCorpus ID
“waxa uu ku dhashay”FOC 3SG.M LOC be.born.PST‘he was born in’wiki:so:Teniola Aladese

FOC marks focus, 3SG.M third-person masculine singular, LOC a locative element, and PST past tense. The source continues with a date and a place. The excerpt shows the written sequence and its grammatical functions. A UD annotation would need the wider sentence to determine attachments, including how the location is linked to the predicate. Consistent decisions across such examples would make a training and development comparison interpretable.

Frames, pragmatics and current coverage

A dependency tree provides structural information about a clause. A frame representation can describe the event or state and its participants. Pragmatic interpretation can also depend on what the utterance presents as focal and what the surrounding discourse makes recoverable. A short stretch can contain evidence for all of these without supplying a complete interpretation by itself. In the birth example above, the expression gives a third-person subject and a birth predicate. The person’s identity and the place are available from the wider sentence.

Mova’s frames, pragmatics, and world components read English trees. Somali currently supplies no parsed trees to these components. The linguistic glosses in this chapter are manual analyses, so they provide no record of Somali frame extraction, reference resolution, or pragmatic interpretation by the worker.

How Mova handles Somali end to end

  1. tools/mova-parse uses tools/langseg at level one to assign a language to each sentence and span. Identification depends on the script or lexicon support available to the segmenter. Its Latin-script identification covers English and French. It also distinguishes Hebrew-script varieties and Hebrew or Aramaic in scholarly transliteration. Other scripts are other. Additional Latin-script support uses a Lang code and a lexicon built from open UD training splits with langseg latin-lexicon.
  2. Level two selects a model by the span’s language code. With no so model, tools/mova-parse reports the missing model in # parse and puts Parse=None in MISC on the affected tokens. LEMMA, UPOS, XPOS, FEATS, HEAD, and DEPREL are _. Mova does not perform Somali tokenization, tagging, lemmatization, or dependency parsing.
  3. The baseline specified in What every language gets uses en xpos-fill before en train trains on UD training data. en parse-eval measures UAS and LAS on the development split. Mova holds no annotated Somali treebank and has no measured Somali baseline.
  4. The frame, pragmatics, and world components, including prag and world, read English trees. They have no Somali parse to read.
  5. Squid records the manual’s grammatical points as claims and queues the formalizable ones. The Somali rules described here have yet to be implemented. Tokenization, tagging, and the annotations needed for a UD treebank baseline are the first priorities.

Sources for this chapter

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