Developing a Part-of-speech Tagger for Diplomatically Edited Old Irish Text
Paper · 2024 · Adrian Doyle and John P. McCrae
Summary
An editor can preserve the spelling of an Old Irish manuscript and still need to decide where one word ends and another begins. The manuscript may run together units that a digital edition treats separately, and different editions can make different decisions about the same passage. Both choices matter for part-of-speech tagging, the task of assigning grammatical categories to words and other units of text. Doyle and McCrae ask how accurately a tagger can work with diplomatic Old Irish editions, which aim to preserve features of the manuscript. Such a tagger could reduce the work of preparing texts for tasks that depend on grammatical labels, including term recognition and coreference resolution.
The authors first explain why the existence of several annotated Old Irish collections does not translate into a large supply of usable training examples. The collections differ in spelling, in what they count as a token, and in the labels they assign. They therefore build their experiment around compatible diplomatic data, drawing on annotations from a development branch to reach 3,469 glosses and 21,749 tokens. Their custom tagger, MLP, is a multilayer perceptron, a neural classifier that combines evidence from several features before choosing a label. It sees a lower-cased version of the current token, patterns at its beginning and end, and nearby tokens, along with information about letter case and sentence position. A variant called MLPlus can replace a prediction when the token matches a training-derived list of certain rare categories.
The authors compare these taggers with off-the-shelf alternatives using repeated random splits of the glosses. Over 1,000 passes, MLP and MLPlus both reach an average token accuracy of 0.896 at the precision shown in the results table. The strongest off-the-shelf tagger, the NLTK perceptron, scores 0.868. The authors give MLPlus the overall lead, though the difference disappears at the reported precision. Its exception list produces a large change for punctuation and a marginal improvement for proper nouns. Interjections remain a weakness.
Removing groups of inputs reveals where the gains come from. Accuracy falls to 0.768 when the classifier sees only the lower-cased token, to 0.826 when the authors remove the dedicated beginning and ending features, and to 0.845 when they remove the surrounding tokens. Removing letter-case indicators or sentence-boundary indicators leaves accuracy at 0.896 as reported. The paper establishes a benchmark for the diplomatic gloss data and annotation conventions it tests. The results describe grammatical labeling after the text has already been divided into tokens. They give a starting point for evaluating diplomatic Old Irish taggers, with especially clear evidence for retaining both word-edge patterns and local context.
Deep dive: Developing a Part-of-speech Tagger for Diplomatically Edited Old Irish Text
Doyle and McCrae test how word forms, neighboring tokens, and a short exception list help tag Old Irish in editions close to the manuscript. · about 34 minutes to read
The problem and its context
Grammatical labels depend on what counts as a word
A part-of-speech tag marks the grammatical category assigned to a particular occurrence in a text. A tagger can use categories such as noun, verb, and determiner, and it can also be asked to label punctuation. The practical object it classifies is a token, a unit that has already been identified for processing. In the ordinary workflow the paper describes, a system first divides the text into these units and then labels them, although the authors also cite work that brings the two operations together. Dividing a text into units is itself a linguistic decision in the case of Old Irish. It is the problem of tokenization.
Spacing in the manuscript gives an incomplete guide to those decisions. Elements associated with a shared main stress and a close grammatical relationship can be written as a single stretch. An annotator who wants to distinguish the elements has to identify boundaries that the scribe did not consistently mark with spaces. For the tagger, the consequences reach beyond the difficult stretch itself. A classifier can use the neighboring tokens to decide what a form is doing, so changing the segmentation can also change the evidence available when it labels the units on either side.
This dependency matters because tagging usually takes place early in a processing pipeline. Later procedures can assume that grammatical categories are already available and use them to decide what to look for. The paper points to Irish term recognition as one setting where the input needs grammatical labels. In early Irish coreference work, such labels serve as preparation for determining which expressions refer to the same entity. The authors also recount Yocum's observation that the lack of a tagger for Old and Middle Irish restricted which authorship-attribution techniques could be applied to material from the Book of Leinster. The term recognition example comes from Adapting Term Recognition to an Under-Resourced Language.
The paper situates the problem in a historical language whose body of surviving material is finite. It places written Old Irish roughly between the 7th and 9th centuries and identifies Würzburg, Milan, and St. Gall as the main collections of glosses from manuscripts of the period. A gloss is an annotation accompanying another text, and many glosses are short, sometimes consisting of a single word. The paper gives about 15,422 Irish glosses across these collections. That figure describes the surviving material in those collections rather than the portion that a researcher can download and use as compatible tagging examples. There is also some prose, poetry, and other gloss material. The availability of each kind of material is a separate question from whether it has the required linguistic annotation.
Variation within the manuscript and across editions
A system trained to recognize written forms encounters several sources of variation before it has to resolve any ambiguity about grammatical category. Spelling can vary within a collection and even within the writing of an individual scribe. Latin appears alongside Irish in the glosses, and the paper notes that its spelling can reflect the practices of Irish manuscripts. A tool for this material needs some way to handle those Latin tokens. Otherwise, encountering Latin becomes an ordinary point of failure in a collection whose content frequently switches between languages.
The language's grammar creates further variation. Morphology concerns the structure of words and the changes in form associated with grammatical distinctions. The Old Irish verbal complex, for instance, includes dependent and independent forms and allows a verb to occur with preverbs, particles, and pronouns. The form available to a classifier depends partly on how an editor chooses to divide that complex. Even tokens assigned to the same verb and grammatical analysis can have visibly different shapes.
The authors illustrate this with forms from St. Gall, including as·beir, as·ṁbeir, and cenid·epersem. These examples appear in the paper's comparison of dependent and independent forms analyzed as 3sg.pres.ind., a label for the third-person singular present indicative. The common analysis gives a reader a reason to group the forms in spite of their differing surfaces. A system that only remembers the grammatical labels assigned to complete strings has to encounter enough of those strings individually. Under a segmentation that gives the components their own tokens, it faces a different inventory and different sequences.
The beginning of a form can be informative in its own right. The paper describes initial mutation, a grammatical change at the start of a word that can surface in the spelling. Its example is i ndegaid, where the preposition i conditions the spelling with an initial nasal before degaid. A search for an exact string may consequently treat the two written forms of the following word as unrelated entries. At the same time, some of the difference is systematic. This gives a reason to represent the beginning of a token explicitly, alongside the endings that can carry evidence about such features as nominal case or verbal inflection.
Abbreviation adds a different kind of variation. Some signs have conventional readings, such as ⁊ for ocus, the conjunction meaning “and,” and ɫ for Irish nó, meaning “or.” Another sign, ·i·, represents Latin id est and has the Irish counterpart ed ón. Other abbreviations leave more to the reader. A suspension stroke can signal omitted material without identifying that material on its own. A word written out in full and an abbreviation may therefore have a similar grammatical role while offering quite different visual evidence. The paper treats the capacity to label such forms as part of the challenge of working with diplomatic text.
The edition matters because it decides which of these written distinctions a classifier actually sees. An edition that closely represents a manuscript can preserve uncommon characters to convey features of the writing. Another edition may regularize spelling, expand abbreviations, add punctuation, repair a damaged passage, or change capitalization. Practices can also differ between editors who have similar aims. A tagger trained on an expanded form learns from the character sequence it is presented with. Whether that evidence applies to a retained abbreviation is an empirical question about the representation on which it was trained.
Why annotated collections are difficult to combine
The authors show that the incompatibility goes deeper than variant spelling. In their examples from St. Gall, ocondṡruthsin is represented as the same raw string in the compared sources, yet the annotated analyses differ in how they represent the material after oco. One has a token nd and the other has ond, while the tokens for the later ṡruth and sin agree. The example shows why matching passages by their raw text would be insufficient preparation for pooling their labels. The agreement at the beginning and end of the analysis does not yield a common representation throughout.
Other entries in the comparison show empty tokens and pieces of writing that recur across multiple tokens. For do·furgabtais, the paper displays analyses that break out parts of the form and also retain the complete form as one of the annotated units. One representation includes ∅, an explicitly empty element. Such units can describe grammatical information that an annotation scheme aims to make visible. From a tagging perspective, they also establish what the classifier is expected to label. Even a perfect match on the underlying manuscript location would leave open how to align the resulting sequences.
The label sets create a second obstacle. The Würzburg gloss resource and the diplomatic St. Gall and Würzburg treebanks use labels from Universal Dependencies. A treebank records grammatical analyses of texts, including relationships between tokens in a dependency analysis. The Parsed Old and Middle Irish Corpus, or POMIC, uses a Penn-style tag set adapted for historical material. The paper describes the other gloss repositories it examines as using their own lexical annotations. Two resources can both contain useful analyses of a passage and still expect different answers from a tagger applied to it. The fact that labels come from a shared scheme also leaves the question of token boundaries to resolve.
For Doyle and McCrae, choosing compatible resources is therefore part of defining the task. Pooling more material would require establishing correspondence between the units and reconciling what their labels mean. A scheme that creates empty tokens presents a different alignment problem from a scheme that simply uses another term for a category. Similarly, a diplomatic and a normalized version can differ in the written evidence even after their units and labels have been reconciled. The paper recognizes each repository's segmentation as meaningful in its own linguistic setting. Its concern is whether the existing annotations can serve as examples of a single classification task.
The work that led to the benchmark
The paper traces early Irish tagging from a text-specific lexicon to supervised methods based on annotated corpora. Lynn's prototype relied on a digitized glossary for the edition of Táin Bó Fraích. The procedure matched tokens in the text to a machine-readable inventory and attached grammatical information from the matching entries. This was feasible before annotated corpora became available. Its dependence on a glossary tailored to the chosen text also made vocabulary coverage an important open question. The paper reports that Lynn's demonstration came without a published accuracy evaluation.
The authors also discuss an unpublished seminar account from Bauer. His experiments used off-the-shelf taggers and material from the Annals of Ulster and St. Gall. Preverbs were among the difficult elements he identified. The account was relevant because it considered both a backoff strategy, which falls back to a simpler tagging decision when the preferred one is unavailable, and a system that learns to revise initial tags. The latter follows the approach introduced in Brill's rule-based tagging paper.
Darling and colleagues developed a tagger while preparing POMIC text for coreference research. They normalized some of the writing, changed some divisions where the corpus segmentation was unsuitable for their purposes, and simplified its tags. Their memory-based approach could draw on initial and final characters and on contextual information as well as the complete form. It showed a way to turn a small annotated corpus into a supervised tagger for early Irish. The editorial preparation and label choices defined the conditions under which it was evaluated. That work is described in Towards Coreference Resolution for Early Irish.
The methodological precedent was broader than the work specifically on early Irish. The paper traces the use of multilayer perceptrons for tagging to Schmid and cites subsequent applications in settings with limited resources or rich morphology. These precedents motivate a classifier that can combine signals from many examples without requiring that it previously encountered each whole token in the same context. For this experiment, the authors set out to learn from the characteristics of a diplomatic Old Irish representation. The question was which familiar approaches would work under those conditions and whether explicitly designed features would improve on the readily available alternatives.
The method, step by step
From an annotated gloss to a set of inputs
The system takes tokens that are already in order and uses the annotations attached to the training tokens as the expected answers. Its job during testing is to recover those answers from the text features. This setup lets the authors ask what information about an already identified unit is helpful for assigning a label. In practical terms, the input sequence tells the feature extractor which token is current and which tokens count as its immediate context. The grammatical labels for held-out tokens are used to score predictions.
The authors use diplomatic material from the Universal Dependencies resources because it corresponds to the editorial setting they want to study. Their data include the additional St. Gall annotations in incomplete.conllu in the treebank's development branch. The file contains part-of-speech and morphological annotations for material beyond the glosses on the main branch. The experiment uses the grammatical category as the target. For Latin tokens, the corpus uses X, the tag for other categories, and records Foreign=Yes as a morphological feature. Only the text-derived features described below enter the custom tagger, so the explicit foreignness annotation attached to a token is separate from the evidence available to make a prediction.
There are ten feature groups in the authors' description. They cover the current token, its original use of case, strings at either edge, its location relative to sentence boundaries, and its nearest neighbors. A feature group can contain more than one input value. This is particularly important at the edges of a token, where the authors keep strings at several lengths. The procedure is shared by MLP and MLPlus. Their outputs differ only when the added reassignment stage in MLPlus applies.
From a tokenized gloss to an MLPlus prediction
The steps in order.
The current token, its case, and its edges
The first input is the current token rendered in lower-case and buffered, meaning padded to give the token representation a common length. Lowercasing makes forms that differ only in case share a representation for this feature. The system separately records whether the original token is all lower-case, all upper-case, or starts with an upper-case letter. Those are Boolean features, so each indicates whether a condition holds. They preserve evidence about the use of capitals independently of the lower-case form.
The authors had reason to be uncertain about the value of case. Manuscript capitals can occur at the beginnings of significant sections, and the paper shows the opening of a poem in St. Gall whose initial word is written in majuscule letters. In a modern edition that applies modern capitalization, case might carry stronger evidence about certain grammatical categories. In the diplomatic data, case may tell the tagger something about the layout or the beginning of a passage. Its relationship to the part of speech is the question the authors subsequently test by dropping the case features together.
For the beginning of a token, the extractor keeps the initial letter and then longer strings beginning at that letter, through the first five letters. For the end, it does the equivalent in the other direction. These are surface substrings. The procedure does not have to determine whether one of them is a stem, a mutation, an inflection, or part of an abbreviation before presenting it to the classifier. Lowercasing and buffering are also applied to these substrings.
The paper's example, disruthaigedar, shows precisely what the procedure exposes. The strings taken at the start are d, di, dis, disr, and disru. The final edge supplies r, ar, dar, edar, and gedar. A feature for d can be shared across words that start that way even when they differ at the next letter. A feature for gedar restricts the evidence to a more specific set of endings. Providing multiple lengths allows the system to learn from short, widely shared patterns and longer, more selective ones within the same input design.
The use of both edges follows from the paper's account of Old Irish writing and grammar. The ending can carry evidence about such distinctions as case and subject inflection. The beginning can give a view of variation associated with initial mutation and the structure of verbal forms. The authors' implementation supplies the strings themselves. It learns which ones matter from their association with grammatical labels in the training examples, without requiring a manually specified list of morphologically meaningful segments.
Sentence position and surrounding forms
The next pair of features says whether a token is first or last in the sentence. These indicators give the classifier a way to account for boundaries independently of the token's identity. The remaining feature groups provide the preceding two and following two tokens, all in lower-case. For this part of the input, the feature extractor supplies neighboring forms. The paper does not describe feeding the predicted labels of those neighbors back into the custom tagger.
The distinction between position and neighborhood matters. A sentence-initial indicator can fire for any first token. A nearby form can offer more specific evidence about the grammatical environment. A determiner or adjective can occur alongside a noun, for example, and a preverb or conjunct particle commonly precedes a verb. The classifier receives actual spellings instead of being told that an adjacent unit is a preverb. It has to learn from labeled examples whether particular forms in particular relative positions help identify the current token's category. It can use following context because the tokenized sequence is available before it makes the prediction.
The authors feed the extracted values through scikit-learn's DictVectorizer. This turns the features into a numerical vector, making categorical values available through one-hot encoding. For a categorical feature, a particular value activates the entry associated with that value. A substring at the beginning of the current token and a neighboring token are evidence from different feature positions. Encoding the representation this way lets the classifier learn separately from those roles. Sharing also occurs through defined features, such as a common ending, even when different whole forms have distinct entries.
The encoding is followed by a multilayer perceptron. Its hidden layers combine the inputs before the output layer scores grammatical categories. A hidden layer is a set of intermediate units whose values are determined by the inputs to the layer and the weights learned during training. Because the hidden layers use nonlinear activation, the classifier can learn combinations of cues whose usefulness depends on which other cues accompany them. An ending and a following form, for example, can jointly support a category even if either feature is ambiguous on its own. This example explains the opportunity created by the architecture. The paper measures the value of groups of inputs, without identifying particular learned combinations of weights.
The training settings
The configurations listed for MLP and MLPlus both have 3 hidden layers, each with 64 neurons. A neuron is an individual computational unit in a layer. The hidden units use ReLU, an activation that keeps positive input values and sets negative values to zero. The output layer uses softmax, which turns the output scores into a distribution over grammatical categories. The tagger uses that output to select a category for the current token. The paper reports the settings chosen through experimentation with the configuration.
Training adjusts the weights so that the output is better aligned with the training labels. The chosen optimization procedure is Adam. The authors also use dropout at 20% in all hidden layers. During training, dropout temporarily disables a share of activations to discourage the classifier from depending too heavily on particular units. This is meant to reduce overfitting, where weight adjustments increasingly suit the training examples without improving performance on separate data.
The training schedule lists 50 epochs, with an early-stopping patience of 7 epochs. An epoch is a pass through the training material in the optimization procedure. The early-stopping decision uses validation loss, a measure of how poorly the predictions fit a separate set of labeled examples. Patience allows training to continue when that loss has stalled for a time. The authors restore the weights from the point at which validation loss was lowest. This procedure gives the validation data a role in selecting the final weights for a run, while the test glosses provide the subsequent accuracy measurement.
The exception list in MLPlus
The additional stage in MLPlus addresses categories that scarcely occur in the training material. The authors collect training tokens labeled as interjections, proper nouns, or punctuation. They keep eligible forms after excluding ones that also occur as homonyms of more common categories. This restriction addresses a predictable failure of an unconditional lookup. If the same spelling has a common reading and a rare reading, forcing the rare tag for every appearance of that spelling could undo a correct contextual prediction.
At prediction time, MLPlus first tags the text as MLP would. It then compares tokens against the learned list. For a match, it replaces the predicted tag with the stored one. A token without a matching list entry retains the network's prediction. The list thus makes an exact-form decision at the end of a pipeline whose main classifier accepts several kinds of evidence. The filter uses the training examples to decide which forms are eligible, so the coverage of a list is tied to which examples are available in the run. Its definition does not assign a new interjection or name by analogy with another form.
The two versions also create a focused comparison. Their reported features, hidden-layer settings, optimization, and stopping procedure agree. The added stage targets only the listed categories, and it compares forms after the initial predictions have been made. This makes the pairing useful for examining the consequences of a narrow intervention alongside the effects of input features.
The alternative tagging procedures
The simplest baseline learns the most likely label for each whole form it sees during training. This is the unigram tagger. A familiar form can be labeled from that stored evidence, but an unfamiliar form defeats a lookup of this kind. A form with several readings is also difficult because the decision uses the identity of the current token and ignores the surrounding words. This gives the experiment a baseline for what exact token identity alone can supply through a frequency-based tag assignment.
The backoff baseline adds tag history. An n-gram tagger of this kind conditions its decision on the token and a history of preceding tags. A more specific history can help distinguish contexts, but it makes an exact training match harder to find. The baseline begins with the reported best starting order.
n = 3
Here n is the order of the n-gram tagger. The equals sign identifies the starting order, and 3 specifies the trigram setting. When the current order cannot supply a candidate, the fall-back order is given by the following relationship.
n = x − 1
Here x is the order of the tagger that failed to supply a candidate. n is the order to try next, the minus sign means subtraction, and 1 is the amount by which the order decreases. The fallback process continues down to the unigram stage. It can rescue a decision when the complete tag history has no usable match, provided that a shorter history or the current form alone offers the needed evidence.
The Brill baseline starts by tagging with the unigram procedure and learns rules for changing those initial assignments. A rule can use evidence from the neighboring words or their tags. This gives it access to local conditions that a label-history lookup alone would miss. The hidden Markov tagger, abbreviated HMM, approaches the sequence differently. It scores possible tag sequences using probabilities and chooses the sequence with the highest score. As the authors describe the comparison, the HMM's decision concerns the complete sequence of assignments, whereas the n-gram baseline uses its context to propose a label at the current position.
The NLTK perceptron baseline also learns weights for features. Its feature-based decisions can use information from neighboring tokens, with examples such as a preceding tag or characters from a following word. The custom tagger differs both in how it combines inputs and in which inputs it supplies. In particular, the custom feature design emphasizes the two edges of an Old Irish form, and the multilayer architecture can combine feature evidence through nonlinear intermediate transformations. The comparison therefore asks whether the custom system as a whole works better. The paper's separate feature removals address some of the more specific questions about why.
Experiments and results
How the glosses were divided
The two diplomatic treebanks contained a combined total of ninety-eight glosses in their main collections at the time described. The St. Gall main branch accounted for sixty-four glosses. The additional material in its development branch made a substantially larger experiment possible. Including that material gave the authors 3,469 POS-tagged glosses comprising 21,749 tokens. The texts were principally glosses, with a small amount of poetry. POMIC was a possible source for a different tagging experiment, but pooling it with these data would have introduced a different segmentation and a different label inventory.
The authors use Monte Carlo cross-validation, which here means training and evaluating repeatedly on random partitions of the available material. Their reason concerns the arrangement of the St. Gall glosses. Vocabulary can reflect the subject matter of the corresponding chapter of Priscian. If consecutive portions of the corpus were treated as folds in their original order, a test fold could concentrate a thematic vocabulary that the training fold had rarely encountered. The authors chose repeated random selection of whole glosses, so their benchmark concerns performance under that sampling scheme.
Each of the 1,000 passes randomly reserves 5% of the glosses for testing. All the taggers have the same test glosses within a pass. For MLP and MLPlus, a further 10% is randomly drawn from the glosses remaining after the test selection to provide validation data. Thus the validation share refers to the remainder, while the test share refers to all glosses. The validation subset is used for the training decision about when to stop and which weights to retain. The reported test scores come from the held-out glosses.
Holding out glosses preserves their token sequences and prevents any individual test gloss from also serving as a training example on that pass. It still allows a test token to have the same spelling as a token in another gloss used for training. This is integral to reading the benchmark. It is a test on glosses unseen in that training run, with a mixture of familiar and unfamiliar token forms. A score from this design answers how well a tagger does on a random selection of additional glosses from the collections used in the experiment.
The reported measure is accuracy. For the overall score, an accurate prediction is one whose part-of-speech tag agrees with the label assigned to the test token, and the paper averages the accuracy scores across passes. It also reports average accuracy for individual gold categories. The category breakdown gives a different view of the same experiment. A tagger can do well on the common categories that account for much of the overall score and still fail to recognize examples from a rare one.
Overall performance
The experiment compares the unigram, n-gram backoff, Brill, HMM, and perceptron taggers drawn from NLTK with MLP and MLPlus. The authors considered UDPipe because the experiment draws on Universal Dependencies treebanks. They excluded it because there was no pretrained Old Irish tagger and because UDPipe combines tagging with other processing steps, including tokenization, making the tagging component hard to evaluate in the isolated setup they wanted. The resulting leaderboard covers the selected baselines under shared conditions.
Average test token accuracy on the diplomatic Old Irish gloss data
Both custom taggers lead the off-the-shelf baselines and share the highest displayed score.
The numbers
| System or setting | accuracy |
|---|---|
| Unigram | 0.698 |
| N-gram backoff | 0.708 |
| Brill | 0.726 |
| HMM | 0.783 |
| NLTK perceptron | 0.868 |
| MLP (this paper) | 0.896 |
| MLPlus | 0.896 |
The unigram's 0.698 average test accuracy establishes how far a system gets by remembering a preferred label for each form. Adding tag history and backoff leads to 0.708 on the same metric. The Brill tagger, which can use local information to revise unigram labels, reaches 0.726. The HMM reaches 0.783. The authors suggest that its improvement may reflect the usefulness of scoring tag distributions in a setting with substantial variation in the written forms. The experiment compares complete baselines, so it supplies evidence about their relative performance and leaves the explanation at the level of a plausible mechanism.
The NLTK perceptron is the strongest off-the-shelf alternative at 0.868 average test token accuracy. Its result shows that a general-purpose feature-based method already handles much of the task. The custom MLP reaches 0.896, as does MLPlus at the displayed precision. The difference between the perceptron and the custom systems includes the choice of input features and the way the classifier combines them. The comparison gives the size and direction of the overall ordering directly, while the feature ablations isolate particular changes within MLP.
The authors describe MLPlus as their strongest overall tagger and report that it leads in nine of the sixteen part-of-speech categories. The displayed overall scores do not distinguish MLP from MLPlus. Several of the per-category leads attributed to MLPlus are also shared with MLP, as their displayed values agree for the categories unaffected by reassignment. The authors explain that the categories changed by the list account for little of the test material, which is why those changes have such a small effect on the aggregate.
Where the systems differ
For verbs, the custom taggers reach 0.880 in average category accuracy, compared with 0.814 for the NLTK perceptron. Both custom taggers reach 0.862 for adjectives, where the perceptron reaches 0.694. For nouns, the scores are closer, at 0.906 for both custom taggers and 0.899 for the perceptron. These comparisons show how the aggregate lead can correspond to very different changes across groups of tokens.
The same table contains categories where another approach does better. The HMM gives the highest reported category accuracies for determiners and particles, at 0.928 and 0.840 respectively. The paired custom results for those categories are 0.918 and 0.814. The NLTK perceptron reaches 0.910 for auxiliaries, versus 0.896 for MLP and MLPlus. The best overall score therefore reflects the balance of decisions over the corpus. A particular grammatical distinction can favor another way of using the sequence or representing the input.
For X, the custom taggers reach 0.886, compared with 0.846 for the NLTK perceptron and 0.765 for the HMM. The result is useful in view of the recurring Latin material. In this dataset, identifying an occurrence annotated as Latin means recovering X. An X accuracy measures agreement on that target label. It does not measure how well a tagger distinguishes a Latin noun from a Latin verb or supplies a separate analysis of Latin grammar.
The rare categories show why corpus frequency matters to the reading of the results. The dataset has only seven tokens labeled punctuation, eighteen labeled interjection, and fifty-four labeled proper noun. MLP has a reported category accuracy of 0.000 on each of these categories. The list brings the MLPlus punctuation score to 1.000, a value also attained by several baselines. MLPlus reaches 0.001 for proper nouns and stays at 0.000 for interjections. Brill reaches 0.124 for proper nouns. For interjections, both Brill and the NLTK perceptron reach 0.678. These are category accuracies over the experiment's passes, and the very small number of underlying tokens is important context for all of them.
How the earlier evaluations relate
Darling and colleagues' earlier POMIC tagger achieved a global accuracy of 0.751 across seen and unseen words under 10-fold cross-validation. The authors explicitly rule out a direct comparison with their own results. POMIC furnished different text, processed under a different editorial procedure and using a different tag inventory. The split procedure also differed. The earlier figure therefore describes the performance of a tagger on its own task. The later figure establishes a benchmark for the diplomatic, Universal Dependencies-based task defined by Doyle and McCrae.
The unpublished Bauer experiments give additional context for the sensitivity of results to corpus choice. As the paper recounts them, a backoff tagger achieved up to 75% accuracy on text from the Annals of Ulster alone. With St. Gall material included, the best overall backoff accuracy was about 30%, and use of a Brill tagger gave an overall accuracy of 54%. Those are figures reported for that earlier work's data. They help explain the motivation for a comparison in which each tagger sees the same held-out glosses on a pass, and why the paper attaches its benchmark claim to a declared editorial and annotation setting.
What the ablations show
The evidence in word edges and neighboring tokens
An ablation removes an input or component so its contribution can be assessed against the complete system. The paper conducts its feature ablations on MLP. This narrows the question from whether one tagger beats another to what happens when the authors deprive the custom classifier of a particular kind of evidence. The comparisons also distinguish a representation that sees the whole token from one that presents parts of it explicitly.
MLP accuracy under feature ablation on the diplomatic Old Irish data
Explicit word edges and neighboring forms contribute to accuracy, while removing case or boundary flags leaves the displayed result unchanged.
The numbers
| System or setting | accuracy |
|---|---|
| Buffered lowercase token only | 0.768 |
| Without beginning and ending strings | 0.826 |
| Without preceding and following tokens | 0.845 |
| Without letter-case indicators | 0.896 |
| Without sentence-boundary indicators | 0.896 |
| Complete MLP feature set (this paper) | 0.896 |
With only the buffered lower-case token, the classifier reaches 0.768. It still has its multilayer architecture and the identity of the target form, so it can learn how individual forms correspond to labels. It has lost the dedicated edge substrings and the evidence about the context in which the form occurs. The full result of 0.896 shows how much the identification of grammatical categories in this experiment depends on supplying features beyond that representation of the token itself.
When the edge substrings are removed while other inputs remain, accuracy is 0.826. The complete token still contains the same characters as a written string. What is lost is the explicit representation of the initial and final patterns as features that can be shared across different forms. Consider the gedar example. The full form of one word has its own encoded identity, but a feature for that ending can be active for a second word with a different beginning. The ablation demonstrates the value of making that kind of sharing available. Since it removes the initial and final groups together, it does not establish how much of the benefit comes from either edge independently.
The paper also reports an experiment with different maximum lengths for those edge strings. Collecting through five letters at each edge performed best for the Old Irish material tested, while using fewer letters produced reported accuracy drops between 2% and 7%. These are the paper's reported drops for the shorter feature setting, not figures for particular grammatical categories. The authors relate the result to longer endings visible in deponent verb forms such as suidigidir, foilsigidir, and cruthaigidir. The illustrations make it easier to see why the final few letters alone might lose a recurring pattern. The comparison tests a representation choice on the corpus as a whole, so it cannot determine that those particular verbs caused the improvement.
Withholding the preceding and following forms lowers accuracy to 0.845. The tagger still sees the current token and its internal patterns, along with the remaining flags. The change shows that local neighbors give it information that the spelling of the target token alone does not supply under this feature design. Both sides of the window are removed together. The result cannot tell whether the preceding forms carry most of that value, whether following forms are equally useful, or whether particular decisions need evidence from both.
Case and position contribute little at the reported precision
Removing the three case indicators leaves average accuracy at 0.896. This fits the authors' expectation that manuscript capitalization mainly associated with layout or the starts of significant passages is a weak grammatical cue in this material. The result is tied to the case information the classifier was actually offered. For instance, the experiment does not estimate how the same indicator would behave in an edition that consistently capitalizes names. It shows that these indicators were dispensable for the displayed aggregate score on the diplomatic data.
Dropping the first-token and last-token indicators also leaves accuracy at 0.896. Their contribution is measured while the tagger still has access to the neighboring-form features. This makes the result a narrow finding about explicit boundary flags when the other evidence remains. It can coexist with a large contribution from the surrounding words. The two features convey different things: a flag describes a token's position at the edge of a sequence, while the neighbor features give the classifier specific forms that appeared nearby.
These comparisons report aggregate outcomes. Matched displayed accuracy does not establish that every token received the same prediction after a feature group was removed. Some changes could offset one another, and the displayed precision limits what can be said about small differences. Conversely, the clear drops for word edges and context show that each group has value alongside the other inputs. They cannot be added up to estimate what would happen if both groups were removed together. The token-only experiment is a separate setting with a more extensive change to the inputs.
What the reassignment rule changes
The MLP and MLPlus comparison provides a separate controlled change in the tagging pipeline. It holds the specified feature design and architecture constant and gives one version permission to override certain predictions. The punctuation result demonstrates that a training-derived form list can correct an output in a sparse category when the relevant forms are recoverable through matching. The negligible change for proper nouns and absence of improvement for interjections show that eligibility alone gives no assurance of coverage. An instance must match a form admitted to the list from the training material.
The contrast is especially informative because the neural classifier performed well overall before the list was added. A training objective fitted across the corpus can produce strong average results even when examples of a rare tag are seldom recovered. A manual choice to reserve an exact-match mechanism for certain rare labels can address part of that problem with little effect on the headline score. The experiment shows this directly for punctuation. It leaves the balance between insufficient training examples, limited repetition of spellings, and the homonym filter unresolved for the weaker categories.
Limitations
Limits the authors identify
The paper's first stated constraint is the quantity of compatible text. The authors would have preferred broader genre coverage and material edited to different standards. The annotations available under compatible segmentation and tagging conventions confined the study to diplomatic gloss material and a small amount of poetry. The development annotations make a useful test possible within this scope. A result obtained there does not establish the same accuracy for independently annotated Old Irish prose or material whose editorial conventions change what the tagger sees.
The authors also identify a limit on historical comparisons. The evaluation by Darling and colleagues took place on text prepared from POMIC, after changes in normalization, division, and grammatical labeling. A numerical comparison with that study would combine differences in corpus, label inventory, and model input. The authors accordingly claim a benchmark for tagging diplomatic text of the kind used in their experiment. The published comparison with their own baselines is the evidence for the lead, since those systems share the task and test partitions.
Rare categories limit what can be concluded about them. The paper ties MLP's weak results for interjections, proper nouns, and punctuation to under-representation and finds that reassignment helps unevenly. Its note that a newer version of the St. Gall treebank includes more punctuation also matters. The reported punctuation accuracy concerns the annotation used in this experiment. A version containing more punctuation presents additional forms and contexts, so the result on the earlier data cannot establish how the list will perform under the newer representation.
The baseline selection sets a further explicit boundary. The authors explain why they could not readily include UDPipe as an isolated tagger and discuss a bidirectional long short-term memory tagger as a possible future comparison. The reported ranking describes the baselines they could train and test in their setup. It gives no direct empirical ranking between their taggers and a recurrent tagger trained for this diplomatic data.
Limits visible in the experimental design
The benchmark begins after tokenization. This is a meaningful restriction because segmentation was one of the main difficulties motivating the study. In the experiment, a neighbor is defined by the corpus annotation, and the correct tags are attached to its units. If a preceding process split a verbal complex differently, the features constructed from the following and preceding words could change, as could the very units a tagger should label. No accuracy in the paper measures the combined outcome of segmenting a fresh transcription and then assigning grammatical labels. The separable design makes the tagging comparison interpretable while leaving the full processing task open.
Repeated random partitions characterize a particular kind of generalization. Within one pass a held-out gloss is separate from the training glosses, but random sampling can place glosses connected with similar thematic material on both sides. Individual glosses may also appear in different roles across different passes. Repetition gives the authors a way to average over which available glosses are held out. It does not make the source of the glosses more varied. A test that reserved a manuscript, an editorial source, or a thematically contiguous portion would ask a different question. The paper does not report how the tagger would perform under those conditions.
Another distinction is between a new gloss and a new written form. Exact lookup, contextual cues, and shared character strings can all contribute to accuracy on a held-out gloss. Some of the test forms may already occur in training, while other forms may be new. The main table does not give a separate accuracy for unfamiliar forms. The general motivation for edge features is consistent with the idea that they can help in such cases, but the ablation measures their value across the mixed test material. It cannot quantify how much of the overall lead consists specifically of successful tagging of previously unseen forms.
The class breakdown deserves care for a similar reason. Many passes do not create additional independent examples of a rare category. The same few punctuation tokens can be evaluated on several passes under different partitions of the data. Accordingly, the displayed 1.000 for MLPlus describes its success on punctuation in this experiment, with seven source tokens. It says little by itself about coverage of other scribal signs, editorial marks, or ambiguous uses of a character. Similarly, the exact-match rule can only exploit evidence made available by the training list. An unseen spelling or a form filtered out because it has another reading is outside that mechanism's reach.
The results also measure category agreement in a representation with a deliberately limited treatment of Latin. X gives the classifier a way to recover the assigned category for Latin forms. Foreign=Yes exists in the data as a separate annotation. A well-predicted X label does not demonstrate fine-grained bilingual tagging or performance on Latin material annotated with ordinary grammatical categories. The treatment serves the specific mixed-language annotation in the experimental data.
Finally, the paper reports averaged test accuracies and displays them to limited precision. It does not provide a measure of variation around the overall means that would settle how reliably MLPlus edges ahead of MLP across splits. Both reach 0.896 in the table, so the observed evidence for the added mechanism rests on its per-category results and the authors' account of a small aggregate improvement. The comparison with the off-the-shelf perceptron also changes feature design and architecture together. The ablations support a role for the word-edge and contextual features within MLP. They do not identify the independent gain due to depth, or the result a shallower classifier would obtain if supplied with all the same inputs.
What came after
There are no documented follow-up studies to report here. The paper closes with proposed extensions to the benchmark, including ways to revise the initial predictions, broaden the exceptional treatment of punctuation, and change how the classifier represents context.
One proposal is to use a trained MLP or MLPlus to provide the preliminary tags for a Brill tagger. In the reported baseline, Brill starts from the unigram's assignments. Beginning with the stronger custom tagger would give the rule learner a different pattern of mistakes to work on. It might be able to learn transformations for errors that still recur after the neural predictions. The paper leaves open whether those mistakes are regular enough for such rules to help, and whether corrections would outweigh changes to initially correct predictions.
A second proposal is to extend the MLPlus list with common punctuation characters and representations that approximate manuscript punctuation. The authors' examples include :㇀ and ·~. This would broaden the rule's vocabulary beyond rare forms available in a particular training partition. Its success would need to be assessed on an edition that actually uses the characters or representations in question. The experiment's punctuation result supplies a reason to investigate such an extension under broader coverage.
The final direction is to test a bidirectional long short-term memory tagger. A recurrent tagger of this kind can build a representation from the sequence in both directions. It would offer a comparison with the explicitly chosen neighborhood in MLP, which presents nearby forms as fixed inputs. The authors draw their motivation from outcomes reported for other morphologically rich languages. For Old Irish, the open question is whether sequence learning can improve on the combination of local context and explicit strings at both edges of the token that worked in this benchmark.
Cite
Cite as Adrian Doyle and John P. McCrae. 2024. Developing a Part-of-speech Tagger for Diplomatically Edited Old Irish Text. Proceedings of the Third Workshop on Language Technologies for Historical and Ancient Languages (LT4HALA) @ LREC-COLING-2024.
@inproceedings{doyle2024developing,
title = {{Developing a Part-of-speech Tagger for Diplomatically Edited Old Irish Text}},
author = {Adrian Doyle and John P. McCrae},
booktitle = {Proceedings of the Third Workshop on Language Technologies for Historical and Ancient Languages (LT4HALA) @ LREC-COLING-2024},
year = {2024},
url = {https://aclanthology.org/2024.lt4hala-1.2/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/doyle-2024-developing-part-speech-tagger-diplomatically/