Comparison of Current Approaches to Lemmatization: A Case Study in Estonian
Paper · 2023 · Aleksei Dorkin and Kairit Sirts
Summary
A dictionary usually files an Estonian verb under an infinitive, even though a sentence may use a form that marks tense and person. Lemmatization is the task of finding that dictionary form for a word as it occurs in text. For instance, the Estonian verb vabandavad leads to the lemma vabandama, meaning “to apologize.” Dorkin and Sirts compare three ways of recovering such forms. A character generator learns to write the answer using the input spelling and grammatical tags. A classifier adapted from EstBERT reads a sentence and assigns a reusable edit to each word. Vabamorf, an Estonian morphological analyzer, proposes possible readings and selects one.
The generator trained on individual occurrences attains the highest single-answer accuracy on both treebanks. On the original validation data from the Estonian Dependency Treebank, its accuracy is 95.49%, against 95.04% for the edit classifier and 87.78% for Vabamorf. All three approaches score higher when the authors lower-case the data and remove special signs that mark word formation in the annotations. The joint simplification also halves the number of edits the classifier has to distinguish. Keeping repeated occurrences in the generator’s training data works better than reducing them to distinct types, even in the comparison that gives each distinct validation type its own count.
Changing the source of training data reveals another difference. On validation material from the Estonian Web Treebank, the occurrence-trained generator gets 95.88% accuracy with web training and 96.28% with training from the Estonian Dependency Treebank. The classifier’s accuracy falls from 95.02% to 87.97% under the same switch. The web validation material stays fixed, while the training collections differ in both genre and size.
Vabamorf’s candidate lists show how much can go right in an analysis that ends in a wrong answer. On the original Estonian Dependency Treebank validation split, the annotated lemma appears somewhere in the list for 99.31% of occurrences. Many wrong selections there occur even though the analyzer has already found the answer. Candidate coverage is lower on web validation. The authors also find relatively little overlap among the errors shared by all three approaches on the Estonian Dependency Treebank validation split. That observation motivates their proposal to combine the systems.
Deep dive: Comparison of Current Approaches to Lemmatization: A Case Study in Estonian
A study of Estonian lemmatization compares character generation, learned edits, and Vabamorf on two treebanks to see where each approach succeeds. · about 33 minutes to read
The problem and its context
Recovering a dictionary entry from an occurrence
A word form is the spelling that appears in a particular occurrence. The lemma identifies the dictionary entry to which that occurrence belongs. Sometimes the spelling already matches the entry. Sometimes the connection involves a short and reusable change, such as deleting the final letter. Other cases call for changes whose connection to the lemma is harder to see from the spelling alone. The task is to supply a complete answer for each occurrence, including the ones whose written form should simply be preserved.
The difference between a word form and its lemma puts this task within morphology, the study of the structure and forms of words. In the paper’s Estonian example, vabandavad is used for the third person plural in the present tense. Its entry, vabandama, is an infinitive. Much of the spelling survives the change. The ending still needs specific treatment. Cutting off letters can expose the common part of the strings, but getting to the entry requires producing the infinitive ending as well. What counts as a successful edit depends on the spelling of the whole result.
Letters are one source of evidence for that result. A grammatical category can help narrow the possibilities, and the grammatical features of a particular form provide more information. Part-of-speech tagging assigns categories such as verb to occurrences in text. Other tags can specify grammatical properties of the form. The surrounding sentence offers a further source of evidence, especially when a spelling has several plausible analyses. The choice then concerns the reading of that occurrence, even if each candidate by itself could be a valid dictionary form.
This ambiguity creates two demands on a lemmatizer. It needs some means of arriving at a suitable string, and it needs evidence that the string fits the word in use. A system with extensive knowledge of written forms may still face several plausible readings. Conversely, a system with useful contextual information may have no way to express the required answer under its own rules. The comparison is motivated by methods that handle these demands differently. They differ in what they can propose and in the information they can consult before committing to an answer.
When written conventions become part of the task
A study of lemmatization uses the reference spelling supplied by linguistic annotation to judge a prediction. In the Estonian data, that spelling can carry information beyond the letters a reader would look for in a dictionary entry. The annotations use special signs for compounding and derivation. Compounding builds a word out of elements that can be identified within it, while derivation forms a word from another form. Marking these structures makes them visible in the annotation. It also gives a system another set of characters to put in the right places.
The authors describe the use of these signs as inconsistent. That matters when the answer is scored as a string. A system can recover the intended letters and still disagree with the reference because of a sign. If similar forms are marked differently, the distinctions the system sees during training can also be harder to learn. The annotation convention is therefore part of both the evidence available to a learner and the answer it is expected to produce.
Capitalization affects the same comparison through a different route. An edit can describe a morphological change and a change of case in the same instruction. The paper uses UDPipe2 to illustrate the consequence. A form with a capital initial may need to have that letter lower-cased on the way to the lemma. The corresponding lower-case form may require the same morphological change with no case adjustment. An inventory that represents the two instructions as separate classes gives the classifier more distinctions to learn, even where the linguistic change is shared.
The authors suggest that treating case by itself could frequently make the transformation inventory more economical. Their experiment approaches the issue by preparing a condition in which case and the special signs have been removed from consideration together. A comparison under that condition asks how much easier it is to recover a lemma once these written distinctions are set aside. It also helps clarify the original task. Accuracy on unchanged data includes the ability to recover the spelling conventions of the reference wherever those conventions affect the answer.
Three traditions for producing an answer
In the character-generation tradition described by the paper, a system reads an input sequence and writes a new sequence. Characters make a convenient unit here because the input and the output are closely related spellings. An encoder builds a representation of the input. A decoder uses it to produce an answer in order, drawing on earlier output characters as it predicts the next one. This sequential dependence is what the paper means by autoregressive generation.
The choice of a character output leaves the choice of context open. The paper describes grammatical categories and features as common inputs to this kind of method. It cites an alternative that uses material surrounding the word, represented as words, smaller units of words, or characters. That work is Lematus. A character generator can therefore use evidence from beyond the letters it rewrites, even though the answer itself is still assembled character by character.
An appeal of generation is that a whole transformation can emerge from the sequence of predictions. The system can preserve an initial portion of a word and make several changes later without consulting a named entry for that combination of operations. Its latitude extends to strings that would be poor morphological analyses. The authors identify that possibility as a cost of the larger range of available outputs. A sequence can be easy for the system to produce while having little linguistic justification.
The pattern-based tradition makes the operation on the word the object of prediction. Examples of forms paired with their lemmas supply reusable patterns. If several pairs differ by the same operation, the learner can be asked to select a shared label. UDPipe2 describes such patterns through string edits. The paper also mentions the edit trees used by spaCy and traces that representation to Lemming. Both representations let a particular operation serve across examples with different words. The general method leaves room for different ways of representing the input and deciding which edit to use.
The advantage of this design is that the possible decisions are circumscribed. Given a form and an applicable edit, the edit specifies the resulting string. A useful pattern can cover many words without an entry for each one. The constraint becomes important where the inventory lacks a usable operation. In that case, even a classifier that reads the sentence well cannot select the missing edit. Where several operations are plausible, the issue is which transformation the sentence supports.
The paper describes rule-based and dictionary-based approaches as a third tradition. Rules can be organized into cascades, in which operations apply in sequence, or implemented with finite-state transducers, which use states and transitions to map input forms to outputs. Apertium is the paper’s example of a platform that supplies rule-based morphological analyzers. Lexical resources take a lookup approach. An entry can provide a form, its grammatical category, and features relevant to its analysis. The paper gives UD Lexicons as an example alongside UniMorph.
For the authors, an attraction of these approaches is that their morphological knowledge can be useful without being learned from the treebank used in the experiment. Their resources are specific to the language, and coverage matters when an unfamiliar word appears. The authors point out that even a morphologically regular word can pose a problem if it is missing from the analyzer’s dictionary. When the same spelling does receive several analyses, a separate disambiguation procedure can use contextual evidence to choose among them. Vabamorf provides an Estonian case in which the analysis and the selection can be examined separately.
Why the training examples can be counted differently
The paper also takes up a convention about how often a form should appear during training. A token is an occurrence in a text. In token-based training, every occurrence is eligible to contribute, so an item common in the source material is common among the training examples. A type is a distinct item for purposes of grouping repeated examples. A type-based collection retains a representative example for a group of repetitions. It gives the learner a different balance of frequent and infrequent material.
The authors describe token-based training and evaluation as customary in lemmatization. They contrast it with morphological reinflection, in which a system starts with a lemma and grammatical features and produces the corresponding inflected form. For that task, the convention they describe presents a combination of lemma and features once. The contrast gives them a reason to try type-based training for lemmatization, where the observed form is the starting point and the lexical entry is the answer.
The frequency of an item in the corpus can influence both learning and evaluation. With token-based scoring, a frequently occurring item contributes repeatedly to accuracy. With type-based scoring, the same item can contribute as a distinct entry even if it occurred many times in the underlying text. These decisions are independent. It is possible to keep repetitions during training and then judge the trained system over distinct validation items. The paper uses that combination to examine whether the choice of training representation is tied to a particular way of counting successes.
Why compare different kinds of Estonian writing?
The authors evaluate on treebanks, collections of annotated text, from two sources. The Estonian Dependency Treebank includes newspapers, fiction, and scientific writing. The Estonian Web Treebank draws on blogs and forums. The difference in provenance is useful for a comparison in which the learners and the analyzer acquire their knowledge in different ways.
A web occurrence can ask for a spelling change that the edit classifier has rarely encountered, or for an analysis whose underlying lexical entry is missing from a dictionary. A character generator faces the related question of whether the mappings it has learned will remain useful on the new material. Training and validating within a corpus asks how a method works with evidence from the same source. Training on the Estonian Dependency Treebank and validating on the web collection asks how well that particular source of training evidence transfers. The authors use the comparison to see how the same change in training material affects systems with different ways of forming their answers.
The method, step by step
Start with the annotated forms and their targets
The two treebanks belong to release 2.10 of Universal Dependencies. The study takes the observed words and their reference lemmas from the annotated corpora. The generative implementation also uses morphological tags associated with the form. The training partitions supply examples for the learned systems. Comparisons of accuracy use the validation partitions. The paper lists the sizes of the test partitions as part of its description of the data.
For the Estonian Dependency Treebank, one condition preserves the original case and the signs used in lemmas. The paper calls this condition Original. The second condition, No Sym, converts the data to lower-case and removes the special signs for compounding and derivation. The name thus covers more than a deletion of symbols. It describes a joint change in the spelling distinctions present in the experiment.
For the systems that learn from pairs of forms and lemmas, the altered condition gives them different examples. In generation, the target sequence can lose a sign or a case distinction. In classification, a form and its target can require a different operation after normalization, which affects the inventory of labels. The answers are then judged against the target appropriate to the condition. For Vabamorf, the paper describes use of an existing analyzer and reports its results on both versions of the evaluation.
The direction of the edit task appears in the paper as a mapping.
form → lemma
Here form is the word as encountered in the input. The arrow → signifies transformation from that input to an output. The destination, lemma, is the dictionary form assigned to the occurrence. For the classifier, a selected transformation class supplies the instructions represented by the arrow.
From Estonian treebank examples to validation scores
The steps in order.
Teach the generator to write the target spelling
The authors adopt a neural transducer from Wu and colleagues that had been used for morphological reinflection. A transducer maps an input sequence to an output sequence. In this implementation it uses a character-level Transformer. It receives the characters of the observed form and morphological tags. It has to produce the characters of the annotated lemma. The authors train it from scratch for lemmatization.
For a verb like vabandavad, the input spelling contains much of the material needed for the answer. The target spelling specifies both what should be retained and what the output should look like where the form and lemma diverge. The system receives this as a sequence prediction problem. A tag can supply evidence about the grammatical analysis, while the letters supply evidence about the parts of the form that can carry over into the answer. The learner has to use those pieces of information to produce the target sequence.
The decoder works from the beginning of the output towards its end. It conditions a character prediction on the input and on characters already produced. Once the shared portion of a spelling has been written, the following predictions can continue towards a lemma ending that fits the input. The procedure lets the system produce the result of a complicated edit without representing it as a single operation. It also means that the evidence available for a later character includes the learner’s own earlier choices.
The description of this generator specifies the input at the level of a form and its tags. That matters because “context” can refer to different things. For this implementation, the relevant additional information is grammatical. The paper discusses using the surrounding words or pieces of words in its account of earlier generative work. In the comparison itself, the architecture explicitly described as reading a full sentence for token predictions is the EstBERT classifier. The two learned systems thus receive contextual evidence in different forms.
The generator is trained with either occurrences or distinct types. The occurrence-based recipe keeps repetitions from the training corpus. The type-based recipe collapses repeated material into distinct items. Both versions predict the same kind of object, a lemma written as characters. The intervention concerns how the examples are presented. With occurrences, a frequent form can influence training repeatedly. With distinct types, frequent examples have less weight relative to the variety of other items retained.
Build an inventory and learn when to use each edit
The pattern-based system begins by asking what operation connects a training form to its annotated lemma. The authors reuse the transformation-generation code from UDPipe2. It yields classes expressed through string edits. A class can preserve the spelling, delete a final character, or specify a combination of deletions and insertions. The operation can be learned from many form–lemma pairs and then applied to a form whose lemma the system has to predict.
This representation turns the annotation into supervision for a classification problem. With a form and its reference lemma known, the rule-generation code supplies a class. The learner sees instances of these classes across sentences. During use, its task is to choose one of the available labels for each token. The selected edit then operates on that token’s spelling. Accuracy is judged on the resulting lemma, so the implementation has a clear boundary between predicting an instruction and carrying it out.
The predictor is EstBERT adapted by fine-tuning, which starts with weights learned previously and updates them for a particular task. Here the input is a sentence and the prediction target at each token is its transformation class. The authors update the full EstBERT network. They use the Hugging Face token classification implementation described in Transformers, alongside the UDPipe2 code that supplies the edit classes.
Consider the class whose instruction is to preserve the input spelling. That instruction has one meaning across many words. What the classifier must learn is when to apply it, a decision that can depend on the spelling and the context of the occurrence. The same division of work holds for a deletion at the end of a word. An operation can be simple to execute while still requiring evidence to distinguish the occasions on which it will produce the right dictionary entry.
Building classes from normalized data changes the possible labels before sentence classification begins. A case instruction can disappear where both sides of a training pair have been lower-cased. A transformation that previously had to insert or preserve a special sign can also simplify when the sign is removed from the target. Operations that differed in such details can become the same class. The normalized classifier thus learns from a revised collection of transformations and is scored on the simplified lemma strings.
The exact route specified by an edit need not be unique for an input. Distinct instructions can sometimes yield the same spelling on the same word. The rule generator supplies a label for training, but the string produced at prediction time determines lemma accuracy. This makes the classification system comparable with the generator, whose prediction is already a string. It also creates a distinction the authors examine in their error analysis. A label that disagrees with the training convention can still express an operation that succeeds at the task.
Run the analyzer and make a single choice
For the rule-based approach, the authors use Vabamorf through EstNLTK, a library that provides access to Estonian language tools. Vabamorf generates possible morphological analyses. A lemma is part of an analysis, so the analyzer can make several lemma candidates available for a token. The authors use the analyzer’s disambiguation facility to obtain the single answer needed for the main comparison.
The disambiguation uses a hidden Markov method, referred to as HMM-based in the paper. Its role in this experiment is to settle on an analysis from the alternatives available for each occurrence. The resulting lemma is the answer compared with the string produced by the generator or by the classifier’s chosen edit. The annotated reference is available to the evaluator for scoring.
The authors evaluate Vabamorf in another way as well. They look at the list of proposed analyses and credit the system if any candidate lemma matches the reference. They call this the oracle condition because the answer key determines whether there is a successful candidate. The check measures coverage of the reference lemmas by the analyzer. Ordinary prediction also requires selection. This extra evaluation lets an occurrence with an available answer be distinguished from one whose proposed analyses give the disambiguator no route to the reference.
Vary training and scoring at specific points
The comparison uses lemma accuracy as the common outcome. For a token, the event being counted is agreement with the reference lemma. The generative system’s answer comes straight from its decoder. The classifier’s answer is the output of an edit, and Vabamorf’s ordinary answer comes from a selected analysis. Once these answers have been produced, the scoring question is the same for each. The oracle condition changes that question to whether a matching candidate is present.
On normalized Estonian Dependency Treebank validation data, the paper also measures accuracy over distinct types for both versions of the generator. This evaluation changes the unit being counted without changing whether a system was trained on tokens or types. Thus, a system trained using the corpus frequencies can be evaluated on a collection in which repeated validation items have been grouped. It can be compared directly with the type-trained system on that same collection.
A different comparison keeps the Estonian Web Treebank validation material fixed and changes the source of training data. The authors train the learned approaches on the web treebank in one setting and on the Estonian Dependency Treebank in the other. They then evaluate each on the same web validation material. A higher score with one training source shows which fitted system did better on that destination split. The change includes the full differences between the training collections, including their domains and sizes.
Experiments and results
The validation material and the comparison systems
The paper abbreviates the Estonian Dependency Treebank as EDT. Its training split contains 24,633 sentences and 344,953 tokens. The EDT validation split contains 3125 sentences and 44,686 tokens, while the EDT test split contains 3214 sentences and 48,532 tokens. The validation split supplies both the unchanged and normalized comparisons. It also supplies the distinct-type evaluation and the token-level comparison of which errors the systems share.
The Estonian Web Treebank, or EWT, has 4579 sentences and 55,143 tokens in training. Its validation partition has 833 sentences and 10,012 tokens. The EWT test partition has 913 sentences and 13,176 tokens. The web validation comparison uses the same target split for both sources of training. The training collections available for that comparison differ substantially in how many annotated occurrences they supply.
The paper’s ordinary comparisons put the character generator against the classifier adapted from EstBERT and the disambiguated output of Vabamorf. The type-trained generator provides a comparison for the occurrence-based training recipe. Vabamorf’s oracle result adds a diagnostic for the analyzer. Every reported accuracy here concerns the validation split and condition named with it. The sentence and token counts for the test partitions describe the corpora.
The original Estonian Dependency Treebank
With case and annotation signs retained, the token-trained generator has the highest single-answer accuracy on EDT validation, at 95.49%. The EstBERT edit classifier obtains 95.04% on the same validation condition. These results put direct character prediction and selection of a pre-defined edit close together in the comparison, with the generator ahead. The paper describes the generator as considerably smaller, despite its use of training from scratch in place of adaptation from EstBERT.
The EDT validation score for the type-trained generator in the original condition is 91.55% on tokens. Apart from the training recipe, the comparison concerns the same generative method. This gives the ranking an important qualification. Character generation with distinct training types falls below the edit classifier in this condition. The best result for generation belongs specifically to the version whose training examples retain corpus occurrences.
Disambiguated Vabamorf scores 87.78% on the original EDT validation tokens. This is the figure for the lemmas selected by the complete analyzer and disambiguation procedure. Judging that procedure by the candidate lists instead produces a markedly different result. The original EDT validation oracle score is 99.31%, which indicates that the range of answers Vabamorf can propose on this split is much stronger than the accuracy of the answers it selects.
Accuracy when case and special signs are set aside
On normalized EDT validation tokens, the token-trained generator scores 97.59%, the EstBERT classifier scores 96.34%, and Vabamorf’s single-answer procedure scores 91.66%. The generator trained on types reaches 95.64% on the same token evaluation. Each of these configurations has a higher score under No Sym than under Original. The token-trained generator remains the strongest system making an ordinary prediction.
Single-answer lemma accuracy on normalized EDT validation tokens
The generator trained on occurrences leads the comparison with case distinctions and special signs removed.
The numbers
| System or setting | accuracy % |
|---|---|
| Token-trained generator (this paper) | 97.59 |
| EstBERT edit classifier | 96.34 |
| Type-trained generator | 95.64 |
| Disambiguated Vabamorf | 91.66 |
Vabamorf’s oracle score on normalized EDT validation is 99.47%. Its candidate lists already cover most occurrences under Original, and they cover a larger share under No Sym. The ordinary results are sensitive to the simplification even though the list-based coverage figures are high in both conditions. This makes it helpful to keep track of which stage of the analyzer is being measured whenever a result is compared across the two versions of EDT.
The separate type evaluation takes the normalized EDT validation material and scores the generators over distinct items. The generator trained on tokens obtains 97.61% there. The one trained on types obtains 95.10%. Those scores compare training recipes under a common unit of evaluation. The type column has results for the generators only, so the comparison between the three broad approaches rests on the token results.
The normalized EDT results therefore answer questions at several levels. The ordinary token scores tell how frequently each system supplies the required simplified spelling. The distinct-type scores show how the generators compare when recurring validation forms are grouped. Candidate coverage measures whether the analyzer proposes the target at all. The validation data come from the same treebank, but each comparison depends on what is counted as an item and what earns credit.
Accuracy on web text and transfer from EDT
With EWT training, the token-trained generator scores 95.88% on EWT validation. The edit classifier reaches 95.02% and the type-trained generator reaches 94.63%. This is the setting in which the learned systems have access to supervised examples from the same treebank as the web validation split. The generator trained on occurrences again leads the methods that make a single prediction.
With EDT as the training source, the token-trained generator reaches 96.28% on EWT validation, while the type-trained generator reaches 95.97%. Each exceeds the accuracy of its counterpart fitted on EWT. Under the same change of training source, the edit classifier falls to 87.97% on EWT validation. Because the validation material is constant, the opposing directions describe how the systems respond to being fitted on a different collection of examples.
Training source and lemma accuracy on EWT validation tokens
Both generator variants score higher with EDT training, while the edit classifier scores higher with EWT training.
The numbers
| System or setting | accuracy % |
|---|---|
| Token-trained generator with EDT training (this paper) | 96.28 |
| Token-trained generator with EWT training | 95.88 |
| Type-trained generator with EDT training | 95.97 |
| Type-trained generator with EWT training | 94.63 |
| EstBERT edit classifier with EWT training | 95.02 |
| EstBERT edit classifier with EDT training | 87.97 |
The EWT results table places Vabamorf at 91.75% single-answer accuracy in the EWT column and 91.74% in the EDT column. These columns denote training sources for the learned systems. The implementation description gives Vabamorf as an existing analyzer accessed through EstNLTK, so the two entries cannot be interpreted as a measured effect of retraining its lexicon or disambiguator on the respective treebanks. Its oracle score on EWT validation is 96.98% in each column.
The comparison with Vabamorf changes when the classifier changes its training source. The classifier is ahead of the analyzer’s ordinary result in the EWT column and behind it in the EDT column. Both versions of the generator exceed the analyzer’s ordinary result in either column. This illustrates why an evaluation restricted to in-domain training would give only part of the account of the classifier. On the same web validation material, its position among the systems depends on which training corpus provided its supervision.
The candidate coverage comparison locates another difference between the treebanks. The EWT oracle result of 96.98% is below Vabamorf’s candidate coverage under either EDT validation condition. The authors connect this pattern to the kinds of forms that occur in web writing, including new coinages and more recent borrowings that may be missing from the lexicon. The candidate-list result is the direct measurement behind this discussion. It shows that the web data contain more occasions, as a share of the evaluated material, on which choosing among the available candidates cannot recover the annotated lemma.
What the ablations show
Simplifying the spelling changes the learning problem
The Original and No Sym comparison changes the task representation while retaining the EDT source. The change affects both what must be learned and what must be returned to obtain credit. For instance, a case distinction that mattered in an original answer can disappear from the normalized target. A sign required inside a lemma can disappear too. The corresponding learned systems train on examples from which these distinctions have been removed. Higher accuracy is evidence that the combination makes the task easier for the tested systems.
The edit classifier supplies a further observation about the nature of that change. The authors report that lowercasing and removing the signs together halve the transformation inventory. This puts a concrete consequence behind the concern about mixing spelling conventions with morphology. When an operation includes a case adjustment or symbol edit alongside a change in the letters of a word, otherwise related instances can be split into different labels. Under a simplified representation, some of those labels can coincide.
The classifier’s increase in validation accuracy from the joint simplification is the smallest among the approaches in the comparison. Its inventory can become much smaller without a similarly large change in the rate of correct final spellings. The inventory describes how many different labels exist. Lemma accuracy depends on how often their distinctions matter on validation tokens and on which edit produces the reference for each occurrence. A change can simplify a large portion of the catalogue while having a modest effect on the answers seen most often.
The normalization intervention also applies to methods that never choose a transformation label. The generator is asked to return fewer kinds of written distinctions, and Vabamorf’s outputs are evaluated in the simplified setting. Their improvements reinforce the point that the original case and sign requirements contribute to the task across methods. The class count singles out an additional effect for the classifier, because its way of representing the prediction turns those requirements into explicit categories.
Repetition helps even when the score counts types
The type-training comparison changes the examples available to the generator while holding its character output design fixed. With repetitions retained, the generator wins its comparison against the type-trained version on the original and simplified EDT token evaluations. The same ordering holds on web validation with either training source. Across those runs, reducing repeated examples to types is associated with lower accuracy.
The normalized EDT type evaluation tests a narrower explanation for the result. One might expect an advantage for token training when success is weighted according to the repetition of words in the validation corpus. A predictor that specializes in frequent instances can earn repeated credit under that measure. If the observed advantage depended completely on how validation occurrences are weighted, switching to distinct types could remove it. The token-trained generator still leads on distinct validation types, which shows that the ordering persists without token frequency determining how frequently an item is scored.
This intervention compares two ways of using the training corpus. Retaining occurrences means that the learner sees more examples and that it sees frequent material more frequently relative to other material. Both properties change under deduplication. The authors’ conclusion is that token training presents no apparent accuracy disadvantage in their tests. The effect pertains to the training recipe as a whole, so the experiment leaves open which property of the additional occurrences does the most work.
Candidate generation and disambiguation fail at different points
The Vabamorf oracle check can be read as a controlled change to the decision evaluated. The analyzer’s proposals are available in both cases. The ordinary evaluation uses the lemma chosen by disambiguation. The oracle evaluation searches the proposed lemmas for a match to the annotation. On original EDT validation, the comparison exposes a large gap between what is available and what is selected.
Vabamorf selected answers and candidate coverage on original EDT validation
The reference lemma appears in the candidate list more often than it appears as the selected answer.
The numbers
| System or setting | accuracy % |
|---|---|
| Disambiguated Vabamorf | 87.78 |
| Vabamorf oracle (this paper) | 99.31 |
For a token on which the reference lemma is present but the returned lemma is wrong, disambiguation accounts for the mismatch. The analyzer has done enough to make a correct selection possible. A better selector would have a candidate to work with. For an occurrence on which the reference is absent, selection confined to those candidates cannot help. Improving that outcome would require a change to what the analysis supplies, or another source for the answer.
This separation also sharpens the interpretation of the web result. Selection accounts for some of the ordinary web errors because the oracle check still scores above the disambiguated system. The lower web oracle result also puts a tighter upper limit on improvements that can come from those candidates alone. The authors’ explanation in terms of vocabulary absent from the lexicon concerns that second source of error. It is consistent with the candidate coverage measurement, although the experiment does not tabulate the specific lexical causes of missing candidates.
The oracle comparison is specific to the analyzer. It measures what Vabamorf could supply with ideal selection among its proposals. The character generator’s and edit classifier’s ordinary results measure answers they actually returned. These comparisons can inform a decision about which component merits attention. The oracle suggests that selection on EDT is a particularly promising part of Vabamorf to improve, while the ordinary scores describe what the tested analyzer and its existing selector achieve together.
The edit inventory has common operations and a long tail
The authors inspect the frequency of the transformations extracted from the EDT training split. The identity instruction, which returns the form unchanged, represents 54.1% of training rule occurrences. This tells a reader something about the actual classification task. A great deal of the supervision rewards recognizing when to leave a word as it stands. The many words covered by this instruction can all be associated with the same label.
Several of the other frequent edits are deletions. Removing the final letter makes up 8.3% of EDT training rule occurrences. Removing the final two letters represents 5.2%, and removing the final three represents 3.4%. Replacing the last letter with ma accounts for 3.3% of training rule occurrences. The last of these is an operation for reaching an Estonian verb lemma. The percentages measure how often the operations appear in training. A frequent class can still be difficult to choose in particular contexts.
Beyond the common edits, the authors describe a long tail of infrequent classes. These include rules for forms whose relationship to the lemma is suppletive, meaning that the connection involves a form that is less readily obtained through the ordinary spelling changes. In a classifier with a separate label for each edit, a transformation that appears only rarely has little direct supervision. The frequency distribution helps explain both why sharing edit labels can be efficient for common cases and why a finite inventory can be fragile at its margins.
Another observation qualifies what it means to need an edit. For vabandavad, the paper describes different operations that both yield vabandama. One operation cuts back to the shared stem by deleting the final three letters, then appends ma. Another deletes the last letter, retains the existing a before it, and changes the preceding letter to m. The two instructions handle the letters differently, but their outputs coincide on this form.
The authors observe that the edit classifier can choose an alternative of this kind. In a comparison against the reference edit label, that choice would register as a disagreement. In the evaluation of lemmatization, the choice earns credit because applying it produces the right word. The example shows that equivalence can depend on the actual input. An edit that preserves a particular character can give the same result as an edit that deletes and reinserts it, provided the preserved character is the one needed. A single example establishes this possibility without giving its frequency across the validation data.
Common failures are a small part of the error tally
The paper compares the three approaches by marking the occurrences they get wrong in EDT validation and drawing the overlaps. Its unit is the token. A repeated form can therefore count as a separate error on separate occasions. For each occurrence, the comparison asks which systems disagreed with the reference, so even systems that obtain similar total accuracies can have different sets of failures.
The authors report that the shared intersection contains 302 out of 5194 errors, or 5.8%, in their EDT validation tally. Their emphasis is on the relatively small portion where all three approaches fail together. This provides evidence of complementarity. On some occurrences missed by one approach, another has already produced the required lemma. Aggregate accuracy alone would leave that pattern hidden because it records how often each system succeeds without identifying the tokens on which their outcomes agree.
The size of the shared intersection is relevant to combining predictions, but it addresses only whether an alternative correct answer is available. A usable combination would have to determine which prediction to accept on a new occurrence. Agreement can help where the matching systems are right and mislead where they share an error. The overlap comparison uses the annotation to establish these outcomes after prediction. It measures the opportunity for a combination, while the reliability of any selection procedure would need to be measured separately.
The transfer effect is a system comparison
Keeping EWT validation fixed while switching training collections is another controlled comparison in the paper. For the generators, the spelling and grammatical evidence learned from EDT proves useful on the evaluated web material. For the edit classifier, a system fitted to EWT gives substantially better answers on that destination split than the version fitted to EDT. The study therefore observes different transfer behavior even though the learned systems face the same target occurrences.
The designs suggest distinct routes by which the training source might matter. The generator can compose an output without selecting a whole edit from an inventory, while the classifier depends on available edits and evidence for choosing among them. A classifier can miss because no available operation works or because the needed operation is present but scores poorly for the occurrence. The web experiment evaluates the delivered answers. It gives no count of how many classifier errors belong to either of those cases, so the differences in representation help frame the result without establishing its cause.
Limitations
Limits identified by the authors
The authors describe the flexibility of character generation as carrying a risk. A generator can write an output that corresponds to no valid morphological transformation. Its good accuracy shows that it often writes the correct lemma in these experiments. The approach itself places fewer restrictions on which strings it can produce. The paper does not measure how often wrong generated strings are linguistically plausible or how often they are forms with no useful analysis.
For the pattern-based system, the authors identify the constraint imposed by the inventory. A correct output requires an available operation that can return it. The observation about equivalent edits makes availability a question about the resulting spelling, since more than one label can work on a form. Even with that flexibility, a classifier cannot make a correct prediction where every available operation yields the wrong string. The study illustrates this boundary without estimating how often it binds in either treebank.
Vabamorf depends on having suitable lexical and morphological candidates. The authors argue that it is better suited to formal, grammatically regular Estonian than to noisier web text, and they point to newer words and recent borrowings as possible sources of missing analyses. The coverage scores support a difference between the evaluated corpora. The paper does not present an inventory of the web forms absent from Vabamorf or quantify how much each kind of vocabulary contributes to the lower coverage. The authors’ explanation identifies a plausible mechanism within the kind of analyzer they used.
The authors also call attention to inconsistency in the treebanks’ signs for derivation and compounding. Their normalized experiment gives a score for lemmatization without those distinctions, while the original experiment judges whether the annotated spelling is recovered with the distinctions present. The original scores matter for a use that needs the signs or case conventions reproduced. The simplified scores describe the task after the corresponding obligations have been removed.
Limits visible in the design
The paper compares complete implementations that differ at several points. The generator learns to produce characters and receives grammatical tags. The classifier starts from pretrained EstBERT, reads a sentence, and predicts edits. Vabamorf draws on existing analytical resources and uses its own procedure for selection. Their measured ranking describes this combination of architectures, inputs, and training choices. The study gives no matched comparison that changes only the output representation while keeping the contextual evidence and learning procedure constant.
The generation result also depends on how the grammatical tags are supplied. The paper specifies the generator’s use of tags as inputs. Its comparisons give no separate estimates for generation without tags or for the effect of tag errors on lemmatization. A practical result on text where these inputs must first be obtained would depend in part on their availability and reliability. The reported accuracy is evidence about the generator in the annotated-data setup described by the authors.
The normalization experiment changes case and signs together. It also changes the examples used for training and the strings used for scoring. From this design, it is possible to say that the joint treatment improves the observed accuracy and reduces the size of the edit inventory. Attributing those effects individually to case, to the signs, or to easier comparison against the target would require separating the interventions. The paper’s suggestion that casing might be handled separately remains distinct from a measurement of such a pipeline.
The comparison of token and type training also bundles changes. Removing repetitions changes the frequency weighting and the quantity of training examples. Distinct-type evaluation tells whether the ordering between the generators survives a change in the unit of scoring. It cannot identify which of the differences in the training material produces that ordering. The paper reports distinct-type validation results for normalized EDT and for the generators. The evidence for the broader ranking is based on occurrences.
Training on EDT and on EWT changes both domain and amount of training evidence. The generator’s strong web accuracy after EDT training shows that this source transfers well to the evaluated destination, with the data volumes used in the paper. Whether the advantage would survive training on equally sized collections remains open. Likewise, the classifier’s lower accuracy with EDT training provides no direct estimate of the role of individual kinds of unseen words, the frequency of rare edits, or the prevalence of edits missing altogether.
The main numerical results are validation accuracies. The test splits are documented in the data counts, and there are no corresponding test accuracies in the results tables. The paper gives point estimates for the reported configurations without variation across repeated fits. This matters where the ordinary accuracies are close. The consistent direction of the occurrence-trained generator’s lead across several comparisons is a feature of the reported experiments, while the precision of any individual separation beyond those runs is unknown.
The error analyses mark what is available after inspecting the answers. Vabamorf’s oracle coverage is conditional on its existing candidate lists and the evaluation’s reference spellings. The overlap comparison relies on knowing which predictions match the references. These are informative diagnostics of where improvement could be possible. The paper gives no ensemble accuracy and evaluates no replacement for the HMM-based disambiguation. The experiments establish the presence of alternatives on some errors, leaving open how many a system could identify and use at prediction time.
What came after
No subsequent study is documented here as building on this Estonian comparison. The paper leaves two directions open. One is to combine answers from systems that fail on different occurrences and measure whether a selector can turn that complementarity into better accuracy. The other is to investigate what the edit classifier has learned by looking at cases in which different edit labels recover the same lemma. The first would test whether the right answer can be recognized among competing predictions. The second would examine whether agreement in the resulting spelling reveals knowledge that a score based on edit labels would miss.
Cite
Cite as Aleksei Dorkin and Kairit Sirts. 2023. Comparison of Current Approaches to Lemmatization: A Case Study in Estonian. Proceedings of the 24th Nordic Conference on Computational Linguistics (NoDaLiDa).
@inproceedings{dorkin2023comparison,
title = {{Comparison of Current Approaches to Lemmatization: A Case Study in Estonian}},
author = {Aleksei Dorkin and Kairit Sirts},
booktitle = {Proceedings of the 24th Nordic Conference on Computational Linguistics (NoDaLiDa)},
year = {2023},
url = {https://aclanthology.org/2023.nodalida-1.28/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/dorkin-2023-comparison-current-approaches-lemmatization-case/