37. Gheg in Mova
Mova has a multilingual parsing pipeline. Its Gheg edition uses the language code aln. The package currently lacks a Gheg parser model and an annotated Gheg treebank, so there is no measured Gheg parsing baseline. The multilingual output records when a span has received no parse.
The multilingual parser and language identification
tools/mova-parse has two levels. At level 1, tools/langseg assigns a language to each sentence and span. At level 2, the parser selects a model using the language assigned to the span. Each model lives in the corresponding language’s model directory and has a filename based on that language code. A span assigned aln would require aln.bin.
The Latin-script component of tools/langseg distinguishes English and French using a Latin table, a lexicon for each language and a character four-gram model. The segmenter also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside its supported coverage are classified as other.
Gheg uses the Latin script, and the current English and French coverage supplies no Gheg identification. The edition code identifies the language of this manual. Automatic span labeling requires coverage in the segmenter itself. To add another Latin-script language, the segmenter needs a lexicon and a Lang code. The langseg latin-lexicon command can build the lexicon from an open Universal Dependencies (UD) training split.
The two levels make separate decisions on multilingual text. Level 1 supplies the label used for model lookup, and level 2 needs a model for that label. Consequently, adding Gheg identification would allow the segmenter to route a Gheg span to model lookup. Producing a Gheg dependency tree would still require the Gheg model.
Gheg model availability and unannotated output
Mova has no level-2 model for aln. When tools/mova-parse has a span labeled with a language whose model is missing, it reports that language in the # parse comment and leaves the linguistic annotation fields empty. For a span labeled aln, the token rows have the following values.
| Field | Value | Information left unassigned |
|---|---|---|
| LEMMA | _ | Dictionary form |
| UPOS | _ | Universal part of speech |
| XPOS | _ | Language-specific part-of-speech tag |
| FEATS | _ | Morphological features |
| HEAD | _ | Index of the syntactic head |
| DEPREL | _ | Dependency relation to the head |
| MISC | Parse=None | Explicit record that the parser supplied no analysis |
The # parse comment reports the missing model, while Parse=None marks the affected token rows. An underscore in HEAD supplies no head index, and an underscore in DEPREL assigns no relation. A reader or downstream program therefore has no dependency tree to recover from those rows.
This output convention applies once a span has the relevant language label. A Gheg passage submitted as text may lack that label because Gheg identification is outside the current Latin-script coverage. Likewise, the presence of token rows in the missing-model output gives no evidence that Gheg-specific token boundaries have been recognized. The package supplies no Gheg tokenization, tagging, lemmatization or parsing.
The treebank requirement and unmeasured baseline
Mova’s package specification in What every language gets calls for the same baseline for each language. The en crate implements Mova’s tree parser and tagger. In the baseline workflow, en xpos-fill precedes en train, which trains the parser and tagger on the language’s UD training split. en parse-eval then measures attachment on the development split. English and French have model files, en.bin and fr.bin.
| Measure | What counts as a correct attachment |
|---|---|
| UAS, unlabeled attachment score | The predicted head matches the reference head. |
| LAS, labeled attachment score | The predicted head and dependency relation both match the reference annotation. |
The training split supplies annotated examples for learning the model. The development split supplies reference attachments against which predictions can be scored. The baseline thus requires Gheg data with UD annotation and suitable training and development splits. Language identification, plain Gheg text and missing-model output provide no reference attachments for that evaluation.
Mova holds no annotated Gheg corpus. There is no Gheg train-to-development result for UAS or LAS, and there is no Gheg model to evaluate in the multilingual parser. The empty fields emitted for missing models are output conventions. They contribute no attachment scores.
Tokenization, tagging and Universal Dependencies annotation priorities
The first work for a Gheg treebank is to make decisions that can be applied consistently to new text. Tokenization establishes which units get annotation and which units can serve as dependency heads. An annotation policy for Gheg text needs to cover punctuation, apostrophes, attached forms and combinations written as separate words. It also needs to distinguish the boundaries visible in the source text from any division into syntactic words needed by the annotation.
Tagging then assigns each syntactic word a universal part of speech, a language-specific tag where the annotation uses one, and applicable morphological features. Lemmatization needs a consistent treatment of inflected forms and of spelling variants encountered in the corpus. A treebank that includes more than one variety or spelling practice needs to record forms as written and state which forms share a lemma. That decision affects searches and training data even when the complete sentence has the same interpretation in each spelling.
Dependency annotation determines a head and a relation for each syntactic word represented in the basic tree. Useful early cases include finite predicates with auxiliaries, object clitics, negation, question particles and the Gheg me infinitive. They provide concrete checks on whether boundary, tag and attachment decisions work together. The following examples illustrate the decisions. They are constructed.
| Form | Word-by-word gloss | Translation | Annotation decision |
|---|---|---|---|
| Du me punue. (constructed) | want.PRS.1SG INF work.PTCP | ‘I want to work.’ | Identify the finite predicate and its nonfinite complement, and specify the tag and attachment for me. |
| S’po punoj. (constructed) | NEG PROG work.PRS.1SG | ‘I’m not working.’ | Specify how apostrophe spelling maps to syntactic words and how negation and the progressive marker attach. |
| A po punon? (constructed) | Q PROG work.PRS.2SG | ‘Are you working?’ | Annotate the question particle and progressive marker, and apply the feature policy to a verb form compatible with both second- and third-person singular readings. |
In the glosses, PRS marks present, SG singular, INF an infinitival marker, PTCP a participle, NEG negation, PROG a progressive marker and Q a question particle. The final translation selects a second-person reading. Context would be needed to choose a subject interpretation with confidence in an isolated occurrence.
The tokenizer and annotation guidelines must agree about the units to which lemmas, tags and heads are assigned. Otherwise, a boundary difference can propagate into several columns of the same tree. Applying the same conventions to the training and development splits makes the resulting attachment scores interpretable. These are priorities for preparing Gheg data. Mova currently has no Gheg treebank or implemented Gheg analysis against which to check the examples.
Dependencies for frames, pragmatics and world analysis
Mova’s frame, pragmatic and world analysis currently reads English trees. The prag and world components therefore have no Gheg tree input while Gheg remains unparsed.
A dependency tree provides information that later analysis can use. A frame analysis needs the predicate and its dependents to identify possible participants. Pragmatic analysis may need the interrogative or negative expression and its relation to the predicate. World analysis needs an interpretation of the entities and relations expressed by the clause. In missing-model output, HEAD and DEPREL provide no links for these uses, and the other empty annotation fields supply no lexical or grammatical analysis.
A Gheg tree is a prerequisite for passing Gheg syntax to those stages. The documented downstream input is English, so the production of a Gheg UD tree would establish the availability of syntax only. Gheg frame extraction, pragmatic interpretation and world analysis have no current implementation described here.
How Mova handles grammatical claims and the Squid queue
Squid reads the manual and turns every grammatical point into a claim. Claims that can be formalized, including rules, closed lists and statistics, wait in Squid’s queue for a place in Mova’s code. A queued claim is pending implementation. The manual’s Gheg rules currently have no implementation in Mova.
tools/langseg can identify spans of a language without a parser model only within its script or lexicon coverage. Its Latin-script coverage distinguishes English and French. For an aln span, tools/mova-parse has no level-2 model. It reports the missing model in # parse, writes _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL, and puts Parse=None in MISC. Mova supplies no Gheg tokenization, tagging, lemmatization or parsing.
The first implementation priorities are the claims needed by a tokenizer, a tagger and a UD treebank baseline. Mova holds no annotated Gheg treebank, so the baseline remains unmeasured. Its frame, pragmatic and world analysis reads English trees, and prag and world have no parsed Gheg input.
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/sq/aln/37-mova-tools/