Mova0.6 pre-release

Old Hungarian: the Árpád stripes, red and silver 29. Old Hungarian in Mova

Mova has no parser model or annotated treebank for Old Hungarian (ohu). This chapter explains how to read the output when a span has no model, what a first Universal Dependencies (UD) baseline would measure, and what tree annotation would supply to later stages of analysis.

Language identification and its limits

Language identification assigns a language to a sentence or span. A language label determines which model the parser would look for. It gives no information about the words’ lemmas, grammatical categories or syntactic relations. A passage can be correctly identified and still have no parse. In a mixed-language passage, identification and model availability matter for each span.

The current Latin-script distinctions in Mova cover English and French. Latin script alone therefore does not establish an ohu label. Assigning a label to a manuscript transcription requires evidence that distinguishes Old Hungarian from other Latin-script material. A brief fragment can offer little such evidence, and the spelling used in an edition affects which forms a lexicon can match. A label on the surrounding text is also distinct from the language of a particular span.

Adding a Latin-script language to the identification stage requires a language code and a lexicon. The provision for building such lexicons uses open UD training splits. The evidence used for identification and the coverage of the tree parser answer separate questions. Lexical coverage concerns whether the system can recognize a span as belonging to the language. Parser coverage concerns whether it has a model to analyze a span assigned that language.

Missing-model output and unannotated tokens

When a span is assigned to a language without a model, the # parse comment reports the missing model. The token rows for the affected span carry the following values.

FieldValueAnalysis left unassigned
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=NoneThe row has no parse

Read the underscores together with Parse=None. An underscore in FEATS leaves the morphology unassigned. An underscore in HEAD leaves the head unassigned, including the question of which token is the root. The presence of a form on a row supplies no evidence that Mova has resolved historical word boundaries.

FormGlossTranslation
ház-athouse-ACC“house” as a direct object (constructed)

The example uses Latin script, with a hyphen to show the suffix boundary for the reader. If házat appears on an unannotated row for an ohu span, neither the lemma ház nor the accusative feature has been assigned by Mova. A head and dependency relation would also require the construction in which the form occurs.

Treebank status and baseline measurements

Mova holds no annotated Old Hungarian treebank. A transcription supplies text, and a glossary supplies lexical information. A UD treebank must also specify the syntactic words in each sentence and record their annotation, including which word governs each dependent and what relation holds between them. These reference analyses let an evaluation compare predicted dependencies against human annotation.

The baseline specified for a language uses a UD training split and evaluates the resulting model on a development split. The training split supplies examples for learning the annotation. The development split supplies annotated sentences for scoring the model on material held out from training. The two splits need compatible annotation conventions so that equivalent analyses receive the same representation.

MeasureWhat counts as correct for a scored word
Unlabeled attachment score (UAS)The predicted head matches the reference head.
Labeled attachment score (LAS)The predicted head and dependency relation both match the reference annotation.

Both scores summarize attachment accuracy over the words included in evaluation. Their scope is the development material and the annotation conventions used there. Neither score measures language identification, and separate evidence is needed to assess lemmatization, tagging or morphological features. Mova has no measured Old Hungarian treebank baseline. A missing-model row supplies no predicted attachment to compare with a reference tree.

Prerequisites for a tokenizer, tagger and parser baseline

A tokenizer baseline needs a defined input representation and reference boundaries for that representation. For a historical text, the annotation policy has to specify which transcription or edition is presented to the tokenizer. If the input includes editorial punctuation, expansions of abbreviations, supplied letters or marks of uncertain readings, the policy has to say how those elements are represented and which ones enter the token sequence. It also has to cover cases where a written unit and a syntactic word do not coincide. If multiple representations are retained, the annotations need to be traceable to the text actually given as input.

A tagger baseline needs annotated words and a consistent inventory of labels. Universal part-of-speech tags classify words in context. Language-specific tags need their own conventions wherever used. Lemmas and morphological features provide additional annotation, with decisions about the treatment of spelling variants and what the text licenses an annotator to assign when the reading is uncertain. If a written form permits several analyses, the annotation needs to record the analysis supported in its context or follow an explicit convention for unresolved cases.

A parser baseline needs sentence boundaries and reference heads and relations for the syntactic words. Annotation decisions must cover the constructions present in the material, including predicates, their arguments and modifiers, and dependencies within phrases and across clauses. The relevant distinction for a baseline is one that changes a boundary, a tag or feature, a head, or a dependency label. An account of a construction in the grammar can guide that decision. The treebank must still record a reference analysis for each instance it includes.

These decisions have to agree across training and development. Scoring attachment presupposes that predicted words and reference words can be brought into correspondence. A discrepancy in segmentation can prevent that comparison before the choice of head or relation is considered.

Frames, pragmatics and their input requirements

A dependency tree gives relations among words in a sentence. Frame analysis uses syntactic structure to identify predicates and the roles of their participants. Pragmatic interpretation also concerns how an utterance functions in context. A language label and a sequence of forms give neither stage the dependency relations supplied by a parse.

The current input for Mova’s frames, pragmatics and world components is English trees. For Old Hungarian, parsing is an upstream prerequisite. The missing-model output stops before a dependency tree is available, since no heads or relations have been assigned. An Old Hungarian treebank and a measured parser would establish a syntactic baseline. Attachment scores assess heads and relations. Frame assignments and interpretations in context would require evidence at those levels.

Grammar claims and the implementation queue

Squid reads the manual as grammatical claims. A formalizable claim can describe a rule with its conditions and exceptions, give the complete membership of a closed list, or state a statistic with its scope. These claims enter a queue for implementation. A queue entry records a claim awaiting a place in the code. Its presence gives no evidence that any stage of analysis applies it.

For a tokenizer, relevant claims are those that determine the units to annotate from the chosen representation of the text. For a tagger, relevant claims distinguish categories and features and specify when context resolves a form’s ambiguity. For a UD treebank baseline, relevant claims guide consistent decisions about heads and relations in the reference annotation. Editorial conventions matter wherever they affect the input to those decisions.

A grammar claim can be more specific than the decision the annotation needs to record. Several historical spellings may receive the same analysis, while occurrences of the same written form may receive different analyses in different constructions. An implementation needs to preserve the conditions that distinguish the cases relevant to its output. The first claims needed for Old Hungarian are those that support tokenization, tagging and a UD treebank baseline.

How Mova handles Old Hungarian today

At level 1, tools/mova-parse uses tools/langseg to assign a language to every sentence and span. In Latin script, tools/langseg distinguishes English and French 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 receive other. Coverage of a further Latin-script language requires a lexicon and a Lang code. langseg latin-lexicon uses open UD training splits to build lexicons.

At level 2, tools/mova-parse uses the model for the language of each span. There is no level-2 model for ohu. When a span is assigned ohu, the # parse comment reports the missing model, and the token rows carry _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL and Parse=None in MISC. Mova provides no Old Hungarian tokenization, tagging, lemmatization or dependency parsing.

The en crate supplies Mova’s tree parser and tagger. After en xpos-fill, en train trains the parser and tagger on a language’s UD training split, and en parse-eval measures UAS and LAS on its development split. English and French have models, en.bin and fr.bin. What every language gets calls for the same baseline for each language. Mova has no Old Hungarian treebank and no measured baseline for ohu.

The frames, pragmatics and world components, prag and world, read English trees. They have no Old Hungarian parse to read. Squid turns grammatical points in the manual into claims and queues the formalizable ones. The Old Hungarian rules described in the manual remain unimplemented.

Sources for this chapter

This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/hu/ohu/29-mova-tools/