Mova0.6 pre-release

Old Swedish: the Three Crowns of Sweden, gold on blue 27. Old Swedish in Mova

The edition code for Old Swedish is sv-x-old. Mova has neither a level-two model nor an annotated Old Swedish treebank. The multilingual parser can report a missing model and return unannotated token rows. The grammar manual supplies Squid with claims that can guide work on language identification, tokenization, tagging and dependency annotation.

The sv-x-old package and language identification

The edition code identifies the language of the package. In multilingual parsing, automatic language identification is a separate operation. At level one, tools/langseg assigns a language to each sentence and span. At level two, the parser selects a model for each span according to that assignment. In a sentence with material from several languages, model selection therefore takes place at span level.

For Latin script, the current language identifier distinguishes English and French using its Latin table, a lexicon for each language and a character 4-gram model. Old Swedish has no dedicated Latin-script entry in that coverage. A passage in Latin-script Old Swedish has no automatic Old Swedish identification on the strength of its script alone. Scripts outside the identifier's supported coverage receive other, which is also the outcome for runes. A Latin-letter transcription of runic text falls under the Latin-script coverage.

Adding a Latin-script language to the identifier requires a lexicon and a Lang code. The langseg latin-lexicon command builds lexicons from open Universal Dependencies (UD) training splits. This work concerns the language label for the span. Producing lemmas, tags and dependency trees requires a model at level two.

Level-two model availability and unannotated parser output

tools/mova-parse looks for a model for the language assigned to a span. When the model is absent, the parser reports that language in the # parse comment and returns the following values for the affected token rows.

FieldValueAnnotation normally carried by the field
LEMMA_Lemma
UPOS_Universal part of speech
XPOS_Language-specific part of speech
FEATS_Morphological features
HEAD_Syntactic head
DEPREL_Dependency relation to the head
MISCParse=NoneMissing-parse status

This is the output for tokens associated with sv-x-old, since that language has no level-two model. Parse=None records the missing parse for the token. The underscore in FEATS supplies no evidence about the token's inflection, and the underscores in HEAD and DEPREL leave its syntactic attachment unspecified. The presence of a token row supplies no evidence that Mova has applied Old Swedish rules for dividing written forms into tokens.

Consider the following clause (constructed).

Formhanserfisk
Glosshe.NOMsee.PRS.3SGfish.ACC.SG

‘He sees a fish.’

The gloss gives the intended analysis of the constructed clause. If rows for these forms are returned with the language sv-x-old, those rows carry the missing-parse values above. For example, the intended accusative analysis of fisk has no corresponding feature value in that output.

Treebank availability and the status of UAS and LAS measurements

Mova holds no annotated Old Swedish treebank. The package specification, What every language gets, calls for the same baseline used for other languages. In that workflow, en xpos-fill precedes en train, which trains a tagger and dependency parser on the language's UD training split. en parse-eval measures dependency attachment on the development split.

MeasureWhat counts as correct
UAS, unlabeled attachment scoreThe predicted head matches the reference head.
LAS, labeled attachment scoreBoth the predicted head and the dependency relation match the reference annotation.

For an evaluated token, suppose the parser attaches it to the reference head but assigns obl where the reference relation is obj. That token counts as correct for UAS and incorrect for LAS. Both measures require reference annotations for comparison. Mova has no measured UAS or LAS baseline for Old Swedish. Parse=None is a status value, so its occurrence cannot be counted as an attachment error to derive a score.

A train-to-development baseline needs Old Swedish text with UD annotations in both splits. A collection of transcriptions can supply text for annotation. The annotated development split supplies the reference heads and relations against which to evaluate predictions.

Frames, pragmatics and their input requirements

Mova's frame, pragmatics and world processing uses English trees. In the current setup, unannotated Old Swedish rows provide no tree for these components to read. A language label and a sequence of word forms leave the grammatical relationships required for tree-based analysis unspecified.

In the constructed clause above, a tree could represent ser as the predicate, han as its subject and fisk as its object. These are relationships among particular tokens. They would be carried by the dependency attachments and their labels. With HEAD and DEPREL empty, the returned rows supply none of those relationships.

An Old Swedish parse is a prerequisite for using Old Swedish trees as input. The existing English-tree processing establishes the current input coverage. A future Old Swedish attachment score would measure the quality of syntactic attachment on the development split. Frame and pragmatic analyses would require their own evidence.

Squid claims and priorities for a tokenizer, tagger and treebank baseline

Squid reads the manual and turns each grammatical point into a claim. Formalizable claims, including rules, closed lists and statistics, enter the queue for implementation. A claim in that queue has no effect on the current output. The first priorities for Old Swedish are the decisions needed to divide and annotate text consistently and to evaluate a dependency parser.

PriorityDecisions needed for a baseline
TokenizationSpecify sentence and token boundaries for the chosen transcriptions. Define how punctuation, written abbreviations, and forms written together or apart affect those boundaries. State how to preserve the relationship between an edited token and the written form when the transcription expands or separates it.
Tagging and lemmatizationSet conventions for choosing lemmas across spelling variants and for assigning UPOS, XPOS and FEATS. Identify the contexts in which an inflection or construction supports a particular analysis. Document how to handle cases where the available evidence leaves an analysis uncertain.
UD annotationSet head and relation conventions for the constructions in the sample. Apply the same conventions to the training and development splits. The development annotation must give a reference head and relation for each token evaluated for attachment.

The three priorities meet in the annotation of forms whose written boundaries, morphology and syntactic roles are separate decisions. For example, a convention for a noun with a suffixed article must specify the token boundary and the representation of definiteness. The noun's dependency relation then depends on its role in the clause. A rule useful for tagging gives the conditions under which an ending identifies a feature value, the forms for which that inference is ambiguous, and any exceptions. A treebank convention specifies how the resulting analysis is recorded on a token in context.

The baseline also needs a consistent choice of what text is presented to the tokenizer. A transcription that expands an abbreviation or changes spacing may present different boundaries from a transcription that follows the manuscript more closely. Recording the transcription convention allows the same tokenization and annotation decisions to be applied across both splits. A lexicon for language identification addresses the separate need to assign an Old Swedish span to sv-x-old before model selection.

How Mova handles Old Swedish today

At level one, tools/mova-parse uses tools/langseg to assign a language to every sentence and span. The identifier covers English and French in Latin script, Hebrew-script varieties, and Hebrew or Aramaic in scholarly transliteration. Other scripts receive other. Identification of a language without its own parser model is limited to the script or lexicon coverage of tools/langseg. A further Latin-script language requires a lexicon and a Lang code. langseg latin-lexicon uses open UD training splits.

At level two, tools/mova-parse uses the model for each span's assigned language. There is no model for sv-x-old. The missing model is reported in the # parse comment. Its tokens receive _ in LEMMA, UPOS, XPOS, FEATS, HEAD and DEPREL and Parse=None in MISC. Mova has no Old Swedish tokenization, tagging, lemmatization or parsing in this setup.

Mova's own parser is the en crate. Models exist for English (en.bin) and French (fr.bin). What every language gets calls for the same baseline for each language. en train trains the parser and tagger on the UD training split after en xpos-fill, and en parse-eval measures UAS and LAS on the development split. Mova holds no Old Swedish treebank and has measured no Old Swedish baseline.

Mova's frames, pragmatics and world components, including prag and world, read English trees. With Old Swedish unparsed, they have no Old Swedish tree to read. Squid derives claims from the manual and queues the formalizable ones. None of this chapter's rules is implemented. The first priorities are the points needed for a tokenizer, a tagger and a UD treebank baseline.

Sources for this chapter

This page in Markdown https://md.mova.elamur.ai/free/en/docs/languages/sv/sv-x-old/27-mova-tools/