28. Tok Pisin tools and data in Mova
Mova has neither a Tok Pisin (tpi) parser model nor an annotated Tok Pisin treebank. It can report missing analysis in its multilingual output, but it has no measured parsing baseline for the language. This chapter describes how to read that output, what the baseline would measure, and which grammar distinctions matter for the first annotated data.
Latin-script language identification and its coverage
Language identification is level 1 of tools/mova-parse. At this level, tools/langseg assigns a language to each sentence and span. The span label matters because level 2 selects a parser model separately for each span. A sentence label alone does not determine the parser for every part of a mixed-language sentence.
The Latin-script identification system distinguishes English and French. It uses a Latin table, a lexicon for each supported language, and a character 4-gram model. tools/langseg also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside its coverage are classified as other.
Tok Pisin uses Latin script, but script recognition alone supplies no tpi identification. An additional Latin-script language joins the system through a lexicon and a Lang code. The lexicon workflow, langseg latin-lexicon, uses open Universal Dependencies (UD) training splits. Identification coverage and model coverage are separate. A language needs an identification label for the segmenter to route its spans automatically, and a labeled span needs a corresponding model to receive a parse.
Model lookup and Parse=None output for Tok Pisin
At level 2, tools/mova-parse looks for the model that matches the language of the span, using the template <code>.bin. The installed language models are English (en.bin) and French (fr.bin). There is no tpi model, so a span presented to level 2 as Tok Pisin has no corresponding parser. The lookup uses the span's language code, with no substitution of an English model on the basis of the script.
The # parse comment reports a language for which the model is missing. In the token rows for that language, the affected fields have these values.
| Field | Value | Analysis unavailable |
|---|---|---|
LEMMA | _ | Lemma |
UPOS | _ | Universal part-of-speech tag |
XPOS | _ | Language-specific part-of-speech tag |
FEATS | _ | Morphological features |
HEAD | _ | Syntactic head |
DEPREL | _ | Dependency relation |
MISC | Parse=None | Parser availability recorded for the token |
The token rows carry the forms through to the output with their annotations unset. The presence of those rows gives no evidence that a Tok Pisin tokenizer has assigned the boundaries. Likewise, an underscore in HEAD leaves the token's attachment unknown, including whether the token is the root.
Tok Pisin treebank status and the unmeasured baseline
Mova has Tok Pisin text, including excerpts from Tok Pisin Wikipedia. The corpus identifiers in this chapter locate examples of usage. An attested form in that text supplies evidence about spelling and distribution, while a treebank must also supply manually established analyses that a parser can learn from or be scored against.
Mova has no annotated Tok Pisin treebank. The package therefore has no Tok Pisin UD training and development splits for its baseline, no trained Tok Pisin model, and no measured attachment scores. The missing scores are unmeasured quantities. Parse=None records a missing parse in a particular output, whereas a baseline score would summarize comparisons between predicted and reference trees over a development split.
The training workflow and UAS and LAS measurements
The package asks for the same baseline for each language. Mova's own parser is in the en crate. In the baseline workflow, en xpos-fill precedes training. en train trains both the tree parser and the tagger on the language's UD training split. en parse-eval measures the predicted trees on the development split. The training split supplies the examples that fit the model. The development split supplies the reference analyses for evaluation.
| Measure | A scored token counts as correct when |
|---|---|
| Unlabeled attachment score (UAS) | Its predicted syntactic head matches the reference head. |
| Labeled attachment score (LAS) | Both its predicted syntactic head and its predicted dependency relation match the reference analysis. |
Each score is the proportion of evaluated tokens that meet its criterion. For example, on a token whose head is correct but whose relation is wrong, the attachment contributes to UAS only. The scores use reference dependency structures. They do not measure language identification or the interpretation of a dependency tree as a frame or speech act.
Training and evaluation both depend on how the reference data represent the language. Token boundaries determine the units to which tags and heads can be assigned. Head and relation conventions determine what the evaluation counts as a correct attachment. Consistent decisions across the two splits let the scores measure whether the parser generalizes the analyses it sees in training.
Frames and pragmatics in the current pipeline
Mova's frame, pragmatics and world components read English dependency trees. Their input is an analyzed tree, so identification of a Tok Pisin span provides no such input. Rows with Parse=None supply no heads or dependency relations for these components to interpret.
A Tok Pisin dependency tree would be a prerequisite for downstream analysis of Tok Pisin. The current components read English trees, and the availability of a Tok Pisin tree would establish only that the syntactic input exists. The baseline's UAS and LAS would evaluate that input at the dependency level.
Grammar claims in Squid and priorities for tokenization, tagging and parsing
Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable rules, closed lists and statistics wait in Squid's queue for a place in Mova's code. A queued claim records the description. Its runtime status depends on implementation.
For Tok Pisin, the first priorities concern the units and distinctions needed for a UD treebank baseline. Tokenization establishes which forms get rows. Tagging assigns word classes in context. Dependency annotation assigns heads and relations to the resulting tokens. The corpus fragments below are in Latin script, so the form itself supplies the reading line. In the glosses, DEM means demonstrative and PRED means predicate marker.
Token boundaries
The written demonstrative dispela and the numeral wanpela each appear as one word in these examples. An annotation guideline needs to distinguish an analysis of a word's internal parts from the decision to split a surface token. The calendar example also supplies digit and word forms of numerals in the same phrase. Their spellings belong in the form field as written, even when the analysis assigns them the same word class.
| Form | Gloss | Translation | Corpus ID |
|---|---|---|---|
| dispela tokples stret | DEM language exactly | ‘this very language’ | wiki:tpi:Grama |
| wanpela o tupela de | one or two day | ‘one or two days’ | wiki:tpi:Wik |
| 52 wik | 52 week | ‘52 weeks’ | wiki:tpi:Wik |
A tokenization specification also needs decisions about punctuation adjoining words and the words inside multiword names. For instance, Papua Niugini means ‘Papua New Guinea’, with the gloss ‘Papua New.Guinea’. It has two space-separated forms and refers to one country. The token boundaries and the connection between the name's parts are separate annotation decisions. (wiki:tpi:Papua Niugini)
Tags in context
An orthographic form alone can leave a tag ambiguous. The form ol can mark plural reference before a noun, or stand independently as a third-person plural pronoun. The two uses call for an annotation rule that checks the role of ol in the phrase or clause. The separately written i before the predicate in the second example is another recurring form whose tag needs a consistent convention.
| Form | Gloss | Translation | Corpus ID |
|---|---|---|---|
| ol kantri | plural country | ‘countries’ | wiki:tpi:Fran pes |
| ol i ajetiv | they PRED adjective | ‘they are adjectives’ | wiki:tpi:Ajetiv bilong nambawan kain |
Heads and relations
The treebank guidelines need an analysis for clauses with a nominal predicate as well as clauses whose predicate is a verb. A recurring configuration places i before the predicate, as in the two fragments below. Guidelines should specify the predicate head, the attachment of i, and how to identify a subject when the clause contains a form such as em before i.
| Form | Gloss | Translation | Corpus ID |
|---|---|---|---|
| em i wanpela kantri | it PRED one country | ‘it is a country’ | wiki:tpi:Papua Niugini |
| i gat 52 wik | PRED have 52 week | ‘has 52 weeks’ | wiki:tpi:Wik |
The annotation also needs to account for the range of relations expressed by forms such as long and bilong. The first example below locates a referent in a region. The second uses a phrase headed by bilong to specify a country's language. The surrounding construction provides the evidence for what each phrase modifies. The guideline must settle both the treatment of the marker within the phrase and the phrase's attachment to the rest of the tree.
| Form | Gloss | Translation | Corpus ID |
|---|---|---|---|
| long rijen Melanesia | in region Melanesia | ‘in the Melanesian region’ | wiki:tpi:Papua Niugini |
| tokples bilong Papua Niugini | language of Papua New.Guinea | ‘language of Papua New Guinea’ | wiki:tpi:Tok Pisin |
These examples identify decisions that would affect both training and evaluation. The annotations for those constructions belong in the reference trees used by the baseline.
How Mova handles Tok Pisin in the current pipeline
tools/mova-parse assigns sentence and span languages through tools/langseg at level 1, then looks up a language-specific model for each span at level 2. Identification is limited to the segmenter's script and lexicon coverage. Its Latin-script identification distinguishes English and French. Adding a further Latin-script language uses a lexicon from open UD training splits through langseg latin-lexicon and a Lang code.
There is no level-2 model for tpi. For Tok Pisin spans, tools/mova-parse reports the missing model in the # parse comment, places Parse=None in MISC, and leaves LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL as _. Tok Pisin tokenization, tagging, lemmatization and parsing are unavailable.
Mova has no annotated Tok Pisin treebank and no measured Tok Pisin baseline. The baseline requested in What every language gets uses en xpos-fill before en train, then measures development-set UAS and LAS with en parse-eval. The existing models are en.bin and fr.bin.
Mova's frame, pragmatics and world components, including prag and world, read English trees and have no Tok Pisin parse to consume. Squid turns the manual's grammatical points into claims and queues the formalizable ones. The Tok Pisin rules await implementation, beginning with what a tokenizer, a tagger and a UD treebank baseline need.
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/tpi/28-mova-tools-and-data/