A Gradient Boosting-Seq2Seq System for Latin POS Tagging and Lemmatization
Paper · 2020 · Giuseppe G. A. Celano
Summary
A reader looking up an inflected Latin word needs to know which dictionary entry to look under. Its spelling provides clues, but its role in the sentence can matter too. Giuseppe G. A. Celano’s EvaLatin entry divides this problem into part-of-speech tagging, which assigns a broad grammatical category to each token, and lemmatization, which assigns the conventional dictionary form, or lemma. The tagger reads a short span around each word. The lemmatizer then uses the tagger’s decision to help turn the word’s spelling into its lemma.
The tagger uses LightGBM, which builds a classifier by adding decision trees in stages. For each token, it receives precomputed word embeddings, numerical representations of words, and short spelling endings from the target and its neighbors. Literary texts sourced from Patrologia Latina, Biblioteca Digitale di Testi Tardo Antichi, and the Perseus Digital Library provided the training data for the embeddings. Preparing those texts included converting v to u to match the spelling convention in the evaluation data. The lemmatizer uses a character-level sequence-to-sequence system in Keras. It encodes the written token together with its predicted part of speech, then generates the lemma as a sequence of characters.
On the official Classical Latin test, the entry reached 95.52% accuracy for tagging and 94.6% for lemmatization, scores the paper places in the range of contemporary Latin tools. The corresponding tagging and lemmatization scores were 88.54% and 81.69% on the cross-genre test, and 83.96% and 83.92% on the cross-time test. The harder conditions also changed the ordering of the tasks. Tagging delivered its lowest accuracy in the cross-time condition, while lemmatization delivered its lowest accuracy in the cross-genre condition.
Celano also compared the tagger with Marmot and Lapos on a separate test split drawn from the released training works. LightGBM led that comparison at 96.2% and took >3h to train. Both alternatives trained in seconds and used no precomputed embeddings. The resulting evidence covers a practical tradeoff as well as a pipeline design. The Classical Latin scores show what the complete entry achieved under EvaLatin’s closed rules, while the comparisons leave open how much of that performance came from the contextual window, the spelling endings, the corpus used for the embeddings, or the grammatical tag supplied to the lemmatizer.
Deep dive: A Gradient Boosting-Seq2Seq System for Latin POS Tagging and Lemmatization
How LightGBM and a character sequence-to-sequence system tag and lemmatize Latin, and how their accuracy changes across EvaLatin test sets. · about 32 minutes to read
The problem and its context
From the written word to a grammatical label and a dictionary entry
EvaLatin evaluated how consistently a system could supply grammatical and lexical information for a text. Its input was already divided into sentences and tokens. A token is an occurrence in the text, so a recurrent spelling can appear as several examples with different surrounding words. For each occurrence, the system had to supply a coarse grammatical category and a lemma. A word form is the particular spelling encountered in the sentence, while the lemma represents a family of forms associated through morphology. That family is useful for lookup because a dictionary can organize entries around a conventional headword even when a passage uses another member of the family.
The grammatical decision and the lexical decision are related. A spelling that can serve different grammatical functions gives the lemmatizer several possible interpretations. A tag can narrow those possibilities. The reverse issue also occurs in the annotation itself. A decision about which grammatical category a use belongs to can change the appropriate headword under the annotation convention. Predicting a lemma therefore involves learning how the dataset organizes words as well as learning what changes to make to their spelling.
The paper illustrates the grammatical difficulty with a substantivized adjective, an adjective used in the place of a noun. An annotation scheme has to decide whether such a token keeps its adjective label or is treated as a noun in that use. The paper describes disagreement among Latin resources over that decision and notes that it can also affect the lemma. The issue is especially important when examples are pooled across collections. If comparable cases received different labels during annotation, the combined data can present similar evidence alongside incompatible targets.
Another example is ubi, meaning “where,” in a use without an antecedent. The paper asks whether it should be classified as a relative adverb or as a subordinating conjunction. The spelling is already known, and the annotation question remains. The choice concerns the grammatical analysis assigned to that occurrence. The example explains why even a broad inventory of categories needs guidance for specific constructions. It also distinguishes a failure to recognize a written form from a disagreement about what category the recognized form should receive.
Lemma conventions raise a parallel issue. The paper mentions the choice of whether to group an adverb under its related adjective or to give the adverb its own lemma. A dictionary can adopt either policy, and the paper notes that even a dictionary can apply its conventions unevenly. An exact evaluation must still compare the predicted string with an expected one. A system can consequently make an understandable lexical choice and lose credit when the benchmark follows a different convention. The task’s reference labels define what counts as a successful output in that evaluation.
What the benchmark supplied
The trial used labels from Universal Dependencies, a framework intended to support the analysis of many languages. Its categories give annotators a common vocabulary for describing grammar. Celano points out that the Latin treebanks discussed in the paper sometimes apply those shared categories differently. The paper also describes inconsistencies within individual collections. Broad definitions help the categories travel across languages, while decisions about constructions such as ubi still call for language-specific guidance. Celano mentions more detailed instructions and targeted word lists as ways of addressing such cases.
The EvaLatin release gave each token a part-of-speech label and a lemma. Though the format can carry additional grammatical information, this task required coarse categories and no separate inventory of inflectional features. A system thus had to recognize, for instance, which broad class an occurrence belonged to, with that category available for use in lemmatization. A correct part of speech by itself leaves open finer questions such as precisely which inflection the writer used. The competition evaluated the labels it requested, so its tagging results apply to the coarser decision.
The organizers also made explicit choices about tokenization, the division of text into units to be analyzed. They removed punctuation marks and kept the enclitic que attached. Here an enclitic is a grammatical element written together with a host word. The paper glosses que as “and” and notes that Latin treebanks commonly separate it for syntactic analysis. With the convention EvaLatin chose, each input token was already settled before tagging or lemmatization began. Celano notes that this makes whitespace splitting sufficient for recovering the token boundaries under the task’s simplified conditions.
That simplification matters because the last letters of a word are an unreliable guide to whether it contains the enclitic. The paper gives quisque, quicumque, and aeque as words whose final letters include que without an attached conjunction. It also gives quique, quaeque, and quodque as harder cases. The same written sequences can receive pronominal readings or be analyzed as a relative pronoun followed by the enclitic. The paper says that their syntactic contexts are needed to distinguish the readings. EvaLatin fixes the segmentation convention in advance, so progress on its tagging and lemmatization tasks can be measured without solving that ambiguity as a boundary-detection problem.
Sentence boundaries remained important even with punctuation removed. The release told the system where sentences began and ended, and Celano used those divisions to decide which words count as neighbors. The tagger therefore received the benefit of a supplied sentence structure while doing its own grammatical classification. For an application starting from a different edition, sentence splitting and tokenization would determine which items arrive at the tagger and which contextual positions they occupy. Those choices can change the prediction problem before either component makes a decision.
Resource rules and earlier approaches
EvaLatin offered a closed and an open track. In the closed track, participants could use external unannotated material, including text from which to learn embeddings. External resources carrying linguistic labels, such as lexica or treebanks, were excluded. The open track allowed external resources generally, and entrants could choose to compete only under the closed rules. Celano chose the closed track and connects that choice to the inconsistent application of annotation conventions across Latin resources.
The distinction affects the role of the literary collections used in the paper. They give the system word spellings and patterns of occurrence across texts. The supervised examples that say which category or lemma to assign come from the task release. The arrangement lets the tagger draw on text well beyond that release while keeping its target labels tied to the benchmark’s conventions. In this setup, “closed” describes which kinds of external evidence were admissible. It still leaves room for substantial preparation of outside text.
For word representation, the paper discusses the already available FastText vectors based on Common Crawl and Wikipedia together with the alternative of training vectors on literary sources chosen for the task. It contrasts FastText’s use of character fragments with approaches such as Word2vec. A representation built from fragments can give a prefix, a sequence inside a word, or an ending a role in the vector. That feature appealed to Celano because the input consists of written Latin forms whose spelling contains grammatical information. The cited work on the approach is Enriching Word Vectors with Subword Information.
For tagging, Celano situates the entry alongside work on Latin tagging and lemmatization cited through Gleim and colleagues, and uses the existing Marmot and Lapos taggers in a local comparison. For the other stage, the paper borrows an approach familiar from machine translation. It treats the spelling in the passage and the spelling of the lemma as the input and output of a sequence conversion. This gives the lemmatizer a way to express the desired result as characters and allows the grammatical category to be supplied alongside the input spelling.
The shared task was designed to test more than performance on familiar kinds of Latin. Its training works already covered several authors and genres, and the official evaluation included tests across genre and time. That distinction matters for this architecture because it draws evidence from both regularities in spelling and short spans of neighboring text. Different material may offer different evidence at either level. The benchmark gives separate results under these conditions, while the paper’s internal evaluation supplies a test built from the same collection of works as the training split.
The method, step by step
How information moves through the system
The entry takes two supervised decisions in order. It first assigns a part of speech using the target token and nearby words in its sentence. It then submits the target spelling and the predicted label to a character transducer, a system that turns an input sequence into an output sequence. The second stage receives a compact grammatical decision derived from the surrounding text. The neighboring tokens themselves belong to the first stage’s input.
Consider the ambiguity illustrated by ubi. At tagging time, the spelling of ubi and its ending are fixed, while the adjoining words can differ from one occurrence to the next. The tagger gets information about those adjoining words in slots that preserve where they occur. After it selects a category, that choice is attached to the spelling for lemmatization. The example illustrates a route by which context can influence the lexical decision. The paper gives ubi as an annotation example and does not report a separate prediction for it.
There is a second kind of preparation behind that flow. The tagger’s numerical word representations are learned before supervised tagging, from text outside the labeled task data. At prediction time, a token is represented using that earlier learning and the immediately available signals from the sentence. The lemmatizer has a different input representation suited to generating text. Its use of characters means that a headword can be produced as a sequence of letters, with the part-of-speech label available to guide the conversion.
From prepared literary text to Latin tags and lemmas
The steps in order.
Keeping comparable material in the local splits
Celano divided each work in the released data into training, development, and test portions of 80%, 10%, and 10%. The portions serving the same purpose were then pooled across works. The local training split thus drew from every released work, as did the local development and test splits. This design keeps the mixture of works comparable while reserving separate portions for fitting, development checks, and testing. A test set made by withholding an entire work would ask a different question about transfer to material absent from fitting.
The paper says that tokens retained their order within sentences. That is essential to the feature construction because the representation assigns positions relative to a target. If order were lost, a following word could be confused with a preceding word, and the idea of a short contextual span would no longer refer to the original sentence. Celano also kept sentence order. The paper treats that larger ordering as irrelevant to the learning procedure, which works with features defined within sentences.
These work-derived splits served a different purpose from the official tests. The released works supplied the annotated examples for developing the entry. EvaLatin’s official test material supplied the final measures, reported separately for Classical Latin and for the cross-genre and cross-time conditions. This distinction is especially important for lemmatization. The paper reports a development score and a local test score before giving the official scores. Each number describes the system under the corresponding evaluation setup.
Preparing the unannotated literary material
Celano used material from Patrologia Latina, the Biblioteca Digitale di Testi Tardo Antichi, and the Perseus Digital Library to train the embeddings. The paper describes these collections as covering much of the available pre-medieval Latin literature and providing material from different periods and genres. The aim was to retain broad literary coverage within a corpus better matched to EvaLatin than the available Common Crawl and Wikipedia vectors. The benchmark used literary text with punctuation removed, so Celano sought similarly prepared text from digitized literary editions.
Getting that material into a suitable form involved editorial as well as technical decisions. The collections used EpiDoc, part of the TEI family of markup conventions. Their files contained the text of the works alongside information added by editors. An editorial note might discuss a passage, and a deletion element might identify text to be omitted. Simply reading all text inside the markup as though it were continuous prose could mix the editions’ apparatus with the words of the work. For an embedding procedure that learns from nearby words, deciding what counts as running text determines which contexts it sees.
The paper singles out the Perseus material as particularly difficult to extract. Some files included character references defined externally, which caused exceptions during XML parsing and required preprocessing. Celano used the Java SAXParser available in BaseX 9.3.1. The mention identifies how the input files were read, while the paper describes a complete account of extracting their running text as a separate undertaking. Its reported system starts embedding training after that extraction work.
Celano also converted v to u. In the task data, u represented both the vowel /u/ and the semivowel /w/. Different Latin editions may write those sounds differently, so the conversion makes the embedding corpus and benchmark use the same letter convention. A spelling mismatch here could affect more than an exact word match. It could also change the character fragments used to represent the word, including fragments inside or at the end of it. Celano retained original capitalization and says that the benefit of lowercasing was unverified.
This preparation plays a specific role under the closed-track rules. The collections supplied running text for learning the word representations. The annotated EvaLatin release supplied information about which part of speech and lemma an occurrence should receive. Even when a source edition already contained elaborate XML markup, the feature-learning step depended on extracting its text. The paper describes the literary corpora as an input to FastText, with the supervised tasks fitted on the benchmark annotations.
Turning word spellings into vectors
FastText uses an n-gram, a contiguous sequence of units, at the character level. A written word can contribute several overlapping sequences of characters. The paper describes composing a word representation by summing representations of such fragments. That construction gives shared pieces of spelling a way to contribute across words. An ending and a sequence in the middle of a word can both affect the representation, and they enter through learned numerical weights.
Celano used skip-gram training. In this setup, word occurrences supply evidence through the words around them. The training task uses a word to predict nearby words, which helps shape the numerical representations from the literary text. The chosen character fragments had a minimum length of 2 and a maximum length of 5. The vectors had 300 dimensions, and the learning rate was 0.03. A dimension is an entry in the vector, and the learning rate regulates how large the adjustments are during training.
The use of characters here serves a different purpose from their later use in the lemmatizer. FastText uses fragments to produce a numerical description that LightGBM can inspect when deciding a grammatical class. The lemmatizer works with a character sequence as something to read and then writes another character sequence as its answer. The first representation helps express similarities among word spellings and occurrences. The second preserves the order of the input characters and makes the output directly readable as a lemma.
The embeddings represent word forms before the tagger sees a particular test sentence. Information specific to that test occurrence comes from placing the target’s vector beside vectors for the words occupying its contextual slots. This is how two identical spellings can give LightGBM different inputs. The target portion of the representation may be the same, while the portions for its neighbors can vary. The paper’s proposal combines a representation estimated from broader literary usage with a fixed description of the current sentence fragment.
Building the classifier’s input
The feature window consists of the target token, the three tokens before it, and the three after it, as available within the same sentence. The paper describes two features for each of those positions. One is the precomputed word embedding. The other is the 2-character token ending, supplied as a separate categorical variable. A categorical variable identifies which ending occurs, allowing the classifier to use distinctions among endings as part of its decisions. LightGBM handles the vectorization of the ending categories.
A token near a sentence boundary has fewer real neighbors on one side. The feature representation reserves those positions anyway. When a position has no token, the embedding for it is filled with 0 and the ending entry is filled with an underscore. This keeps the meaning of the positions stable. The immediate predecessor is always represented in its own slot, and a sentence-initial token has the same number of feature slots as a token farther inside a sentence.
The endings give LightGBM direct access to an aspect of spelling that FastText represents in a distributed form. A learned embedding combines information from overlapping fragments. A dedicated ending feature tells the tagger exactly which short suffix occurs in a given position. The classifier can therefore use a concrete ending in the target or in a nearby word alongside the broader vector evidence. The paper evaluates this combined input, which leaves the separate contribution of the ending features as an open question.
Position also matters. The feature layout distinguishes a given word or ending directly before the target from an identical one directly after it. The resulting representation makes local patterns available to the classifier without requiring it to reconstruct token order from an unordered set. It also specifies the limit of that access. At this stage the available sentence evidence is whichever words and endings occupy the chosen window, plus information carried by the precomputed vectors.
Learning the part-of-speech decisions
LightGBM uses gradient boosting with decision trees. A tree learns decisions based on the values of its input features. Boosting adds trees in stages, with each stage adjusting the combined predictions towards a better fit to the training labels. In Celano’s application, the classes are the part-of-speech categories. The tagger’s objective was set to multiclass, so the supervised decision was among the available categories for the current token.
The reported boosting type was gbdt, with num leaves set to 50 and max depth set to -1. The leaf setting controls how many terminal outcomes a tree can have, and the depth setting leaves depth without a separate limit in the reported configuration. The learning rate was 0.03. Celano reports 47,946 for n estimators, the number of boosting estimators. That long sequence of estimators helps explain why the final tagger’s fitting cost figures prominently in the comparison with Marmot and Lapos.
The paper also specifies how LightGBM grouped values into bins and what restrictions it applied to splits. It used subsample for bin of 100,000 and max bin of 500. The split settings were min split gain of 0.0, min child weight of 0.001, and min child samples of 1. These settings affect which candidate divisions of the data a tree may make. Binning groups numerical values for the purpose of finding such divisions, while the child settings relate to the groups produced by a split.
The reported row and feature sampling settings were subsample of 1.0, subsample freq of 0, and colsample bytree of 1.0. Class weighting was set to None. The regularization values were reg alpha of 0 and reg lambda of 0.001. The random state was 1, and the feature-importance type was split, which counts uses in tree divisions. The settings describe the run selected after experimentation. The paper gives performance for the resulting configuration as a whole.
The output handed to the lemmatizer is the selected grammatical label. LightGBM therefore serves both as the answer to the tagging task and as a source of grammatical information for the next task. This shared role creates a distinction in how a tag error is measured. In tagging, the error is already an incorrect output. In lemmatization, the same error is an input condition whose consequence depends on how the lemmatizer uses the label and how informative the spelling remains.
Generating a headword from characters
The Keras sequence-to-sequence implementation uses an encoder and a decoder, each built with a long short-term memory layer, or LSTM. An LSTM is a recurrent layer whose internal state carries information as it reads or produces elements of a sequence. The encoder reads the input representation. The decoder uses the encoder’s internal states to generate the output sequence. In this application, the input gives the word form and its grammatical label, and the target sequence is the spelling of the lemma.
The sequential view is useful because the output can keep some of the input’s characters, change others, or have a different length. The target is expressed through the output characters under the benchmark’s annotation convention. Learning examples show the system which changes belong with a given combination of spelling and grammatical category. The paper describes the task as akin to translating one written form into another, with the intended answer a member of the same morphological family.
The part-of-speech label is meant to help when the same visible word form is open to more than one morphological interpretation. On the test sets, the paper used labels predicted by LightGBM. This makes the test result a measurement of the actual cascade, with the uncertainties of the first-stage decision present in its input. The paper reports a batch size of 64, training for 10 epochs, and 2500 latent dimensions. A batch groups training examples for an update, an epoch is a pass through the training examples, and the latent dimensions describe the size of the internal representation used in the sequence conversion.
Handling characters and tokens with fixed labels
Some Ancient Greek tokens in the shared-task test material contained characters that had been absent from training. Celano reports replacing the unfamiliar characters with Greek characters that the trained system already supported. The prescribed lemma for any Greek token was the fixed sequence uox graeca. Under that convention, preserving the token’s exact Greek spelling inside the lemmatizer was unnecessary for producing the expected answer. The paper also reports checking that the tagger assigned the required X category to Greek words and lacunae.
A lacuna signals missing text. The procedure described in the paper recognized a lacuna token by the presence of multiple periods and used a rule to assign it the placeholder uox lacunosa. This is a separate path to the answer for that case. Its correctness follows from the placeholder convention and the rule’s recognition of the token. The predictive lemmatizer handled ordinary conversion from a word form and its tag, while this known category could be resolved directly.
Arabic numerals raised a different problem. The supplied training data had no examples of them, so Celano lacked evidence about the lemma strings expected for such tokens. The paper leaves the matter unresolved. The contrast among these cases shows how the target convention affects the handling of unfamiliar inputs. Greek tokens had an explicit shared target despite the character problem, and lacunae had a recognizable pattern and fixed target. The numeral case lacked a demonstrated output policy.
Celano made the trained system available in the evalatin2020 repository. The supervised input came from EvaLatin’s official release, and the textual basis for the embeddings came from the literary collections used in preparation. The method therefore depends on both the benchmark’s conventions for the expected strings and the choices made while preparing the external text.
Experiments and results
The released works and the evaluation conditions
The annotated release spans historical accounts, speeches, letters, and philosophical writing. Its historical material included Caesar’s Bellum Civile, with 6,389 tokens, and Bellum Gallicum, with 44,818 tokens. Tacitus’s Historiae contributed 51,420 tokens. These counts describe the released works before their division into local training, development, and test portions. The works contribute different amounts of material even though each was split according to the same proportions.
Cicero’s Philippica contributed 52,563 tokens and represented speeches. Plinius Secundus’s Epistulae, representing letters, supplied 50,827 tokens. The philosophical works from Seneca were De Beneficiis, with 45,456 tokens, and De Clementia, with 8,172 tokens. The paper places Caesar and Cicero in the Golden Age and the remaining authors in the Silver Age. The pool therefore includes variation in period as well as genre even before the official transfer conditions are considered.
The split design gives the local scores a particular interpretation. Since every work contributes to every local split, a local test example can come from the same work as examples used for fitting. The procedure still holds back test material, but the collection of works remains familiar. The official Classical Latin, cross-genre, and cross-time scores come from the shared-task tests and answer separate questions about the submitted system. The paper labels those conditions individually, so each score can be read with its own evaluation setting.
The metric is accuracy over the token predictions. A tagging success means that the assigned coarse part of speech agrees with the reference. A lemmatization success means that the predicted headword agrees with the expected lemma. A near match in spelling can still be a failed lemma prediction, just as a grammatically defensible alternative can miss the assigned category. Because these are separate target labels, their percentages describe separate outcomes even when both are measured on the same tokens.
The local comparison of taggers
On the author’s local test split, LightGBM achieved 96.2% tagging accuracy. Marmot scored 95.18%, and Lapos scored 95.22% with the default hyper-parameters used in the comparison. LightGBM also reached 96.39% on the local development split. The comparison below concerns the local test split only. All three test scores assess the same task and can therefore be compared directly within this experiment.
Part-of-speech tagging accuracy on the local EvaLatin test split
LightGBM has the highest test accuracy in the comparison.
The numbers
| System or setting | accuracy % |
|---|---|
| Marmot | 95.18 |
| Lapos | 95.22 |
| LightGBM (this paper) | 96.2 |
The training times tell a different part of the story. The paper lists LightGBM at >3h, Marmot at 31.9s, and Lapos at 18.78s. It also notes that Marmot and Lapos did not require the precomputed embeddings. The entries in the timing comparison are described as training times. The embedding corpus preparation and vector training are additional steps in the LightGBM procedure, and the paper does not give a combined figure for those steps and classifier fitting.
Celano emphasizes that the selected LightGBM configuration used 47,946 estimators. After searching for settings, the training cost discouraged a further fit on the combined training and development portions. The local results thus record the performance obtained with the training procedure actually used. The paper speculates that a larger annotated training set could have improved the official result. That possibility is distinct from a measured gain, since the expanded fit was not performed.
The tagger comparison is informative for a reader choosing between the tested recipes. The result joins a local accuracy ordering to a substantial difference in fitting time and to a difference in what each system needs before training. LightGBM was configured after experimentation and used features derived from a specially prepared literary corpus. The alternative taggers were run with their defaults. The experiment records the performance of those specific configurations and supplies a practical cost comparison for them.
Part-of-speech tagging on the official tests
The official Classical Latin tagging accuracy was 95.52%. Celano describes the Classical Latin figures as comparable to the performance of contemporary taggers discussed in the paper. The author’s local development and test scores provide points of comparison for the entry itself. The official number assesses its predictions in the competition’s Classical Latin condition, while the local numbers assess newly held-out portions of the works that contributed training material.
In the official cross-genre condition, accuracy was 88.54%. It was 83.96% in the cross-time condition. These are results for the same submitted tagging method under changes in the material on which it was tested. The paper anticipated lower performance on the transfer tests. The measured ordering was Classical Latin first, cross-genre next, and cross-time last.
LightGBM part-of-speech accuracy across official EvaLatin tests
The Classical Latin condition yields the highest accuracy, and the cross-time condition yields the lowest.
The numbers
| System or setting | accuracy % |
|---|---|
| Classical Latin (this paper) | 95.52 |
| Cross-genre | 88.54 |
| Cross-time | 83.96 |
The transfer conditions show that the classifier’s use of embeddings learned across periods and genres coexists with lower accuracy on the official transfer tests. The broad literary corpus was intended to give the classifier useful representation across such material. The official scores measure the submitted entry, with those embeddings already included. A separate set of official scores using a narrower corpus would be needed to see how much the chosen coverage changed transfer performance.
The gap in task conditions is also relevant to the sentence features. LightGBM was trained to associate specific kinds of local evidence with the reference labels in the annotated works. As evaluation material changes, that association can become less reliable for several reasons, including changes in the forms or patterns available to the system. The aggregate numbers establish that reliability differed across the official sets. They leave the source of the individual errors unspecified.
Lemmatization on the local and official tests
For lemmatization, the local development accuracy was 99.82% and the local test accuracy was 97.63%. The paper records that test inputs used predicted tags. These results thus have to be interpreted in light of both the split and the grammatical labels available to the lemmatizer. Celano suggests that overfitting contributed to the decline from development to testing and that errors in the predicted tags contributed as well.
On the official Classical Latin test, the lemmatizer reached 94.6%. The paper reports 95.9% for the top-ranked lemmatizer in that condition and uses that result to place the entry among the contemporary alternatives. This comparison concerns Classical Latin lemmatization on the shared task. The local comparison with Marmot and Lapos concerns part-of-speech tagging and supplies no corresponding lemma scores for those systems.
Seq2Seq lemmatization accuracy across official EvaLatin tests
The Classical Latin condition yields the highest accuracy, and the cross-genre condition yields the lowest.
The numbers
| System or setting | accuracy % |
|---|---|
| Classical Latin (this paper) | 94.6 |
| Cross-genre | 81.69 |
| Cross-time | 83.92 |
The two transfer conditions reverse their order between the tasks. The tagger scored higher across genre than across time, while the lemmatizer scored higher across time than across genre. This matters because the lemmatizer consumes the tagger’s output. The accuracy of that output is one aggregate description of its input quality, and the lemma decision also depends on the token’s spelling and on which particular errors occur. A tag mistake may be consequential for a spelling with competing analyses and harmless for a spelling that the decoder can resolve from other evidence. The scores establish the reversal while leaving its explanation open.
The official lemma results also include the consequences of the entry’s handling of special cases, such as assigning the fixed lacuna placeholder by rule. The paper reports these measures as shared-task scores for lemmatization. They describe the success of the procedure that produced the submissions, including its response to those evaluation conventions. No separate accuracy for ordinary Latin forms or for the placeholder categories is reported.
What the ablations show
The paper reports no formal component ablations. It offers preliminary comparisons of embedding sources and settings, a comparison of complete taggers, and an analysis of changes in accuracy from local evaluation to the official tests. These comparisons address distinct questions. The embedding trials informed the choice of input representation. The tagger comparison measured complete configurations on a common test split. The split comparisons revealed how accuracy varied when the material or evaluation condition changed.
Preliminary comparisons of embedding sources
Celano reports that the embeddings trained on the chosen literary collections did better in preliminary tests than the available FastText vectors for Latin. The comparison supports using the task-specific vectors in the entry as developed. The paper gives several reasons for expecting an advantage, including the literary character of the source collections, the preparation of punctuation-free text, and normalization of v to u. Those choices describe the representation that was selected. The preliminary comparison supplies neither separate scores for each choice nor a causal estimate of what each contributed.
The author also tried embeddings based on PHI Latin texts and reports that they performed worse than those built from the selected collections. Celano suggests that the presence of fragmentary works and broken words in the PHI material might explain the result. The proposed mechanism fits the training procedure. A broken word changes the character sequences that enter its representation and may also occur amid disrupted contexts. The experiment compares corpus choices in preliminary testing, leaving the specific effect of fragmentation unmeasured.
The paper mentions additional experiments with hyper-parameters and texts. Its final settings allow the reader to see what the chosen procedure used. They leave open how stable performance was across nearby settings, which alternative settings were considered in each comparison, and how much the final estimator count improved tagging. Similarly, keeping capitalization is documented as a choice whose effect Celano had not verified. These details clarify which outcomes were observed and which aspects of the method were selected without a reported, isolated estimate.
Comparing whole taggers
The Marmot and Lapos results give the clearest quantitative comparison of alternative tagging procedures. With the data and metric held common on the local test split, the LightGBM entry achieved the highest accuracy and required much longer training. This measures a tradeoff among complete configurations. Several aspects change at once, including the classifier, the input representation, and the extent to which the reported settings were tuned.
Accordingly, the comparison leaves the independent effect of the short endings unresolved. A run with the embeddings retained and the ending columns removed would isolate that input change more closely. The experiment also leaves open how much neighboring tokens helped. The window includes the target itself, so a comparison with an otherwise matched target-only input would be needed to measure the value of the neighboring positions. The paper’s direct comparison instead answers which of the tested taggers achieved the best local score with the inputs and settings each received.
Another uncertainty concerns the placement of the window boundaries. The method creates a distinct signal for missing neighbors and can obtain evidence from both preceding and following tokens. The local comparison provides the outcome for that entire feature design. It does not show whether particular distances, one direction of context, or boundary positions carried more useful information. The specified design makes those questions possible to formulate, while the reported results remain at the level of the final tagger.
Examining the tag-to-lemma connection
The main claim behind the cascade is that a grammatical category can help the decoder choose among different analyses of a word form. The paper gives that claim a concrete implementation by placing a predicted part of speech beside the spelling. The reported tests show the accuracy of the resulting predictions. They leave the size of the benefit from adding the tag unmeasured.
Celano offers overfitting and mistakes in the supplied part-of-speech labels as plausible explanations for the decrease from development lemmatization accuracy to the test results. These explanations concern different stages of the system. Overfitting concerns how closely the learned conversion follows its training evidence, while tag errors concern the reliability of the grammatical input at prediction time. The reported aggregate scores cannot apportion the decline between them. The evaluation conditions differ, and the paper supplies no matched test where only the source of the grammatical labels varies.
A comparison between predicted and reference tags on the same test tokens would address sensitivity to first-stage errors. A matched comparison using the spelling alone would address the value of including a grammatical label at all. The paper gives results for the operational choice, where the tag is available as a prediction. Its strongest direct evidence for that stage is therefore the measured end-to-end accuracy under the shared-task conditions.
The reversal between cross-genre and cross-time scores adds an observation about the pipeline’s behavior. The lower aggregate tagging accuracy in one transfer condition did not produce the lower aggregate lemma accuracy there. Establishing why would require connecting particular tagging outcomes to particular lemma outcomes within each condition. Without that connection, the result tells us that the difficulty rankings of the two tasks differ and that an overall tag accuracy alone is insufficient to predict their ordering.
Limitations
Limits identified by Celano
Celano treats annotation consistency as a practical constraint. The paper describes disagreements over substantivized adjectives, uses of ubi, and the relation between adverbs and adjective lemmas. The shared label inventory leaves room for different applications, and those differences can occur within a single treebank as well as across resources. The closed-track entry avoids adding outside labeled collections with potentially different policies, while the supervised data still reflect the benchmark’s own choices. Its scores measure agreement with those choices.
The paper also identifies a cost in the tagger’s training procedure. LightGBM required a large collection of estimators and took much longer to fit than the default Marmot and Lapos configurations. Celano stopped short of retraining after adding the development data because of that cost. The suggestion that more training material might have produced a stronger shared-task entry remains a hypothesis. If a local test portion were subsequently used as training material, its original role as an independent local test would end, and the evaluation would need separate held-out data.
Celano acknowledges uncertainty about the lemmatization drop between development and testing. The paper proposes overfitting and errors in the input tags as contributors. Both are credible under the architecture described, and neither is estimated by a controlled comparison. The differences among the tests also leave open how much changed vocabulary, spelling, or grammatical usage contributed to the eventual accuracy. The recognition that the lemmatizer receives fallible information is explicit. The size of that effect is unresolved.
Input exceptions show where the system depends on conventions external to the learned conversion. Unfamiliar Greek characters required replacement, with the fixed lemma target making the change acceptable for scoring. Lacunae had their prescribed string assigned by rule. Arabic numerals lacked training examples, and Celano reports no settled solution for their expected lemmas. These cases reveal distinct constraints. A known target can make a character inventory problem manageable, while uncertainty over the intended target remains even if the input characters are readable.
Limits visible in the evaluation design
The scope of the benchmark begins at prepared sentences and tokens. Punctuation had been removed, sentence boundaries were supplied, and enclitic que remained attached. The scores consequently apply after those decisions. Processing a raw edition could involve sentence segmentation, decisions about punctuation, and the syntactic ambiguity of attached que. The paper’s examples show that some of those boundaries depend on grammatical interpretation. The experiments do not quantify the downstream effect of making such decisions automatically.
The output specification also limits the grammatical conclusions. The classifier predicted coarse parts of speech. Success at assigning those categories leaves a separate question about detailed inflectional features. Likewise, success at matching a lemma says how often the output agreed with the benchmark’s canonical string. It leaves the treatment of alternative dictionary entries, editorial traditions, or ambiguous headwords outside the reported score. These boundaries come from the tasks EvaLatin defined and matter when applying the results to another labeling scheme.
Local and official tests also support different ranges of inference. The local split contains held-out material from the same works that contributed to fitting. It is well suited to the comparison performed against Marmot and Lapos. The official transfer results describe performance on the cross-genre and cross-time conditions chosen for EvaLatin. Their ordering shows how those conditions affected this submission. The results leave wider performance across all Latin periods, genres, authors, and editorial conventions undetermined.
The literary text used to train the embeddings complicates the interpretation of what is held out. The paper identifies the collections and the conventions applied to them. It does not give a work-by-work account of overlap with the evaluated passages. Under the closed rules, the important documented distinction is between unannotated evidence used for the embeddings and annotated data used for supervised fitting. The results therefore support conclusions about performance in that resource setting. A stronger claim that the system succeeded on text absent even from its unannotated sources would require an overlap analysis.
The evaluation gives overall accuracies, which are useful for comparing complete runs but can hide different patterns of failure. It does not break down tagging by grammatical category or lemmatization by type of transformation. It also does not distinguish success on forms previously encountered from success on novel spellings. In particular, the aggregate lemma scores cannot show how frequently the decoder successfully produced a headword for a previously unseen form. Character-level generation gives the system a way to attempt such an output, and a targeted evaluation would be needed to measure that capability.
The description of preparation is detailed enough to motivate the corpus choices and normalization, while Celano explicitly presents XML extraction as a larger problem. Reproducing the inputs closely would require knowing how editorial additions, problematic character references, and other markup were handled across the collections. The timings are similarly specific to the reported comparison and cover classifier training as described. The paper gives no prediction-time comparison and no full end-to-end timing for the separate corpus and embedding stages. Its runtime evidence addresses the cost observed during tagger fitting.
Finally, the comparison with contemporary practice is narrower than a demonstration of general superiority. On the local split, the reported LightGBM configuration outscored the default alternatives. On the official Classical Latin lemma test, the paper compares its score with the top-ranked entry. The transfer scores demonstrate a decline from the Classical Latin condition for both tasks. Together, those experiments characterize how the submitted system performed and where it encountered more difficulty. Equal tuning across taggers, matched component removals, and finer error analysis remain outside the experiment.
What came after
Latin BERT cites Celano’s paper and addresses contextual representation for Classical philology. The shared concern is how to use evidence around a Latin word. In Celano’s entry, the word vectors are prepared in advance, and the tagger gets access to the current context through a fixed window of neighboring vectors and endings. The resulting category then conveys some of that contextual evidence to the lemmatizer. Latin BERT’s title places contextual representation itself at the center of the work. The citation connects the approaches at that level. Reuse of the LightGBM classifier, the character decoder, or the training procedure is unestablished.
Machine Learning for Ancient Languages: A Survey cites the paper within a broader survey of work on ancient languages. Celano’s entry contributes a specific case to that wider subject. It uses unannotated literary texts to support supervised grammatical prediction, relies on a published convention for the target labels, and measures the finished system under shifts in text genre and period. The survey’s scope places problems of this kind within the wider study of computational methods for ancient texts. Its citation establishes that wider connection, while the particular use it makes of Celano’s architecture or results remains unspecified.
Cite
Cite as Giuseppe G. A. Celano. 2020. A Gradient Boosting-Seq2Seq System for Latin POS Tagging and Lemmatization. Proceedings of LT4HALA 2020 - 1st Workshop on Language Technologies for Historical and Ancient Languages.
@inproceedings{a2020gradient,
title = {{A Gradient Boosting-Seq2Seq System for Latin POS Tagging and Lemmatization}},
author = {Giuseppe G. A. Celano},
booktitle = {Proceedings of LT4HALA 2020 - 1st Workshop on Language Technologies for Historical and Ancient Languages},
year = {2020},
url = {https://aclanthology.org/2020.lt4hala-1.19/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/celano-2020-gradient-boosting-seq2seq-system-latin/