Mova0.6 pre-release

Old Javanese: the red and white stripes of Majapahit 28. Old Javanese in Mova

Old Javanese has the edition code kaw. Mova currently has neither a parser model nor an annotated treebank for the language. In multilingual input, language recognition and dependency parsing are separate operations. The distinction determines what Mova can report about a stretch of Old Javanese text and what the grammatical fields in its output mean.

Script and language recognition in the multilingual pipeline

tools/mova-parse works at two levels. At level 1, tools/langseg assigns a language label to each sentence and span. At level 2, the parser looks for a model for the language assigned to each span. A sentence can contain spans with different labels, so the model lookup is specific to the span.

The Latin-script component of tools/langseg distinguishes English and French. It uses a Latin-script table, a lexicon for each language, and a character model based on sequences of four characters. The segmenter also distinguishes Hebrew-script varieties and recognizes Hebrew or Aramaic in scholarly transliteration. Scripts outside the supported inventory receive the label other. For Old Javanese written in such a script, other gives no identification as kaw. A Latin-script rendering can be processed by the Latin-script component, whose stated language inventory provides no Old Javanese identification.

The route for adding another Latin-script language is to add a lexicon and a Lang code. langseg latin-lexicon can build the lexicon from an open Universal Dependencies (UD) training split. That lexicon serves language recognition. Parsing still requires the separate level-2 model for the language.

A Romanized word illustrates the difference between a readable form and a recognized language span.

FormGlossTranslation
maṅaneat‘eat’ (constructed)

The example is already in Latin script. Its spelling and gloss make it usable as a grammar example. They do not establish that the segmenter returns kaw for it.

The kaw package and output in the absence of a parser model

The edition code identifies the language for which the package calls for a parser baseline. To parse a span, tools/mova-parse needs the model file corresponding to the span’s language code. There is no such model for kaw. When the pipeline encounters a language without a model, it reports that condition in the # parse comment. Where token rows appear for an unparsed span, the output marks the missing analysis as follows.

Output fieldValueInterpretation
LEMMA_No lemma is supplied.
UPOS_No universal part-of-speech tag is supplied.
XPOS_No language-specific part-of-speech tag is supplied.
FEATS_No morphological features are supplied.
HEAD_No syntactic head is supplied.
DEPREL_No dependency relation is supplied.
MISCParse=NoneThe row has no parser analysis.

The comment records the missing-model condition, and Parse=None marks the affected rows. Read the underscores in conjunction with that marker. An underscore in FEATS leaves morphological features unspecified. An underscore in HEAD leaves the head unspecified, including whether the token is the root of a clause.

The presence of rows in this fallback format does not establish Old Javanese token boundaries. Mova has no Old Javanese tokenization in this configuration, and the rows provide no evidence about how to divide a written form into syntactic words. For the same reason, an output row supplies no lemmatization or tagging decision that can be reused as Old Javanese annotation.

Treebank availability and the status of baseline measurements

Mova holds no annotated Old Javanese treebank. Its package specification, What every language gets, calls for the same baseline procedure for every language. That procedure uses a UD training split and a development split. The training split supplies annotated examples to the parser and tagger. The development split supplies reference trees against which the resulting parser is evaluated.

StepCommandRole in the baseline
Prepare the training dataen xpos-fillPrepare the UD training split before training.
Train the modelen trainTrain the tree parser and tagger on the training split.
Evaluate the parseren parse-evalMeasure UAS and LAS on the development split.

Unlabeled attachment score (UAS) measures whether the parser assigns the reference head. Labeled attachment score (LAS) additionally requires the reference dependency relation. For example, an attachment to the reference head with a different relation can count toward UAS while failing the LAS criterion. Both measurements require a reference analysis and parser predictions that can be compared with it.

The Old Javanese baseline is unmeasured. The absence of a score represents the absence of an evaluation. Rows with Parse=None are fallback output, so they cannot supply the parser predictions for the baseline. The scope of the treebank status is Mova’s holdings.

Dependencies of frames and pragmatics on parsed trees

Mova’s frames, pragmatics, and world components, prag and world, read English trees. A parsed tree provides the attachment structure those components read. The language label belongs to the recognition stage. It contains no information about which token heads a clause or how its arguments attach.

For an Old Javanese span, the missing values in HEAD and DEPREL leave the tree unavailable. The pipeline therefore supplies no parsed Old Javanese input to those components. A person can still analyze a text’s predicates, recover arguments from context, or interpret a speaker’s intent. Those interpretations are outside the output described here. A tree would supply a necessary input for work on frames and pragmatics. The current tree readers operate on English.

Squid claims and the queue for formalizable rules

Squid reads the grammar manual and turns each grammatical point into a claim. Formalizable claims wait in its queue for a place in Mova’s code. They include rules, closed lists, and statistics. Queue status records that a point has been expressed as a claim and is awaiting implementation.

A rule needs an identifiable input, a condition under which it applies, and an outcome. Any exception that changes the outcome matters to the rule. A closed list needs a stated scope and all of its members within that scope. A statistic needs a defined set of observations so that the reported value can be interpreted. For instance, a frequency in an annotated collection would describe that collection and would require its own definition of what was counted. It would be a different measurement from parser attachment accuracy.

For Old Javanese, the first points needed are those that support a tokenizer, a tagger, and a UD treebank baseline. These stages need different kinds of decisions. Tokenization needs criteria for word boundaries in the input. Tagging needs criteria for assigning word classes and features to the resulting words. Treebank annotation needs criteria for choosing heads and naming dependency relations. Those annotation decisions give the training data and the reference analysis used to measure the parser. A claim about any of these decisions remains a description in the manual until it is implemented.

How Mova handles Old Javanese today

Language recognition in tools/mova-parse depends on the script and lexicon coverage of tools/langseg. Its Latin-script language coverage is English and French. It also handles Hebrew-script varieties and scholarly transliteration of Hebrew or Aramaic. A script outside its coverage receives other. A further Latin-script language can be added with a lexicon and a Lang code, using langseg latin-lexicon with an open UD training split.

Old Javanese has no level-2 model for kaw. tools/mova-parse reports a missing model in # parse and leaves the grammatical fields unannotated, with Parse=None in MISC. Mova supplies no Old Javanese tokenization, tagging, lemmatization, or dependency parse. Its frames, pragmatics, and world components read English trees and have no Old Javanese tree to read.

Mova has no Old Javanese treebank and no measured baseline. The parser and tagger models available for English and French are en.bin and fr.bin. The package calls for a language’s own UD baseline, with en xpos-fill before en train and development-set UAS and LAS measured by en parse-eval. Squid records the grammar’s points as claims and queues the formalizable ones. The Old Javanese rules remain unimplemented.

Sources for this chapter

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