Mova0.6 pre-release

the flag of Ghana 28. Dagbani in Mova

Mova assigns language labels to sentences and spans before it attempts a Universal Dependencies (UD) parse. Dagbani (dag) has no parser model or annotated treebank in Mova. This chapter describes the output available for Dagbani, the annotation needed for a parser baseline, and the status of grammatical claims from the manual.

Language identification and span assignment

At level 1, tools/langseg assigns a language to each sentence and span. At level 2, tools/mova-parse uses the language assigned to a span to select its model. A sentence can contain material in more than one language, so the language label on a corpus entry and the language assigned to a span serve different purposes.

Dagbani uses Latin script. The Latin-script identifier currently distinguishes English and French using a Latin character table, per-language lexicons and a character 4-gram model. Dagbani has no dedicated identification support in that inventory. Adding a Latin-script language requires a lexicon and a Lang code. The langseg latin-lexicon command builds a lexicon from an open UD training split. This step supplies evidence for language assignment. Parsing still requires a model for the assigned language.

The Dagbani corpus entries below illustrate different kinds of evidence for span assignment. The glosses describe the cited excerpts. The sentence IDs identify the source entries.

FormGlossTranslationCorpus sentence ID
Saha ŋɔtime DEM.PROX‘at this time’wiki:dag:Mark Okraku-Mantey
National Basketball Association (NBA)organization name and its abbreviation‘National Basketball Association (NBA)’wiki:dag:Oklahoma City Thunder all-time roster
cinema by country or regioncinema classified by country or region‘cinema by country or region’wiki:dag:Central African Republic ninliha lihibu shee

The first excerpt contains Dagbani words. The second is an English name embedded in a Dagbani sentence. The third is an English entry associated with a Dagbani article. For annotation, record the language of the text itself and establish how to treat names and abbreviations within a span. In particular, the corpus label alone supplies no span boundaries and no evidence about which labels tools/langseg would assign to these excerpts.

The Dagbani parser and treebank status

There is no level-2 model for dag. When a span is assigned that code, tools/mova-parse reports the missing model in the # parse comment and returns unannotated token rows for the span. In a multilingual input, model availability is determined for each span according to its assigned language.

Mova holds no annotated Dagbani treebank. The corpus sentences supplied for this manual therefore establish that text is available for inspection, while there is no Dagbani UD baseline in the package. A baseline requires a training split from which to learn tags and dependencies and a development split with reference annotations against which to score them. The package has no measured Dagbani scores for unlabeled attachment (UAS) or labeled attachment (LAS).

Unannotated output and Parse=None

The following fields describe a token row in a span whose language has no model. An underscore in one of the six annotation fields indicates that the corresponding annotation is absent.

CoNLL-U fieldOutput for an unparsed spanAnnotation represented by the field
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 marking the absence of a parse

Parse=None is the token-level status. The # parse comment reports the missing model. A token row in this output provides no evidence that Dagbani word boundaries were analyzed. For example, a written form occupying one row gives no grounds for a treebank decision about whether the form contains a separate syntactic word. A blank HEAD likewise supplies no root or attachment, so these rows cannot serve as dependency references for evaluation.

Tokenization, tagging and treebank priorities

The first annotation decisions concern sentence and word boundaries, the tags and features assigned to words, and the dependencies that connect them. Decisions about boundaries affect all later fields. A split may change which item bears a feature, which item acts as a head, and which relations the tree must record.

The corpus provides written forms on which to settle and document these decisions. The table identifies the annotation question raised by each excerpt. The glosses and translations are for reading the examples.

FormGlossTranslationAnnotation questionCorpus sentence ID
bol'ŋmɛriba yuyaball.player.PL name.PL‘names of ballplayers’How should the internal apostrophe be retained, and where are the syntactic word boundaries?wiki:dag:Oklahoma City Thunder all-time roster
buku ŋɔ nibook DEM.PROX in‘in this book’How should the demonstrative and the following adposition be tagged and attached?wiki:dag:Portia Arthur
daa nyɛlaPST COP‘was’How should the past marker and the copular form be represented in a clause with a nominal predicate?wiki:dag:Seattle SuperSonics all-time roster
32.3%decimal percentage‘32.3 percent’How should the decimal point and percent sign be treated when assigning boundaries?wiki:dag:Alan John Kyerematen

An annotation policy needs to cover punctuation inside a written form as well as punctuation between words. It also needs to account for the adjacent words in a construction. In buku ŋɔ ni, for instance, both the internal structure of the noun phrase and the role of the following adposition matter to the tree. Glossing the expression identifies its parts for the reader. UD annotation assigns each syntactic word a tag and a relation according to a consistent analysis.

Once the boundaries are established, the treebank needs consistent lemmas, universal and language-specific tags, and feature values for the distinctions it records. Dependency annotation then needs consistent heads and relations for the same constructions across sentences. Noun phrases, verbal markers and clauses with nominal predicates provide early cases to resolve because they exercise both tagging and attachment. Names, abbreviations and numerical expressions also need consistent treatment where they occur within Dagbani text.

Training and evaluation prerequisites

The package asks for the same baseline for each language. For Dagbani, that baseline requires a UD training split and a development split with compatible annotation. The training split supplies examples for the tagger and tree parser. The development split supplies the reference trees for evaluation. Comparable annotation across the splits means that equivalent constructions receive equivalent treatment, including where the spelling or context varies.

StepInputPurpose
en xpos-fillUD training dataPrepare the language-specific part-of-speech field before training
en trainPrepared UD training splitTrain the tagger and dependency parser
en parse-evalA model trained on the training split and reference trees in the development splitMeasure UAS and LAS on development data

UAS evaluates whether the predicted head matches the reference head. LAS evaluates whether both the predicted head and the dependency relation match. These scores concern dependency attachment. They do not measure whether the language identifier placed a boundary correctly or selected the right language. Dagbani has no train-to-development result in Mova because the annotated data for that evaluation are absent.

Frames, pragmatics and the claim queue

Mova’s frame, pragmatic and world processing currently reads English trees. A Dagbani span with Parse=None supplies no dependency structure to that processing. A Dagbani parse is a prerequisite for any downstream analysis that would use its tree. The English-tree restriction defines the current input to these components.

Squid reads the grammar manual and records each grammatical point as a claim. Formalizable claims, including rules, closed lists and statistics, wait in the queue for implementation. A queued claim records a statement from the grammar. It supplies no token boundary, tag or dependency in parser output until implemented. For Dagbani, the claims most directly relevant to a first parser baseline are those needed to establish word boundaries, annotate grammatical categories and build consistent UD trees.

How Mova handles Dagbani today

tools/mova-parse uses tools/langseg at level 1 to assign a language to every sentence and span. The identifier distinguishes English and French in Latin script using a Latin table, language lexicons and a character 4-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Other scripts receive other. For an additional Latin-script language, the identifier needs a lexicon and a Lang code. langseg latin-lexicon builds the lexicon from an open UD training split. Span identification is limited to the scripts and lexicons that the identifier supports.

At level 2, tools/mova-parse looks for the model file belonging to the language assigned to each span. Dagbani has no such model. The # parse comment reports the missing model. For a dag span, the token rows contain _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, with Parse=None in MISC. Mova provides no Dagbani-specific tokenization, tagging, lemmatization or parsing.

Mova’s own parser is the en crate. Its available models are en.bin for English and fr.bin for French. What every language gets calls for the same baseline for every language. en train trains a tagger and tree parser on a UD training split after en xpos-fill. en parse-eval measures UAS and LAS on the development split. Mova holds no annotated Dagbani treebank, so it has no measured Dagbani treebank baseline.

Mova’s frames, pragmatics and world components read English trees. Unparsed Dagbani spans supply no tree for them to read. Squid turns grammatical points in the manual into claims and queues formalizable claims for implementation. The Dagbani rules described in the manual have no implementation yet. The first points needed are those that support a tokenizer, a tagger and a UD treebank baseline.

Sources for this chapter

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