A Self-Learning Context-Aware Lemmatizer for German
Paper · 2005 · Praharshana Perera and René Witte
Summary
The same German noun can look quite different from one sentence to the next. Kind, Kindes, Kinder and Kindern can all belong under the dictionary form Kind. At the same time, some nouns look exactly the same in the singular and the plural. A system that simply cuts off familiar endings can therefore miss a real inflection or remove part of the dictionary form itself. Praharshana Perera and René Witte study how a program can recover these dictionary forms, known as lemmas.
Their method starts with clues in the sentence. A determiner, a modifier or the main verb can help establish the grammatical features of a noun. When a clue is ambiguous, a statistical tagger can sometimes resolve it by predicting case from the surrounding sentence. The lemmatizer uses these features to decide whether to keep the noun as written or try removing an ending. Some forms call for several possible answers. For example, the program can propose a version that retains a vowel with an umlaut and another that changes it back.
The program saves these observations in a dictionary indexed by the forms actually found in text. This lets a decision made in a revealing context help with the same form in a less revealing one. It also lets evidence about one inflection settle the lemma of another. A clear analysis of Landes, for example, can establish Land as the lemma for stored forms such as Länder and Ländern. Revisiting entries in this way can also repair some earlier mistakes, although the process can create false links between similar-looking words.
On manually annotated German Wikipedia articles, the rules alone supplied lemmas for 49% of nouns at an accuracy of 0.87 among the outputs. Dictionary lookup alone covered 54% at 0.97 accuracy. Using both increased coverage to 73% with an accuracy of 0.93. In a separate experiment on the book AvFIS, adding entries from the book increased lookup coverage on that same book from 40% to 70%, while accuracy against TreeTagger’s outputs went from 0.98 to 0.97. Together, the experiments show how stored entries and contextual rules can extend each other’s reach, and why the usefulness of the dictionary depends on what it has read.
Deep dive: A Self-Learning Context-Aware Lemmatizer for German
A German noun lemmatizer uses grammar to infer base forms, then learns a dictionary from the texts it reads to improve coverage and accuracy. · about 31 minutes to read
The problem and its context
A base form has to be a word
Lemmatization takes a word as it occurs in a sentence and recovers its conventional base form. The output is something a reader could look up. Kindern should lead to Kind, even though the letters shared by a family of forms and the letters that ought to appear in the dictionary entry are different questions. The paper concentrates on German nouns, for which a useful answer depends on recognizing what the ending is doing and sometimes on knowing the noun itself.
The paper contrasts this goal with stemming, which reduces words to a shared form for matching. A search engine may benefit when it can retrieve documents containing different inflections of a query word. The form used internally for that match can be useful even if it would look strange as an entry in a dictionary. The authors describe a German stemming algorithm used in Lucene as an example of the approach available for information retrieval.
Other tasks need the output to coincide with an actual entry. The paper gives the example of a gazetteer, a list consulted when identifying named entities. If a noun is reduced to a string absent from that list, the lookup may miss a match even when the underlying name is present. The authors also mention queries to an ontology, where the form produced by the text analysis needs to connect with an entry used by the query system. These examples motivate a precise lemma for named-entity recognition and related text analysis.
What a noun ending can tell you
German noun morphology gives the program a useful starting point. Number distinguishes singular and plural. Gender divides nouns into masculine, feminine and neuter. Case describes distinctions such as the role of a subject, the role of an object or the relationship between a noun and another expression. The paper’s case inventory consists of nominative, accusative, dative and genitive. Different combinations of number, gender and case license different candidate operations on a noun.
The difficulty is that a visible ending can support several analyses. In Kindes, the ending is evidence for a singular genitive, and removing it yields Kind. In Kindern, the ending belongs to a plural dative form. Elsewhere, a final string that resembles an inflection may be part of the lemma. Arbeiter can itself be a singular or a plural form. Applying a plausible plural stripping rule to the plural occurrence yields Arbeit, which fails as the lemma of Arbeiter. In that example, even knowing that the occurrence is plural leaves something important unresolved.
Spelling changes inside a noun introduce another decision. The pair Land and Länder calls for a change to the vowel as well as removal of an ending. The pair Affäre and Affären calls for retaining the umlaut in the lemma. The same apparent opportunity to simplify a vowel thus leads to a correct form in one case and an erroneous form in the other. The current spelling can suggest the possible operations. The word’s other forms can provide evidence about which operation to trust.
Context is helpful because relevant markings frequently appear outside the noun. A determiner can identify a form as singular, or narrow the possible cases. An adjective can provide additional evidence through its ending. A verb can give evidence about the number of its subject. Each clue has a different reach. A clear determiner may settle the decision inside a short phrase. A subject–verb clue requires the system to identify the subject and main verb in the sentence. A bare noun may leave both routes unavailable.
What earlier resources supplied
As the authors describe earlier approaches, a lemmatizer can use a dictionary organized around full forms or one organized around base forms. In a full-form dictionary, a surface spelling has an entry that connects it to a lemma. In a base-form dictionary, an entry identifies the lemma and the pattern used to generate its inflected forms. The paper associates the latter approach with Morphy, the earlier German morphological analyzer and lemmatizer.
The resource question mattered as much as the organization. Building a broad dictionary by hand takes time. A substantial general-purpose dictionary can still leave gaps when the input uses specialized terms. The authors describe Morphy as distributed in binary form and no longer maintained at the time of writing. Their standard for availability included being able to inspect, change and integrate the resource. Their discussion of online dictionaries makes the same practical distinction between access to individual entries and access to the database or software.
The design follows from those concerns. A rule system can start producing useful analyses before a full-form dictionary exists. Texts in the language of interest can then supply forms that a general resource might omit. The dictionary can preserve successful analyses for reuse, and a person can inspect errors that survive the automatic updates. This approach makes the collection of documents part of the lemmatizer’s development. The choice of material affects which forms the dictionary will encounter and which forms it can subsequently supply by lookup.
The authors also identify a gap in the standard input to their rules. A part-of-speech tagger can identify categories such as noun and verb, while their noun rules also need case and sometimes number. The system therefore uses part-of-speech labels to organize the sentence and adds a separate source of evidence about case. That additional evidence serves the noun rules. Recovering a lemma still requires deciding what the case means in conjunction with the noun’s other features and its local context.
The method, step by step
From a phrase to a spelling decision
The program looks for a context in which it can make a sufficiently specific decision about a noun. A base noun phrase chunker identifies local groups such as a noun with its determiner and modifier. A part-of-speech tagger gives the program a way to distinguish the categories used by the heuristics. When the phrase itself leaves the case unresolved, the program can consult the case tagger. Together, these sources supply the evidence used to assign a noun to an inflection class.
The easiest route is to recognize a context in which the observed noun is already in its base form. In dem Mann, for example, the relevant determiner tells the program it can retain Mann. In a phrase like des Hauses, the determiner licenses a different operation. A genitive ending can be stripped from Hauses, yielding Haus. By tying changes to the phrase, the rules give the same final letters different treatment depending on the grammatical evidence.
A rule may produce a single answer, propose alternatives or leave the noun unresolved. The lexical component keeps the results that the rules can supply and checks them against evidence already collected. A familiar lemma can help select among alternatives for a new form. A new analysis can also prompt a revision of existing entries. In the combined use evaluated by the authors, a lookup answer gets priority when both components return a lemma.
From sentence context to a reusable noun lemma
The steps in order.
The inflection classes
The classes group noun occurrences by the operation the lemmatizer is prepared to perform. Each class combines grammatical features. Some features distinguish classes directly, such as singular versus plural. Other features narrow the relevant case. Gender matters particularly in the class for masculine and neuter singular genitives. The classes are working categories for the lemmatizer, and a useful classification can leave a feature unresolved if the remaining alternatives all support the same operation.
{Sg} ∧ ¬{Gen} ∧ {Masc ∨ Fem ∨ Neut}
This is the condition for Class I. Sg means singular and Gen means genitive. Masc, Fem and Neut mean masculine, feminine and neuter. Braces group feature conditions, ∧ requires the conditions on both sides to hold, ¬ negates the following condition, and ∨ permits any of the alternatives it joins. A singular noun outside the genitive can qualify regardless of gender. The class operation is to retain the noun as written.
{Sg} ∧ {Gen} ∧ {Masc ∨ Neut}
This is the condition for Class II. Sg identifies singular number, Gen identifies genitive case, and Masc and Neut give the allowed genders. Braces group the features, ∧ joins requirements, and ∨ allows either gender. The class table calls for removing -es or -s. The paper’s broader description of German inflection also mentions -en among the endings found in masculine or neuter singular genitives. The narrower list is the one shown for the class operation.
{Pl} ∧ ¬{Dat} ∧ {Masc ∨ Fem ∨ Neut}
This is the condition for Class III. Pl means plural, Dat means dative, and Masc, Fem and Neut give the gender alternatives. Braces group the conditions, ∧ requires them together, ¬ excludes the case named after it, and ∨ permits any listed gender. For this plural class outside the dative, the possible endings to remove are -e, -n, -en, -er and -s. Identifying the class gives the system a set of plausible edits to the spelling.
{Pl} ∧ {Dat} ∧ {Masc ∨ Fem ∨ Neut}
This is the condition for Class IV. Pl identifies plural number and Dat identifies dative case. Masc, Fem and Neut allow the full range of genders. Braces group the feature conditions, ∧ requires the conditions together, and ∨ allows any of the genders. The listed removals for dative plurals are -n, -en, -ern and -s. The class gives a different set of edits from the one for other plurals, which is why distinguishing dative from accusative can change the final lemma.
The categories specify what to attempt after classification. They also explain why knowing only one property may be insufficient. If the program knows a noun is plural but the context still permits dative and accusative, the choice of class can remain open. At the other extreme, a clear non-genitive singular lets the program retain the form without determining its exact case. The method tries to reach the level of grammatical precision needed for the spelling decision.
Phrases with a determiner
The procedure starts with determiners that give fairly direct evidence. Forms such as das, dem and eine can tell the program that it has a singular outside the genitive. The paper illustrates this path with das Haus, dem Mann and eine Frau. Under the Class I rule, each noun survives unchanged. Forms such as des and eines identify the singular genitive pattern used in Class II. With that evidence, des Vaters can yield Vater and des Hauses can yield Haus.
A more ambiguous group includes die and possessive forms such as meine and deine. In the branch described by the paper, the program can take advantage of a modifier when one occurs with the determiner. It uses a modifier ending in -e as evidence for the singular branch and one in -en as evidence for the plural branch. The evidence belongs to the combination of determiner and modifier. The same ending elsewhere in the method can participate in a different decision.
Another group includes der and possessive forms such as meiner. For those forms, the authors look for clues from the neighboring phrase or from a preposition. Their rules draw on where genitive nominal modifiers and genitive prepositional complements tend to occur. A dative preposition can also support a singular analysis in this branch. These are context heuristics for particular determiner forms. The table gives conditions under which the system can commit to Class I.
For den and the determiner forms grouped with it, the case tagger can settle the choice. Den Salat illustrates the masculine accusative singular reading. That sends Salat down the path that keeps its spelling. Den Kindern illustrates the dative plural reading, which sends Kindern down the path for dative plural endings. The determiner is the same in the examples. The difference in the output comes from which case the surrounding sentence supports.
Phrases with a modifier alone
A modifier can carry useful grammatical information when the determiner is absent. The paper illustrates the change in marking with dem kleinen Kind and kleinem Kind. In the latter, the ending of kleinem supports a singular analysis and the noun can stay Kind. The ending -em is therefore a direct route to Class I in the modifier-only procedure.
Other modifier endings require the case tagger. The paper uses kleines Kind and kleines Kindes to show why the -es on the modifier leaves room for different cases. A case prediction of genitive takes the noun to Class II. Another case takes it to Class I in this branch. The program makes the edit on the noun, using the modifier and case prediction as evidence about the kind of edit that is warranted.
With a modifier ending in -en, the rule distinguishes an accusative singular analysis from a dative plural one. The examples are guten Mann and guten Männern. An accusative prediction keeps Mann unchanged. A dative prediction makes the relevant plural operation available for Männern. The distinction parallels the one made for den, although the grammatical clue here is carried by the modifier.
For a modifier ending in -er, the rule can commit to Class I when case is dative or nominative. The paper shows the difficulty of the genitive possibilities with kleiner Katze and kleiner Katzen. The same modifier form can accompany genitive singular and genitive plural. Even an accurate prediction of genitive can leave the number decision open. That example helps explain why adding a dedicated case tagger gives the class rules more reach while leaving some phrases unresolved.
Bare nouns and subject agreement
A noun with neither a determiner nor a modifier offers fewer local clues. The paper nevertheless identifies a group that can be handled through a preceding preposition. Forms such as zum, zur, am, im, ins and ans contain a determiner fused with the preposition. In the contexts targeted by the rule, they indicate a singular noun for which the observed form can be kept. Zum Bahnhof, zur Party and ins Bett illustrate this route to Class I.
The authors add a sentence-level heuristic for nominative nouns. It first uses the case tagger to find a subject and uses the part-of-speech labels to identify the main verb. The verb ending can then give evidence about whether the subject is plural. A noun identified in this way as plural can undergo a plural transformation. A subject identified as singular retains its spelling under the heuristic.
This use of agreement makes available a clue beyond the target noun phrase. It also illustrates the dependencies in the pipeline. The right verb ending is useful once the relevant subject and verb have been identified. If an earlier stage selects the wrong noun as subject, the final spelling rule can act on the wrong evidence. The system’s separate case and number evaluations help distinguish those supporting decisions from the final lemma judgment.
Predicting case from a sentence
The case tagger uses a hidden Markov approach. In this application, the system represents selected parts of the sentence as an ordered sequence. Some positions are fixed by their part-of-speech category. Others are variable positions whose case labels have to be inferred. A finite verb or a conjunction can give the sequence a known point of reference. A noun phrase may occupy a position that can be assigned nominative, accusative, dative or genitive.
In the paper’s example with die Mutter, gibt, den kleinen Kindern and den Salat, the noun phrases receive nominative, dative and accusative readings respectively. The finite verb gibt contributes the fixed tag VVFIN. The sequence representation makes it possible to use information from the sentence even when an individual phrase leaves its case ambiguous. In the example, the two phrases beginning with den receive different case labels.
The feature inventory comes from STTS, the German part-of-speech tagset used by the authors. Of its 54 tags, they choose 38 for the case tagger on the basis of their grammatical analysis. Verbs and prepositions are examples of categories relevant to the case structure. Among the selected tags, 10 are grouped with nouns on the variable side of the representation. The paper gives pronouns and adjectives as examples of categories for which case is a relevant feature.
For a new sentence, the procedure selects the part-of-speech tags used in scoring and arranges the fixed and variable positions in order. It then uses the Viterbi algorithm to find the most probable sequence of case labels at the variable positions. Viterbi keeps track of the best paths through the sequence, allowing the program to choose a consistent sequence of labels. The authors apply smoothing so that an event absent from the training evidence can still have a score above zero.
O(N³)
The paper gives this as the worst-case complexity of the tagging calculation. O expresses an asymptotic upper bound, the parentheses enclose the quantity that determines the bound, N denotes the number of case choices in the authors’ account, and ³ is the cubic exponent. In their setup the value of N is 4, corresponding to the case inventory. The statement concerns the case calculation described by the authors.
The implementation uses GATE, an architecture for assembling text-processing components. TreeTagger supplies the German part-of-speech labels. A multilingual base noun phrase chunker written in JAPE supplies the local phrase groupings. The authors train the case tagger on Negra version 2, using approximately 70,000 tokens with morphological information for the split. They assign 50,000 tokens to training and reserve 20,000 tokens for testing. The case learner’s annotated input and the texts that contribute entries to the lexicon play distinct roles. The former teaches the tagger about case sequences, while the latter supplies recurring noun forms and analyses.
Keeping several possible lemmas
A class can license several plausible endings to remove, and there may also be a vowel change to consider. For Länder, possible analyses include Länd and Land. The first keeps the umlaut and the second reverses it. An automatic change to every umlaut would mishandle Affären, whose lemma is Affäre. Proposing several candidates lets the program defer that particular decision until other lexical evidence becomes available.
Nouns formed from adjectives introduce a related problem. The paper discusses the forms der Abgeordnete and ein Abgeordneter, which differ even though both are singular. It also shows how dative singular forms vary with the determiner or its absence. In the candidate procedure, Abgeordneter can retain its own spelling as a possibility alongside Abgeordnete. That gives the lexicon a chance to settle a decision the basic singular rule would otherwise make by leaving the noun unchanged.
These cases separate proposing a candidate from accepting it as the lemma. A spelling operation can make an alternative available without establishing that it is correct. Earlier observations can favor one candidate, and a later observation can do the same for entries that currently carry several candidates. In the algorithm-only results, failures involving umlauts and adjective-derived nouns show what happens when the final choice has to be made without the benefit of those lexical updates.
Adding entries and revising them
The lexicon stores the observed form together with the lemma and available grammatical features. In the paper’s example, Kind, Kindes, Kinder and Kindern each have their own record and share Kind as their lemma. The record for Kindes is singular, neuter and genitive. The record for Kindern is plural, neuter and dative. The records for Kind and Kinder can list both nominative and accusative. This organization lets a lookup directly recover information associated with an observed spelling.
When the algorithm processes a form that has no entry, the lexicon can add the new analysis. If the form is already present, the program compares the incoming features with the stored ones. Its policy can preserve differing values. In the paper’s Menschen example, the record can acquire both singular and plural and both accusative and nominative as evidence from different uses becomes available. The common lemma is Mensch. Storing the possibilities reflects the fact that the same full form can occur in different grammatical settings.
Lemma selection uses evidence in both directions. If a new form arrives with several candidates, the system checks whether a candidate matches a lemma already in the lexicon. The Länder example begins with Land and Landes already connected to Land. When Länder arrives with several possible lemmas, this established lemma can resolve the new entry. The result makes a useful analysis of one inflection available when the program encounters another.
The reverse update starts with a newly analyzed form that has a definite lemma. The system searches existing unresolved entries for that lemma among their candidates. In another example, Länder and Ländern have already been stored with competing possibilities. A subsequent analysis of Landes yields Land. Since Land appears among the candidates for both older forms, their entries can be revised together. The earlier contexts contributed usable candidates, and the later one supplies the evidence needed to choose.
Correcting an earlier mistake
An entry can also carry a wrong lemma because an earlier context was misread. The paper illustrates this with Jahr, Jahre and Jahren. The lexicon initially contains the correct entry for Jahr and treats Jahre as its own lemma. When Jahren is processed, its candidates include both Jahre and Jahr. The erroneous entry means the evidence in the lexicon at that point can support the wrong candidate as well as the right one.
A later occurrence of Jahre receives the correct analysis Jahr. That analysis replaces the erroneous lemma for Jahre and lets the program resolve Jahren to Jahr too. The mechanism depends on encountering a context that the rules can analyze more successfully. It gives the same document-processing procedure a way to add coverage when it sees a new form and improve an existing entry when clearer evidence arrives.
The automatic corrections and the priority given to the lexicon are connected. A stored answer has value precisely because it can use grammatical evidence from an earlier encounter. Giving it priority makes that earlier analysis effective even in a sentence where the immediate rules would make a different choice. The behavior also makes lexical mistakes consequential. An erroneous entry can supply the answer on repeated occurrences until a repair or a manual correction changes what is stored.
Experiments and results
Text collections and reference answers
The paper uses German newspaper articles, a book, manually annotated Wikipedia articles and a portion of Negra. The collections support different comparisons. Some have the authors’ own reference lemmas, while others have reference answers supplied by a tagger. Negra provides the annotated case and number information needed to assess the supporting grammatical analysis.
The Die Welt collection consists of 350 newspaper articles with 190,868 tokens and 40,104 nouns. The electronic book AvFIS contains 120,212 tokens and 22,039 nouns. The paper reports no manual lemma annotations for these collections. It uses the lemmas produced by TreeTagger’s internal dictionary as the reference. In both collections, TreeTagger supplies a lemma for 88% of nouns, and the comparison is confined to the nouns for which that reference exists. The standalone results table lists 35,531 nouns for Die Welt and 19,394 for AvFIS.
The German Wikipedia collection contains six articles, with 6580 tokens and 1536 nouns. They were manually annotated for lemma, case and number. Their role is to give the lemmatizer a test whose correct answers come from human linguistic annotation. The 20,000 tokens in the Negra test portion include 5023 nouns, with annotations for case and number. The paper uses this portion to evaluate the grammatical taggers and uses the Wikipedia annotations to assess these taggers on another collection as well.
TreeTagger therefore has two jobs in the study. Its part-of-speech output helps the lemmatizer find the categories used in the rules. Its dictionary output gives the authors reference lemmas in the newspaper and book experiments. For Wikipedia, the lemmatizer still uses the grammatical pipeline, but its answers are checked against the manual lemmas. This difference matters when comparing the accuracy values across collections.
Coverage and accuracy among answers
The results distinguish how frequently a system gives a lemma from how often the lemmas it gives match the reference. Coverage is the share of nouns in the evaluation set that receive an answer. Accuracy is conditional on an answer being supplied. The paper defines the latter measure as follows.
accuracy = n(correct) / n(lemmatized)
accuracy is the fraction of produced lemmas judged correct. n counts the occurrences described in parentheses. correct means a noun received a lemma that matches its reference, and lemmatized means the system produced a lemma for the noun. The equals sign defines the quantity, and / divides the count of correct outputs by the count of all outputs. The reference is TreeTagger’s lemma on the newspaper and book comparisons, and the manual lemma on Wikipedia.
The denominator matters whenever a configuration declines to analyze a noun. If a system answers only when it finds a dictionary entry, it can do well on the accuracy measure with many nouns still awaiting a lemma. Allowing the rules to answer additional cases can raise coverage while lowering accuracy among the expanded set of answers. Reporting the two measures together reveals the tradeoff.
The main comparisons run the contextual algorithm alone, use the lexicon alone, and let the components answer in combination. In the last setting, the rules can supply an answer for a form missing from the lexicon. A lexical answer takes precedence when both are available. The standalone configurations show what each component supplies independently, and the combined setting shows what the chosen priority policy yields on the same collections.
Results by collection
On Die Welt, the rules alone reach 49% coverage at 0.88 accuracy. The lexicon alone reaches 67% coverage at 0.96 accuracy. With both components, coverage reaches 76% and accuracy is 0.94. These are comparisons with TreeTagger on the eligible nouns. The newspaper documents were also used to generate the initial lexicon. The lookup figures therefore describe how well the acquired dictionary can be reused on material that contributed entries to it.
On AvFIS, the rules alone reach 40% coverage at 0.88 accuracy. The lexicon result in the main standalone comparison uses the dictionary extended with entries from the book. That setting reaches 70% coverage at 0.97 accuracy. The combined configuration reaches 73% coverage at 0.96 accuracy. Both configurations with lookup in this comparison have access to lexical evidence from the book, and the reference answers are again TreeTagger lemmas.
The manually annotated Wikipedia articles give a comparison against human judgments. The rules alone reach 49% coverage at 0.87 accuracy. The lexicon alone reaches 54% coverage at 0.97 accuracy. Together they reach 73% coverage at 0.93 accuracy. The combined configuration covers the largest share of nouns. The lexicon alone has the highest accuracy among its own answers.
Noun lemmatization coverage on manually annotated German Wikipedia
Combining the rules and the lexicon supplies lemmas for the largest share of nouns.
The numbers
| System or setting | coverage % |
|---|---|
| Contextual rules only | 49 |
| Lexicon lookup only | 54 |
| Rules and lexicon (this paper) | 73 |
Accuracy among returned lemmas on manually annotated German Wikipedia
Lexicon lookup yields the most accurate set of returned lemmas.
The numbers
| System or setting | accuracy |
|---|---|
| Contextual rules only | 0.87 |
| Lexicon lookup only (this paper) | 0.97 |
| Rules and lexicon | 0.93 |
The two Wikipedia charts describe different aspects of the same run configurations. The coverage chart treats every evaluated noun as an opportunity to answer. The accuracy chart considers the answers each configuration actually returns. The extra answers from the combined configuration thus change the population on which its accuracy is calculated. The charts show what a reader can expect from the configurations as used, with each one allowed to leave nouns unresolved.
What the book contributes to the lexicon
The book experiment also tests the dictionary before it has been extended with entries from the book. At that point, the lexicon generated from Die Welt supplies lemmas for 40% of the evaluated AvFIS nouns at an accuracy of 0.98. The authors then run the contextual algorithm on AvFIS and add its lexical evidence. Lookup on the same book afterward supplies lemmas for 70% of the evaluated nouns at 0.97 accuracy.
Lexicon lookup coverage on AvFIS before and after learning from the book
Adding entries from the book extends lookup coverage when the lexicon is used on it again.
The numbers
| System or setting | coverage % |
|---|---|
| Die Welt lexicon before processing AvFIS | 40 |
| Lexicon expanded using AvFIS (this paper) | 70 |
Both measurements use TreeTagger lemmas as the comparison. The first shows how the newspaper lexicon transfers to a book before adaptation. The second shows the effect of processing and then revisiting that book. The coverage improvement demonstrates that a pass of the contextual rules can make more forms accessible to future lookup on the same material. The change in accuracy describes the larger set of answers returned after that expansion.
The authors also track the growth of the lexicon as they process documents. At the point described in the evaluation, it contains 12,858 entries for 10,251 lemmas. These counts use different units because multiple observed forms can lead to the same lemma. The growth figure characterizes the accumulation of the dictionary. To judge its usefulness for any particular text, the coverage and accuracy measures remain necessary, since the text has to contain forms that the entries can help analyze.
Which component supplied the answers
The combined results partition coverage into nouns reached by the lexicon alone, nouns reached by the rules alone and nouns that both components can analyze. In Die Welt, the reported contributions in those categories are 27%, 10% and 39%. In AvFIS, the corresponding values are 33%, 3% and 37%. For the Wikipedia articles they are 24%, 19% and 30%. Here “alone” identifies the sole source of an answer within the combined run. The figures give shares of the evaluated nouns.
The division is especially informative for the book and Wikipedia comparisons. On the book, the adapted lexicon supplies an answer for much of the material the rules can already handle and also contributes many answers of its own. The Wikipedia results show a larger contribution from cases in which just the contextual rules supply an answer. That is the practical benefit of leaving the rules available when the dictionary has no entry.
For the cases in which both components supply a lemma, the paper reports agreement in 92% of cases and gives an accuracy of 0.98 in its account of the agreement. The agreement figure concerns correspondence between the components. The accuracy figure is reported in that overlap analysis, whose scope differs from the results for whole collections. The paper’s aggregate account leaves the correctness of competing answers in the disagreement cases less clear.
Results for case and number
For the case tagger, the paper reports 0.92 accuracy on the Negra training data, 0.8 on the Negra test data and 0.79 on Wikipedia. For the number tagger, it reports 0.93 on the Negra training data, 0.9 on its test data and 0.91 on Wikipedia. These scores measure the supporting grammatical labels. A correct case or number prediction supplies evidence to a lemmatization rule, while the final decision can still depend on an ending, a vowel alternation or a known lemma.
There is also a distinction between the score for a grammatical feature and the damage a mistake in that feature can cause. Case matters especially in rules where it determines which of two substantially different paths the system takes. For den Kindern, a dative prediction can trigger plural suffix removal, while an accusative prediction licenses retaining the surface form. Other occurrences can end up with the right lemma in spite of incomplete or imperfect grammatical information. The standalone tagger scores and the lemma results measure these different outcomes.
What the ablations show
The rules and the dictionary reach different nouns
The component comparison is the paper’s closest test of what each part adds. Running the rules alone measures how far the program can go with the immediate grammatical context and the permitted spelling operations. Lookup alone measures what the accumulated entries can supply for observed spellings. The combined setting measures the consequence of letting either source answer and giving the dictionary priority in overlapping cases.
The coverage results show that both components have something to contribute. A stored form can be easy to recognize even in a phrase sparse in grammatical clues. The rules can analyze a form that happens to be absent from storage, provided the current phrase or sentence is revealing enough. On the manually annotated articles, the reported 19% contribution from the rules alone and 24% from the lexicon alone show both routes in use within the combined configuration. The dictionary’s coverage on its own is therefore only part of what the system can achieve with it.
The accuracy results qualify that conclusion. The dictionary is more accurate among its answers in each standalone comparison, and the combined output is more accurate than the rules alone on each collection. The authors attribute the dictionary’s advantage to its ability to update and correct entries. The component comparison establishes the advantage for the lookup setting as a whole. It also changes which nouns receive answers, so the size of the advantage attributable specifically to correction remains open.
The book comparison isolates a different choice. Both evaluations use lookup, the same text and the same source of reference answers. What changes is whether the lexicon has been expanded using the book. The increase in coverage shows the benefit of adding lexical evidence from the evaluation material itself. Since the expansion and evaluation use the same book, the effect is evidence for adapting to that material. Its effect on a separate book remains an open question.
Much of the local context is too sparse
The paper counts noun phrases by whether a determiner and a modifier are present. In Negra, 25% have a determiner alone, 13% a modifier alone, 9% both, and 53% neither. In Die Welt, those categories account for 26%, 14%, 9% and 51%. In AvFIS the corresponding figures are 22%, 16%, 8% and 53%, and in Wikipedia they are 28%, 15%, 9% and 48%. These are descriptions of the available context, rather than scores for the rules.
A phrase containing both a determiner and a modifier can let the program combine the forms to settle a class. A noun with neither frequently leaves the program reliant on a fused preposition, subject agreement or lexical evidence. This helps explain why the algorithm alone supplies lemmas for just under half the evaluated nouns across the reported collections. The distribution also gives a reason to expect sparse coverage even if the rules for well-marked phrases perform reliably.
Some phrases with visible determiners are still ambiguous. The authors illustrate this with die Kinder der Frau in a sentence where both nouns occur. The procedure can leave their number unresolved in that setting. So the phrase counts tell the reader how frequently a clue is available to inspect, while the rules and ambiguity determine how frequently it is decisive.
The errors identify distinct failure paths
The authors classify 75% of errors in the algorithm-only evaluation as irregular morphological variation. Ländern illustrates the internal spelling problem. Stripping a dative plural ending can leave Länd, while the correct lemma is Land. Abgeordneter illustrates the problem of an adjective-derived noun whose singular spelling depends on its phrase. Retaining it under the ordinary singular rule leaves the wrong lemma. Arbeiter illustrates a third possibility. A plural cue can be correct and the stripping operation still wrong, since Arbeiter already has the required spelling.
The remaining algorithm errors are attributed to tagging mistakes, especially in case. The paper gives a case-tagging failure for den Kindern, where the intended dative is read as accusative. Under the den rule, the incorrect case prediction leads to a singular analysis, which in turn leaves the noun unaltered. This example traces a particular error from sentence analysis through class assignment to the observed lemma failure.
The lexical error analysis identifies a different risk. When the lexicon already knows Sieg, that existing lemma can make a candidate analysis of Sieger look attractive, even though Sieger is itself the correct lemma. Candidate matching provides evidence that a proposed base form exists. The relationship between two similar-looking words requires more evidence than existence alone. This explains how a mechanism that repairs Länder using Land can misfire when the base it finds belongs to a different noun.
These analyses account for particular successes and failures without estimating every mechanism’s independent contribution. The authors compare the main components and examine errors, but report no separate condition that removes only case prediction, only umlaut alternatives or only the backward revision of stored entries. The results describe the behavior of the assembled procedures. The examples reveal the specific decisions on which that behavior depends.
Limitations
Limits identified by the authors
The class rules leave many nouns unresolved. The authors attribute this to a combination of sparse phrase context, uncertain number and the limits of case as a clue. A case tagger can distinguish the accusative and dative readings relevant to den. In a different phrase, several numbers may remain possible even after the case is known. A contextual rule can only commit when its available clues support the feature distinction it needs.
Even a correctly chosen class can lead to the wrong spelling. The authors identify vowel alternations, adjective-derived nouns and identical singular and plural spellings as sources of error. In each situation, the grammatical classification and the lexical answer solve different parts of the problem. Additional candidate forms give the program a chance to recover through later lexical evidence. The quality of the recovery depends on which forms and contexts it encounters.
The authors also point to errors generated by the lexicon itself. Existing entries can lead the system to pick the wrong candidate, as with Sieger and Sieg. Earlier wrong entries can remain in storage when subsequent text provides too little evidence to overturn them. The authors expect some entries to require manual correction. Their design reduces the amount of work needed to assemble the resource while retaining a role for inspection and repair.
The combined system has trouble with borrowed forms whose inflections fall outside the German patterns implemented by the rules. The paper gives Lexika and its lemma Lexikon as an example. For these cases it suggests manual correction or dedicated heuristics. The scope of the implemented rules is German nouns. The authors leave systematic treatment of verbs, adjectives, adverbs and compound nouns to further work.
Limits of the evaluations
The accuracy figures for the newspaper and book measure agreement with TreeTagger where it has a lemma. The underlying correctness of that reference remains unknown in those comparisons. The design also leaves the remaining nouns outside that evaluation, including cases where TreeTagger’s dictionary cannot supply a reference. Performance on that part of the collection may differ from performance on the nouns included in the tables.
The manually annotated Wikipedia material offers an independent reference for lemmas and the grammatical tags. Its size and composition, six articles with 1536 nouns, limit how broadly its results can be generalized. The study supplies a useful comparison across selected kinds of text. Precision about other subject areas, annotation conventions or styles of writing would require evidence from those settings.
The newspaper lexicon is evaluated on the collection used to build it. The expanded book lexicon is evaluated on the book that supplies the expansion. Both settings are directly relevant when the goal is to build a resource for a particular collection. The pre-expansion book experiment gives a clearer measure of what the initial lexicon can do on different material. The study leaves the gain from book adaptation on a separate evaluation collection undetermined.
Coverage and accuracy are measured over noun occurrences. A form that repeats can contribute repeatedly to the results, and the paper also reports counts of stored entries and lemmas. These measures leave open how evenly successful analyses are distributed across frequently and infrequently observed forms. They also leave open how often correct lookup answers come from genuinely revised entries, compared with entries that were already correct when they were added.
The priority policy is another boundary on interpretation. The combined system always favors the lexicon when both components answer. The experiments report the performance of that policy, with a brief account of agreement between components. They leave open how a different priority rule would fare, especially for forms whose contextual and lexical analyses conflict. Similarly, the study’s case and number scores give aggregate accuracy. They leave the distribution of errors across individual grammatical categories and their exact impact on the final lemma results less fully characterized.
The authors describe the automatic lexicon’s rate of accumulation in comparison with manual dictionary work, while also acknowledging that the manual resource contains richer entries. The comparison concerns how quickly noun entries can be collected. It supplies limited evidence about equivalent editorial quality or the amount of human review needed to bring the resources to the same standard. The errors reported in the lexicon show why the count of entries and the work of validating them remain distinct.
What came after
The paper describes how the authors intended to extend the work beyond the evaluation. They were already using a crawler to collect texts from German news sources and process them for lexical entries. That feeds new observations into the same procedure used to build the lexicon from Die Welt. The authors also announced plans to release the software and a lexicon under open-source terms. The paper records the plan and the crawler’s use at the time of writing.
The proposed extensions include verbs, adjectives, adverbs and compound nouns. They carry forward the idea of combining context-sensitive analysis with a growing lexical resource. Each extension would need grammatical cues and spelling operations suited to the new forms. The reported noun experiments provide the starting point for that work. Its implementation and results remain unverified here.
No later citing studies are documented here. The paper itself therefore supplies the documented next steps, without establishing which subsequent systems adopted its class rules, candidate matching or lexical repair procedure.
Cite
Cite as Praharshana Perera and René Witte. 2005. A Self-Learning Context-Aware Lemmatizer for German. Proceedings of Human Language Technology Conference and Conference on Empirical Methods in Natural Language Processing.
@inproceedings{perera2005self,
title = {{A Self-Learning Context-Aware Lemmatizer for German}},
author = {Praharshana Perera and René Witte},
booktitle = {Proceedings of Human Language Technology Conference and Conference on Empirical Methods in Natural Language Processing},
year = {2005},
doi = {10.3115/1220575.1220655},
url = {https://doi.org/10.3115/1220575.1220655}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/perera-2005-self-learning-context-aware-lemmatizer/