32. Algerian Berber in Mova
The ber-x-dz package describes Algerian Berber and includes text examples from Kabyle. Mova has no dedicated parser model or annotated corpus for this package, so it reports no dependency parsing scores for the language. Language identification, syntactic parsing and interpretation each have their own conditions for coverage.
The ber-x-dz package and its current data
ber-x-dz is the language code for the Algerian Berber edition of the manual. Its descriptive scope includes Kabyle, Chaouia and Mozabite. The supplied corpus excerpts are in Kabyle, drawn from the Kabyle Wikipedia. They give examples of written usage with identifiers that locate the source articles. The package has no annotated Algerian Berber corpus and no level-2 model. The following excerpts illustrate the text evidence available to the manual.
| Kabyle form | Gloss | Translation | Corpus sentence ID |
|---|---|---|---|
| “Tutlayt taqbaylit” | language.F.SG Kabyle.F.SG | ‘the Kabyle language’ | wiki:kab:Tutlayt taqbaylit |
| “Agemmay alatini” | alphabet.M.SG Latin.M.SG | ‘the Latin alphabet’ | wiki:kab:Agemmay alatini |
| “Isem-is” | name-POSS.3SG | ‘its name’ | wiki:kab:Tiɣiɣac |
The excerpts are from Kabyle Wikipedia, CC BY-SA 4.0. The forms are already in Latin script. In the glosses, F and M mark feminine and masculine, SG marks singular, and POSS.3SG marks a third-person singular possessor. These glosses describe the quoted forms for the reader. The corpus identifiers locate the text examples.
Language identification and script coverage
Mova's multilingual parser assigns a language to each sentence and span at level 1. A sentence can contain more than one span, and the label on each span determines which language's model the parser looks for at level 2. The span label therefore matters even in a text whose overall language is known.
The language identifier tools/langseg distinguishes English and French in Latin script using a Latin table, a lexicon for each language and a character 4-gram model. It also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Other scripts are classified as other. Latin-script Algerian Berber uses a script the identifier encounters, but ber-x-dz lacks its own Latin-script identification resources. Latin letters alone do not identify a span as Algerian Berber. Algerian Berber written in Tifinagh or Arabic script falls under other in the current script coverage.
The supported route for adding a Latin-script language is to add a lexicon and a Lang code. langseg latin-lexicon builds the lexicon from open Universal Dependencies training splits. Those resources address recognition of Algerian Berber spans. Syntactic analysis of a recognized span also requires the language's parser model.
Missing parser model and unannotated output
At level 2, tools/mova-parse looks for the model associated with the language label of each span. Mova has no model for ber-x-dz. When a span reaches level 2 under a label whose model is missing, the # parse comment reports the missing model. The output rows for such a span have the following values.
| Field | Value for a span with no model | Annotation normally represented |
|---|---|---|
LEMMA | _ | Dictionary form |
UPOS | _ | Universal part-of-speech tag |
XPOS | _ | Language-specific part-of-speech tag |
FEATS | _ | Morphological features |
HEAD | _ | Syntactic head |
DEPREL | _ | Dependency relation to the head |
MISC | Includes Parse=None | Parse availability in this case |
The underscores mark absent annotations. In particular, an underscore in HEAD gives no head assignment, and an underscore in DEPREL gives no relation assignment. The presence of output rows for a span does not establish that Mova has applied Algerian Berber tokenization. For this language Mova supplies no dedicated tokenization, tagging, lemmatization or dependency analysis.
The script classification other concerns language identification at level 1. The marker Parse=None concerns model availability at level 2 for the language label with which a span reaches that level. Seeing Parse=None alone gives no evidence that the span was identified as ber-x-dz.
Annotated corpus and treebank baseline status
Mova holds no annotated corpus for ber-x-dz and reports no treebank baseline. The Kabyle excerpts supplied for the manual give surface forms in context. They supply no reference tokenization, tags or dependency trees for training and evaluation. The chapter's glosses likewise provide no dependency annotations.
The baseline called for by the language package uses a Universal Dependencies training split and a development split. The training split supplies annotated sentences from which the tree parser and tagger learn. The development split supplies reference annotations against which parser output is compared. The relevant reference data for the attachment scores include the syntactic head and dependency relation of each token included in evaluation.
A baseline describes performance on the material in its development split. For a package whose descriptive scope covers several varieties, the variety coverage of that split determines how broadly the scores can be interpreted. The supplied Kabyle examples establish only that Kabyle text is available among the excerpts. There is currently no measured result for the package or for any of its varieties within the package.
Training and evaluation with UAS and LAS
Mova's parser and tagger are implemented in the en crate. The baseline procedure applies en xpos-fill before en train, which trains on the language's UD training split. en parse-eval evaluates the resulting parser on the development split. Thus the training data and the reference data for scoring have distinct roles. Mova has models for English (en.bin) and French (fr.bin). The package specification in What every language gets calls for the same baseline for each language.
Unlabeled attachment score (UAS) and labeled attachment score (LAS) both measure agreement with the reference tree over the tokens included in scoring. A head is the element to which the token attaches. The relation label specifies the type of attachment.
| Prediction for an evaluated token | Counts as correct for UAS | Counts as correct for LAS |
|---|---|---|
| The head and relation both match the reference | Yes | Yes |
| The head matches and the relation differs | Yes | No |
| The head differs and the relation matches | No | No |
| The head and relation both differ | No | No |
UAS is the proportion of evaluated tokens with the correct head. LAS is the proportion with both the correct head and the correct relation. These measures evaluate dependency attachments. They give no separate score for language identification, lemmatization, morphological features, frames or pragmatics. For ber-x-dz, the absence of an annotated corpus and a parser model leaves both attachment scores unmeasured. Parse=None records unavailable parsing and supplies no score.
Availability of frames and pragmatics
Mova's frame, pragmatics and world facilities read English trees. A dependency tree is an input to this processing. An Algerian Berber sentence may be present as text, or a span may be represented by rows with Parse=None, but neither representation supplies a tree for those facilities to read.
Mova therefore produces no frame, pragmatic or world analysis from an Algerian Berber tree. Parsing is the first missing input for such analysis. The current tree-reading coverage described for these facilities is English. The distinction also applies to the manual's descriptions of meaning and use. A description of a speech act or an inferred meaning documents a grammatical or pragmatic point without providing a runtime analysis of any Algerian Berber sentence.
How Mova handles Algerian Berber claims in Squid
Squid reads the grammar manual and turns every grammatical point into a claim. Formalizable claims, including rules, closed lists and statistics, wait in Squid's queue for a place in Mova's code. A queued claim remains pending until it is implemented. The manual's Algerian Berber rules are currently unimplemented. The first claims relevant to language support are those needed for a tokenizer, a tagger and a Universal Dependencies treebank baseline.
At runtime, tools/langseg can identify a language span only where it has the relevant script or lexical coverage. tools/mova-parse then uses the model of the language assigned to each span. For a span labeled ber-x-dz, there is no level-2 model. The # parse comment reports the missing model, the lemma, part-of-speech, feature, head and relation fields are unannotated, and MISC contains Parse=None. Mova has no annotated Algerian Berber corpus, so there is no measured treebank baseline. Its frame, pragmatics and world processing reads English trees, and Algerian Berber supplies no parsed tree for that processing.
Sources for this chapter
- No source was planned for this chapter; its points are to be checked against public-domain and open grammars (see Sources).
This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/ber/ber-x-dz/32-mova-tools/