Elamur Research

Lemmatization and Morphological Tagging in German and Latin: A Comparison and a Survey of the State-of-the-art

Paper · 2016 · Steffen Eger, Rüdiger Gleim and Alexander Mehler

Summary

A word in a sentence presents two different problems for a language tool. The tool may need to find the dictionary form under which the word belongs, and it may need to identify the grammatical work the word is doing in that sentence. The first task is lemmatization. The second can stop at broad categories such as noun and verb, or it can also assign properties such as case, gender and tense. German and Latin make a demanding test because a dictionary entry can have many surface forms and a complete grammatical analysis can require several decisions at once.

The authors compare established and newer taggers as a practitioner would encounter them, generally using their default settings. The tests ask how often the tools get the broad word class right, how frequently they get the complete grammatical label right, and how those outcomes change when training and testing use different corpora. The authors also measure elapsed training and tagging time. MarMoT reaches 98.04% accuracy for broad word classes on held-out Tiger text without extra resources. With joint prediction and external resources, its complete-label accuracy reaches 91.04% on held-out Tiger text and 91.57% on the Latin capitularies in the in-domain comparison. TnT and TreeTagger are much quicker in the timing test, with larger accuracy disadvantages on detailed grammatical labels than on broad word classes.

Changing corpora exposes a weakness that high scores within one corpus can hide. A MarMoT tagger trained on the smaller Latin Proiel sample gets 63.13% of broad word classes right on the capitularies without external resources. Adding both word embeddings and a lexicon raises that result to 71.17%. The paper also compares independent prediction of each grammatical category with prediction of the categories as a single label. Among the tools that report both settings, learning the combined label raises the accuracy of the complete analysis.

The lemmatization comparison favors LAT, which encodes the edits that turn a surface form into its dictionary form and learns to choose those edits in context. It beats the suffix-rule system LemmaGen in every reported setting. On held-out Tiger text, their respective lemma accuracies are 98.24% and 98.10%. When trained on Tiger and tested on TGermaCorp, they record 87.70% and 87.61%. The comparison therefore gives practitioners several distinct grounds for choosing a tool, including the depth of grammatical analysis they need, the match between training material and their own texts, and the time available to train or run it.

Deep dive: Lemmatization and Morphological Tagging in German and Latin: A Comparison and a Survey of the State-of-the-art

A comparison of German and Latin taggers and lemmatizers shows how accuracy and processing time change with richer tags and a shift in domain. · about 30 minutes to read

The problem and its context

What a grammatical analysis has to recover

A text contains words as they were written in specific sentences. A dictionary groups many of those appearances under a single entry. To retrieve passages containing different inflections of a verb, for example, a search system benefits from identifying that shared entry. Meanwhile, a system extracting information from the passages may need to know which occurrences are verbs and which grammatical properties they carry. The paper treats these as related preprocessing tasks that support search, knowledge extraction and semantic analysis. The surface spelling the system receives is the word form, and the canonical output of the dictionary-form task is the lemma.

A broad word class gives an initial account of what a token is doing. Labels such as noun and verb are the familiar outputs of part-of-speech tagging. A broad label can leave open details that matter for linguistic analysis. Case distinguishes grammatical forms associated with roles in a sentence. Number distinguishes forms such as singular and plural. Other categories in the study include gender, degree, mood, person and tense. Which categories make sense depends on the kind of word under analysis. The paper’s example is comparison degree, which is inapplicable to a noun. The organization of these forms and distinctions is part of morphology.

These tasks ask a tool to generalize in different ways. For the lemma, a new spelling may be an inflected form of an entry the tool already knows. A regular ending can provide evidence about the edit needed to recover the entry, while an irregular form can require a less obvious transformation. For a grammatical tag, the tool may encounter a new combination of properties even when it has seen those properties separately. The challenge grows with the number of forms associated with each lemma and with the range of distinctions recorded for each token. A tool used on German or Latin therefore needs a way to handle both a varied input vocabulary and a potentially large output inventory.

Sentence context is relevant to both problems. A written form can admit more than one analysis, and neighboring words can help determine which reading fits the occurrence. The grammatical analysis and the dictionary entry can also inform one another. The paper cites a system that learns the two tasks together as an example of using that relationship. Its own main joint-tagging experiment concerns a different relationship, between the grammatical properties that make up a tag. The cited approach to combining the two tasks is Lemming.

The tagger traditions the paper compares

The paper describes several changes in what a tagger can use as evidence. One is the move from making isolated word decisions to assigning labels along a sequence. In that setting, a possible label can receive support from other labels nearby. The authors point to hidden Markov approaches and conditional random fields as examples of systems that exploit dependencies among output labels. Hidden Markov approaches represent the labels as states behind the observed words. A conditional random field scores candidate labels given observations such as the words in the sentence. The paper uses these ideas to explain the systems under comparison and gives implementation details where they are especially relevant to the experiments.

Another change is the inclusion of a wider range of properties of the input words. A feature is a measurable piece of evidence made available to a tagger, such as an ending or a property of a nearby word. The paper identifies feature-rich part-of-speech tagging as a milestone and points to work by Ratnaparkhi and Toutanova and colleagues. These earlier approaches appear in the paper’s account of how tagging came to use more lexical evidence. Ratnaparkhi’s maximum-entropy tagger and the Stanford tagger.

The authors also identify a development from support vector machines, which use the idea of a margin when learning to distinguish classes. The margin concerns how far examples lie from the decision boundary. The paper’s survey brings a support-vector approach into direct comparison with older implementations and newer sequence taggers. One of the older systems, TreeTagger, comes from decision-tree tagging. Another, TnT, uses a hidden Markov approach. The authors point out that incorporating arbitrary features is less straightforward in a system such as TnT.

The recent work described in the paper extends the available evidence in several directions. Unannotated text can supply representations that summarize how words are used. Algorithms for larger label inventories can make feature-rich tagging feasible for more detailed annotation. Neural approaches can learn useful representations without requiring an equivalent inventory of handcrafted features. Those are different developments. A system can benefit from word representations without using a neural architecture for prediction, and a system can address a large output inventory through approximations in its sequence calculations.

The survey also includes systems whose original designs address a wider problem than the one compared here. Mate comes from work that connects part-of-speech tagging with syntactic analysis of the relations among words, known as dependency parsing. For this comparison, the scores concern the tagging outputs. The cited work is Bohnet and Nivre’s transition-based tagging and parsing system.

The lemmatizer traditions the paper compares

The paper describes a lexicon as one possible source of lemmas. A lookup can return known analyses for a written form. This is useful when the form is present and the correct entry can be identified. In running text, a lexicon can also return alternative readings without indicating which one fits the sentence. Its coverage depends on what has been recorded, and obtaining an adequate resource requires work. The authors distinguish direct lookup from using lexicon information as evidence for a trained system. The latter can make use of a dictionary entry where available while still drawing on evidence from annotated examples.

Previous learned approaches described by the authors include character-level string transduction, transformations at the beginnings and ends of words, and pattern matching. String transduction treats the change from form to lemma as a sequence of character operations. The paper presents this as a potentially accurate approach and draws attention to the setting in which that accuracy has been observed. Training and testing on words sampled from a lexicon differs from processing running text, where some irregular forms recur and the words around an ambiguous form can help. The authors also describe character transducers as potentially slow to learn and usually focused on the word in isolation.

Transformations at word boundaries offer a more compact description when a form shares a substantial middle portion with its lemma. The training task becomes finding useful changes at the prefix or suffix, or both. Within this family, the authors choose methods that learn different kinds of decisions. LemmaGen learns rules keyed to suffixes. LAT assigns a label that encodes boundary edits and equips the tagger to choose that label using sentence evidence. The comparison consequently tests practical ways of recovering lemmas from annotated text, with context available to one of the lemmatizers.

Why the training source matters

A domain in this study is the kind of material represented by a corpus. Genre, register and historical variety can all affect the distribution of forms a tagger encounters. A tool trained and tested on separate samples from the same corpus is being asked to handle new passages drawn from the same source. A tool tested on a different corpus must also accommodate whatever differences the new source introduces. The authors consider this second question central to practical use because users often bring their own collections to a tool trained elsewhere.

This distinction also affects how to read claims of progress. A tagger can do well on broad word classes in a familiar corpus while finding detailed distinctions harder. It can improve full-label accuracy while taking substantially longer to train. It can also improve with access to a lexicon or unannotated text that a competing implementation is unable to use in the same way. The paper’s comparative design makes room for all these outcomes. Its question is how the available systems behave under specified conditions, including conditions in which an apparently strong result on a familiar source gives little guidance about the next collection a practitioner wants to tag.

The method, step by step

From annotated sentences to test predictions

The starting point is a corpus of sentences with reference analyses attached to their words. Those analyses provide the target labels for the taggers and the form–lemma pairs for the lemmatizers. During training, a tool sees the words together with the relevant answers. During testing, it produces answers for held-out sentences, and the authors compare those predictions with the corpus records. The reference analyses in this setup are instances of linguistic annotation.

The corpus split sets the problem before any tagger attributes a label. For an in-domain test, training and test sentences come from the same corpus, with the overall procedure described as 3-fold random subset validation using a 90%/10% split. Each split holds back material for evaluation. For an out-of-domain test, the authors use one whole corpus for training and the other corpus of the same language for testing. They can reverse the direction to ask a different question about transfer. The direction matters because each corpus supplies the training evidence in one comparison and defines the test material in the other.

The authors then choose the form of the prediction. A tagger can learn a broad word class, an individual grammatical category, or a label that bundles the grammatical categories together. For lemmatization, a tool learns how words in the training corpus were transformed into their annotated lemmas. Some tagging runs also receive additional evidence from lexicons or from representations derived from unannotated text. These resources enter training as information the tool can use to predict an answer. The corpus labels still supply the reference for the evaluation.

From annotated corpora to scored predictions

The steps in order.

From annotated corpora to scored predictionsStep 1: Choose training and test corpora1. Choose training and test corporaStep 2: Define grammatical labels or lemma transformations2. Define grammatical labels or lemma transformationsStep 3: Prepare external features for resource-assisted runs3. Prepare external features for resource-assisted runsStep 4: Train on annotated examples4. Train on annotated examplesStep 5: Tag or lemmatize the test sentences5. Tag or lemmatize the test sentencesStep 6: Compare predictions with the reference annotations6. Compare predictions with the reference annotations

The authors approach the implementations largely as packaged tools. They generally keep the default parameter settings and train separately for the tasks under comparison. That choice makes the experiment informative about what someone can obtain without a large tuning effort. It also gives the versions and configurations tested a direct role in the outcome. A tool’s ability to accept richer inputs, maintain a large label space, or learn within a practical amount of time is part of the comparison.

How independent and joint tagging differ

In the condition the paper calls pipeline learning, each grammatical category is a separate prediction task. One run can learn broad word classes. Another can learn case. Separate predictions supply the remaining properties for the complete analysis. The word “pipeline” here describes how the authors obtain a whole set of grammatical properties from category-specific predictions. The separate learners are trained on their own targets, and the complete result is evaluated by requiring all the properties to match the reference.

With joint learning, the target for a token is a single label encoding its combination of properties. A tagger trains directly on those labels. A combination’s properties then move together during prediction. This gives the system a way to exploit regularities among the parts of a label. The paper’s noun and comparison-degree example illustrates the structure available for learning. A collection of separate predictions can combine plausible individual decisions into an implausible bundle. A learned inventory of bundles brings those restrictions into the choice of output.

Joint labels also change the computational problem. Each separate task has an inventory limited to the values of its own category. A tagger predicting complete bundles can face a much bigger inventory. When the number of candidates grows, evaluating or searching through them can become expensive. The paper evaluates the joint setting for systems that could produce results under the conditions tested. It presents MarMoT as designed to handle large output spaces through approximations to its calculations.

There are two kinds of dependence to keep in view. Joint morphological tagging concerns properties assigned to the same word. Sequence tagging concerns labels assigned to different words in a sentence. A tool predicting case alone can still exploit patterns across the sequence of case labels. A tool predicting complete bundles can account for the structure of each bundle and also assign the bundles in sequence. The independent and joint comparison changes the target unit. Each implementation brings its own way of dealing with context and label sequences to that target.

What the taggers use as evidence

MarMoT implements a higher-order conditional random field. The authors describe it as using approximations that let the tagger operate with many possible labels. The higher-order part concerns sequences of output labels and allows the score to depend on a richer label history. The tagger can also include word representations and evidence from lexical resources as features. In the paper, the same implementation serves in the comparisons of grammatical labels and, in a separate setup, in the contextual lemmatizer.

FLORS constructs its input from the local context of a word. It represents each word in that context using properties of its distribution, shape and suffix. Distributional information summarizes patterns of occurrence. Shape can record the way a word is written, and a suffix gives evidence from its ending. FLORS joins the representations of the context words into a single vector and uses a support vector machine to choose the label for the target word. A vector in this setting is a collection of numerical features considered together.

The authors emphasize that FLORS can make the same kinds of representations for training vocabulary and for unfamiliar words. This makes it relevant to transfer between corpora, where unfamiliar forms are part of the problem. They use the online variant, which revises its word representations as it encounters test sentences. Updating a representation from a test sentence gives the tagger information about observed usage in the target text. The method description concerns the words in those sentences, with the reference tags reserved for scoring.

The other systems supply a broader implementation comparison. The paper includes OpenNLPTagger, Lapos and Mate alongside the Stanford tagger and the older TreeTagger and TnT. It refers readers to the original system descriptions for details of their algorithms. The authors initially also considered a character-oriented neural tagger because it could in principle help with unfamiliar forms. The system was too slow in their trials to explore its settings adequately, and they excluded it from the reported score comparison. That system is NonLexNN.

How the extra resources enter the comparison

For MarMoT, the authors prepare representations from unannotated German Wikipedia and from the Patrologia Latina for Latin. They train the CBOW variant of word2vec. The resulting vectors let the tagger use information learned from word usage beyond the annotated training corpus. These vectors are word embeddings. The paper cites the word2vec work of Mikolov and colleagues.

The German dictionary resource comes from Wiktionary. The authors explain that extracting lexical entries and grammatical information is difficult because templates vary between Wiktionary editions and can be applied inconsistently within one edition. They set up an instance using the dump dated 2015-09-01 and parse the resulting HTML. In their experience, the rendered structure was a more accurate extraction target than the underlying wiki source. The resulting resource covers nouns, proper nouns, verbs and adjectives. It contains 67,034 lemmas and 1,817,735 syntactic words. For Latin, the lexical resource is Collex-LA.

A tagger can use a lexical prediction as evidence for a word whose entry is in the resource. It still learns how to interpret that evidence alongside the annotated training examples. In particular, the usefulness of a lexical entry depends on which alternatives it offers and how informative the surrounding sentence is. The comparison that adds both resources asks what happens when MarMoT gets this lexical evidence in addition to the distributional evidence from embeddings.

FLORS uses unannotated words through its own word representation procedure. The dataset description says the authors give it the first 500,000 sentences from German Wikipedia and that memory constraints prevent use of the full collection. The result for supplementary text is labeled +Wiki. The accompanying discussion calls the added material Wiktionary, while the resource setup identifies Wikipedia sentences. The reported score can be attributed to the supplementary +Wiki condition. The preparation procedure described for FLORS points to Wikipedia.

How a lemmatizer learns which edit to make

LemmaGen learns a tree of suffix rules from examples of forms and their corresponding lemmas. A rule tests the ending of a form and specifies its replacement. The tree organizes the choice of rules, so the method can learn a more particular transformation for forms with a suitable ending. At prediction time, the evidence for a word comes from its spelling. The implementation in the comparison has no mechanism for learning different lemma choices from different sentence contexts.

LAT also learns from forms paired with lemmas. It encodes the needed change as a label and uses a tagger to choose among such labels. The label specifies a prefix edit and a suffix edit. Taken together, these determine the lemma while retaining the intervening part of the form. For the German example gespielt becoming spielen, the paper gives the following encoding.

(2, ∅, 1, en)

The parentheses enclose the ordered entries, and commas separate them. The first entry, 2, gives the number of initial characters to replace, which are ge in gespielt. The second, ∅, is the empty string, so the prefix replacement removes those characters. The third, 1, gives the number of final characters to replace, which is the final t. The fourth, en, is the string inserted at that end. The characters between the edited parts remain in place, and the resulting string is spielen.

This encoding separates choosing a transformation from carrying it out. During training, the target can be a reusable edit label shared by different forms. During testing, a predicted label is applied to the word as written. A tagger thus makes a classification decision over a compact inventory of transformations. It can assign labels across sentences, taking into account information beyond the characters of the word itself. The paper describes the possible inventories as being on the order of hundreds or thousands of labels, depending on the set of transformations.

The authors run LAT with MarMoT and omit additional external resources for this experiment. They describe the result as direct lemmatization because LAT is trained to predict the edit labels from the text without first receiving predictions from a separate grammatical tagger. This makes the relationship between context and the predicted edit immediate. LemmaGen and LAT are trained on the available form–lemma pairs for the relevant condition, and the comparison scores the resulting lemma strings.

The compact labels are useful to the design because the final answers and the learned classes need not have the same inventory. A particular edit can recover different dictionary entries as it is applied to different words. The tagger learns to select the edit from available evidence, and the input word supplies the part of the output that is preserved. That makes the experiment a test of contextual edit selection as well as a comparison between ways of representing the transformation.

Experiments and results

Corpora, evaluation splits and scores

The German evaluation uses Tiger and TGermaCorp. Tiger contains 50,472 sentences and 888,238 tokens. TGermaCorp contains 7,274 sentences and 123,742 tokens. The authors describe Tiger as more homogeneous and TGermaCorp as containing poems and several kinds of literature. The distinction is useful when reading their in-domain results. A test source can be familiar in the sense that it supplied the training examples while still containing a relatively varied collection of texts.

For Latin, the capitularies provide 15,572 sentences and 481,578 tokens. The Proiel sample contains 1,147 sentences and 22,280 tokens. The authors use a randomly selected portion of Proiel whose tag labels were manually aligned with those of the capitularies. This lets the tagging comparison use corresponding labels across those Latin sources. It also means the results describe the selected and harmonized material. In the directional results, the paper abbreviates TGermaCorp as TG and the capitularies as Capit. The corpus on the left of an arrow supplies the training data, and the one on the right supplies the test data.

For general in-domain testing the paper reports a 90%/10% split in each of its random subset validations. For out-of-domain evaluation, training uses the full source corpus and testing uses the full target corpus. An in-domain score is therefore about test sentences held out from the same collection. A transfer score describes the target corpus under training on the other collection. The change in source can involve both the amount of training material and its distribution.

The main score is token accuracy. For broad word classes or an individual property such as case, the question is how frequently the predicted value matches the reference value for the task. For complete morphological tagging, the prediction is correct only when every category agrees with the reference. For lemmatization, the predicted lemma must agree with the annotated lemma. A broad word-class score, a case score and a complete-label score measure distinct outcomes. Reporting all of them helps locate where the task becomes demanding.

The paper supplies several comparison points. In the unassisted tagging runs, it compares the different taggers with their default configurations and no supplementary resources. It also compares prediction of separate categories with prediction of full bundles. The word Baseline in the resource experiments refers to the same tagger in joint mode before the extra resource features are added. In lemmatization, LemmaGen is the comparison system for LAT. These comparisons answer different practical questions, ranging from which implementation is stronger to whether a particular implementation benefits from more input evidence.

Broad word classes within and across corpora

On the Tiger in-domain split, MarMoT leads the unassisted broad word-class comparison at 98.04% accuracy. Mate records 97.93% and Lapos 97.89%. The older TnT achieves 97.32%, and TreeTagger achieves 97.25%. These are all broad part-of-speech results on held-out Tiger data. The high figures make that task an important comparison point for the more detailed grammatical analysis, where a correct broad category leaves several further opportunities for error.

The in-domain TGermaCorp comparison is harder for the same task. MarMoT reaches 93.63%, Mate 93.06%, and Lapos 93.02%. FLORS achieves 92.36%. The difference between these TGermaCorp results and the Tiger results concerns a change in both the training and the test collection. It cannot by itself tell a reader which aspect of the two corpora accounts for the different accuracy levels. It does show the range of scores delivered by these implementations when each operates within its own source.

For Latin in-domain broad tagging, Lapos reports 95.97% accuracy on the capitularies and MarMoT 95.93%. On Proiel, MarMoT is ahead at 95.42%, followed by Lapos at 95.23%. Mate reaches 94.93% on Proiel. The ranking outside the training corpus can differ. When the capitularies provide the training data and Proiel is the target, MarMoT and Lapos get 87.36% and 87.34%, respectively. When Proiel supplies the training data for the capitularies, Mate reaches 64.05% and Lapos 63.60%, with unassisted MarMoT at 63.13%. An in-domain lead and the strongest result in a given transfer direction are separate outcomes.

In the German transfer experiments, MarMoT reaches 89.86% for broad part-of-speech accuracy when trained on TGermaCorp and tested on Tiger. Lapos reaches 89.62% in that direction. With Tiger as the source and TGermaCorp as the target, FLORS leads at 90.59%, with Lapos at 90.18% and Mate at 90.13%. Unassisted MarMoT scores 89.83% in that direction. The authors characterize the typical out-of-domain decline as about 8-10%, and note that some individual declines go beyond 30 percentage points. The Latin results in the direction from Proiel to the capitularies illustrate how demanding a particular transfer can be.

MarMoT broad part-of-speech accuracy on the capitularies after training on Proiel

Embeddings improve transfer, and the lexicon adds a further gain when used with them.

MarMoT broad part-of-speech accuracy on the capitularies after training on ProielNo external resources: 63.13No external resources63.13Embeddings: 66.28Embeddings66.28Embeddings and lexicon (this paper): 71.17Embeddings and lexicon (this paper)71.17
The numbers
System or settingaccuracy %
No external resources63.13
Embeddings66.28
Embeddings and lexicon (this paper)71.17

The resource comparison gives a concrete way to read a domain shift. For broad tags on the capitularies with training on Proiel, adding embeddings takes MarMoT to 66.28% accuracy. Adding the Latin lexicon alongside the embeddings takes it to 71.17%. The capitularies-to-Proiel direction starts from 87.36% without these resources, reaches 88.40% with embeddings, and reaches 88.79% with both. Resources help in both directions. Their contribution is especially apparent in the run trained on the smaller Proiel sample, where the unassisted score is much lower.

Case and the complete grammatical label

The paper singles out case as the hardest individual category in its German and Latin comparisons. In the Tiger in-domain pipeline runs for case, Lapos achieves 92.58%, MarMoT 92.46%, and FLORS 92.36%. The corresponding case scores are 84.38% for TnT and 81.74% for TreeTagger. Among the Latin capitularies case results, MarMoT records 94.76%, Lapos 94.71%, and Mate 94.62%. TnT reaches 92.97% and TreeTagger 88.46%. The distance between experienced competitors depends on the corpus and on the property the tagger must recover.

Complete grammatical labels make the individual errors count together. In pipeline learning on Tiger, independently predicting the categories gives MarMoT 86.79% accuracy for the complete analysis. FLORS achieves 86.26% and Lapos 85.86%. TnT obtains 76.87% and TreeTagger 72.68%. The paper reports that the accumulated differences across categories separate tools by up to 14% on this task. The broad part-of-speech comparison alone would give a much narrower view of the accuracy costs of using one of the simpler tools.

On the capitularies in-domain pipeline test, Lapos records 88.63% full-label accuracy, MarMoT 88.47%, and Mate 87.73%. TnT reaches 86.00%, with TreeTagger at 83.11%. A system can therefore place differently when the metric requires every property to be correct. For an application that uses only part of the annotation, the relevant category score could be the better guide. For a use that needs the entire set of grammatical properties to be right together, the full-label measure directly reflects that requirement.

On the Tiger in-domain joint task without extra resources, complete-label accuracy goes to 90.56% for MarMoT, 88.46% for FLORS, and 84.91% for Mate. TnT and TreeTagger reach 85.34% and 80.91%, respectively. On the capitularies, unassisted joint tagging takes MarMoT to 90.66%, Mate to 89.73%, and FLORS to 89.33%. The joint results have missing entries for Lapos and the Stanford tagger on both corpora. In the paper’s best-performance comparison, their available pipeline scores supply the reported results for these tools.

Best reported complete morphological label accuracy on Tiger in domain

MarMoT leads the comparison in the best settings reported for each tagger.

Best reported complete morphological label accuracy on Tiger in domainMarMoT (this paper): 91.04MarMoT (this paper)91.04FLORS: 88.81FLORS88.81Lapos: 85.86Lapos85.86OpenNLPTagger: 85.50OpenNLPTagger85.50TnT: 85.34TnT85.34Mate: 84.91Mate84.91Stanford tagger: 81.94Stanford tagger81.94TreeTagger: 80.91TreeTagger80.91
The numbers
System or settingaccuracy %
MarMoT (this paper)91.04
FLORS88.81
Lapos85.86
OpenNLPTagger85.50
TnT85.34
Mate84.91
Stanford tagger81.94
TreeTagger80.91

The best-performance comparison combines the strongest settings the authors report for each tool. It includes resource assistance where evaluated and successful, and pipeline results where the joint comparison has no score. On the capitularies in-domain test, MarMoT leads that comparison at 91.57%. Mate reaches 89.73%, TnT 89.41%, and FLORS 89.33%. Lapos gives 88.63%. MarMoT is the only tagger above 90% in the best reported full-label results on both Tiger and the capitularies. The best-performance chart and the unassisted joint comparison therefore describe different experimental conditions.

How long training and tagging take

The timing test uses broad part-of-speech tagging on a Tiger subset, with 45,424 sentences for training and 5,048 for testing. It measures elapsed time. TnT is recorded at 0:02 to train and 0:01 to tag the test set. TreeTagger records 0:01 for training and 0:01 for test tagging. The paper’s table gives times in hours, minutes and seconds and prints the shorter times without an hour field.

Unassisted MarMoT trains in 5:00 and tags the test sentences in 0:10 in that timing run. The setting with embeddings and the lexicon records 16:42 for training and 1:12 for testing. Lapos logs 6:44 for training and 0:13 for testing. OpenNLPTagger trains in 11:02 and tags in 0:06. These figures illustrate why training time and tagging time need separate reporting. Once a tool is trained, a relatively quick test pass can coexist with a much larger initial training cost.

FLORS records 5:11:55 in training and 3:55 in testing. The Stanford tagger takes 27:08:17 to train and 0:08 to tag. These are measurements of the implementations in the reported coarse-tagging setup. The authors discuss the relevance of such differences when a tool must be retrained or must process large volumes of text. The test is especially informative when used alongside the accuracy comparisons. It shows what the measured time cost looks like for a broad labeling task, while the detailed tagging results show the accuracy advantage some of the slower implementations can offer.

Lemmatization in familiar and unfamiliar text

LAT yields the higher direct lemma accuracy across the reported comparisons. On the Tiger in-domain split, its score is 98.24%, with LemmaGen at 98.10%. On the TGermaCorp in-domain split, the corresponding scores are 91.75% and 91.37%. On the in-domain capitularies test, LAT reaches 95.30% and LemmaGen 95.19%. These are exact matches against the corpus lemmas. The accuracy criterion gives full credit to a transformation that produces the reference form, regardless of which edit or rule the system used.

Direct lemma accuracy on Tiger after training on TGermaCorp

The contextual edit tagger recovers more reference lemmas than the suffix-rule system.

Direct lemma accuracy on Tiger after training on TGermaCorpLemmaGen: 85.95LemmaGen85.95LAT (this paper): 87.48LAT (this paper)87.48
The numbers
System or settingaccuracy %
LemmaGen85.95
LAT (this paper)87.48

The German transfer results are lower than either tool’s in-domain scores on the corresponding target. When the systems learn from TGermaCorp and lemmatize Tiger, LAT reaches 87.48% and LemmaGen 85.95%. When they learn from Tiger and lemmatize TGermaCorp, LAT reaches 87.70% and LemmaGen 87.61%. The size of LAT’s advantage depends on the direction. Both directions give results below 90%, even though the same methods can score much higher within the familiar Tiger source.

The authors give concrete examples of what changes in the transfer to TGermaCorp. There are misspellings such as Widersehen and historical variants such as Capital. The historical form is assigned the modern lemma Kapital. A lemmatizer trained on the Tiger annotations lacks comparable evidence for examples of this kind when they are absent from its training material. The problem also involves different lemma conventions across the collections. An exact-match evaluation registers disagreement with the target convention as an error whether the difference reflects an unfamiliar form or a difference in what the corpora expect a lemma to look like.

What the ablations show

Predicting a complete analysis in one decision

The closest comparison to an ablation of the tagging method is the change from independent categories to combined labels. The authors use the same corpora and compare each tagger’s result where both conditions produced scores. The quantity of interest is complete-label accuracy in both cases. A pipeline output has to match all the grammatical properties, just as the joint output does. The comparison keeps the criterion for a correct token in place while changing what the tagger learns to predict.

On Tiger, MarMoT goes from 86.79% exact agreement on the complete analysis in the pipeline condition to 90.56% in the unassisted joint condition. FLORS goes from 86.26% to 88.46%. On the capitularies, MarMoT moves from 88.47% to 90.66%, and Mate from 87.73% to 89.73%. The direction of change is shared by the systems for which both results are available. The evidence thus extends beyond MarMoT’s particular sequence design. Even TnT and TreeTagger improve on the full-label metric when trained to predict bundles in the reported comparisons.

The paper’s explanation is that inflectional properties provide evidence about each other. Selecting a bundled label can use patterns of co-occurrence that independent category scores do not express directly. At the same time, the experiment changes the prediction inventory, the labels learned from each occurrence and the exercise of searching among those labels. It establishes the practical value of the combined target in these runs. It gives no separate count of how often an independent prediction created an impossible bundle or how many such errors joint prediction repaired. The gain is measured for the training and prediction arrangement as a whole.

Adding features to an existing tagger

The Tiger joint-tagging comparison for MarMoT holds the corpus and the complete-label objective fixed while adding resources in stages. Complete-label accuracy starts at 90.56% without either resource. It reaches 90.91% when the tagger receives embeddings and 91.04% when it also receives the German lexicon. The authors also give scores for individual properties inside the predicted bundles. For instance, gender accuracy is 96.83% without the extra resources, 97.13% with embeddings, and 97.27% with embeddings and the lexicon. The corresponding case scores are 94.45%, 94.52% and 94.53%. The resource comparison therefore shows the outcome for entire tags and for the parts from which those tags are formed.

The sequence of additions supports a specific reading. The embeddings help relative to the unassisted setup, and the lexicon helps when added to the embedding setup. A lexicon-only condition would be needed to estimate what the same lexicon contributes on its own. The Latin transfer comparison follows the same staged design. Its result on training from Proiel indicates that the resource additions can matter when the training corpus is small and different from the target. Reversing the transfer direction still produces a gain, with a different starting accuracy and a different source corpus.

FLORS supplies a comparison of supplementary unannotated text within a different tagger. On the Tiger in-domain joint test, full-label accuracy goes from 88.46% to 88.81% in the +Wiki run. Its case accuracy moves from 93.30% to 93.46%, and gender accuracy from 95.73% to 95.99%. The additional text goes through FLORS’s representation procedure. The experiment establishes the gain associated with that run. It does not independently vary the shape, suffix and distributional features, so there is no corresponding measurement of which component is responsible for the improvement.

Contextual lemmatization and the cost of another prediction

The main lemmatizer comparison changes both the use of context and the representation of the transformation. LAT classifies a prefix-and-suffix edit in context, while LemmaGen selects a suffix rule from the form itself. The results favor the complete LAT system. They do not isolate context by running the same LAT representation with and without neighboring words. The particularly close results on some splits and the clearer separation in the TGermaCorp-to-Tiger direction are outcomes of comparing the full lemmatizers.

The authors also describe an auxiliary lemmatization experiment. In that arrangement, a separate part-of-speech tagger first predicts the class of a word, and that class determines which class-specific lemmatizer is used. The paper reports that this works slightly worse overall than direct lemmatization and offers error propagation as the likely reason. A mistaken word class can send a word to an unsuitable lemmatizer, even if that lemmatizer performs well on words of its intended class. The paper gives no numerical results for these auxiliary runs. The comparison offers qualitative evidence about putting an additional predicted decision ahead of lemmatization.

That auxiliary result and the joint-tagging result concern different structures. In joint tagging, the tool learns to predict the properties of a word together. In the auxiliary lemmatizer, one prediction routes the word to a later prediction stage. The paper’s results favor bundling the morphological properties in the first structure and favor direct lemma prediction over the class-routing arrangement in the second. They leave open the outcome of training a single system to infer the grammatical analysis and the lemma together on these corpora.

Limitations

Limits the authors identify

The authors deliberately avoid extensive parameter optimization. They describe tuning the taggers as substantial work in its own right, with the number of runs and the time each can take making it particularly difficult in this study. The comparisons are consequently evidence about the default or specified configurations they could run. A ranking after tuning each tool for each corpus could differ. Defaults suit the practical question the authors ask, while limiting the conclusions about each underlying method’s attainable accuracy.

Feasibility also shapes the choice of systems and settings. The authors could not make NonLexNN competitive in their trials and report that training on a single fold took on the order of several days, limiting parameter exploration. They note that the FLORS implementation includes features specific to English, which they expected to reduce its performance on their German and Latin tasks. Memory limited the amount of German Wikipedia supplied to FLORS. These constraints are part of what the comparison records about available implementations. They also mean the reported outcomes do not exhaust what character-based tagging or the FLORS approach could achieve under other configurations.

The authors describe the timing figures as estimates of what a user might experience. Elapsed time depends on the hardware and on how a tool is configured, especially for training. The systems also use different programming languages. The authors single out implementation efficiency as an issue for FLORS. The timed task is broad tagging on a specified Tiger subset. It gives a practical instance of the tradeoff between time and accuracy and leaves the relative costs for full joint tagging, Latin corpora or lemmatization without equivalent measurements.

The authors also call attention to differences in the German lemma conventions, the presence of historical spellings and mistakes in TGermaCorp, and the difference in size and homogeneity between the German corpora. They use those observations to explain why Tiger is easier in domain and why transfer is difficult. The examples make individual problems concrete. The paper does not report an error breakdown assigning a share of the transfer loss to conventions, unusual spellings or other changes.

Limits visible in the experimental setup

The out-of-domain comparisons change multiple conditions together. In Latin, reversing direction changes the corpus supplying training examples, the size of that source, and the corpus against which predictions are scored. This is a faithful example of what practitioners encounter when they change collections, but it cannot isolate the contribution of training size or domain difference. Matching the training sizes or evaluating across additional sources would be needed to separate those effects. The resource result under training on Proiel is therefore an observed outcome for that specific transfer, with scarcity and source mismatch both present.

Proiel is a selected portion of a larger corpus with tags manually synchronized to the capitularies. That preparation supports a comparison against corresponding categories. It also sets the scope of the finding. The measured Latin transfer is between the capitularies and this synchronized sample, and the complete-label results reported for the best configurations concern the in-domain capitularies task. The full-label advantage on the capitularies leaves open how those same combinations would compare on a complete-label transfer test.

The best-setting scoreboard also gives systems different opportunities to benefit from resources and joint labels. MarMoT can incorporate the lexicons and embeddings prepared for it. FLORS can use supplementary unannotated text in its own way. Some taggers have no reported joint score. The headline full-label scores answer a question about the best available configuration tested for each tool. The resource-free and paired comparisons offer the clearer basis for claims about a specific experimental change.

Exact-match scores give a useful operational criterion, especially when an application needs the whole tag or the precise lemma expected by a corpus. They offer limited detail about the distribution of mistakes. A full-label error can arise from one disputed property or from several wrong properties. A lemma mismatch can reflect a change of annotation convention as well as a failed transformation. The per-category scores partially address the first issue. The paper offers examples for the second, without measuring separate accuracies for unseen forms, ambiguous spellings or historical variants.

The paper reports point estimates for the comparisons. It provides no uncertainty estimates for the scores across the random splits, so close rankings cannot be read as precise estimates of a persistent lead. This matters particularly for the small gaps between the lemmatizers on familiar text and between the strongest broad taggers on certain corpora. The consistent direction of the reported LAT results is observable across settings, while the size and stability of each narrow gap remain unmeasured.

What came after

The later work linked to this survey turns from grammatical analysis to identifying the intended sense of a word in context. Its stated contribution is a unified evaluation framework and an empirical comparison for that task. The task is word sense disambiguation. The citing study is Word Sense Disambiguation: A Unified Evaluation Framework and Empirical Comparison.

The relationship visible in the two studies is their attention to what an empirical comparison can establish about tools that make decisions about words in context. The German and Latin survey specifies the corpus, label resolution and domain relationship before comparing tagging and lemmatization results. The later work’s title places common evaluation conditions at the center of a comparison for sense prediction. The later citation establishes that it refers to the survey. The specific role of the survey in the later framework, including any reuse of its methods, systems or data, is unspecified.

Cite

Cite as Steffen Eger, Rüdiger Gleim and Alexander Mehler. 2016. Lemmatization and Morphological Tagging in German and Latin: A Comparison and a Survey of the State-of-the-art. Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC'16).

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{eger2016lemmatization,
  title = {{Lemmatization and Morphological Tagging in German and Latin: A Comparison and a Survey of the State-of-the-art}},
  author = {Steffen Eger, Rüdiger Gleim and Alexander Mehler},
  booktitle = {Proceedings of the Tenth International Conference on Language Resources and Evaluation (LREC'16)},
  year = {2016},
  doi = {10.63317/48475hc7a243},
  url = {https://doi.org/10.63317/48475hc7a243}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/eger-2016-lemmatization-morphological-tagging-german-latin/