Elamur Research

Lexicon-based Sentiment Analysis in German: Systematic Evaluation of Resources and Preprocessing Techniques

Paper · 2021 · Jakob Fehle, Thomas Schmidt and Christian Wolff

Summary

A sentiment dictionary can tell you that a German word is usually positive or negative. To classify a passage, though, a system first has to recognize the word in the form the writer used, then decide how much weight it deserves alongside the rest of the passage. The authors compare 19 dictionaries and 20 annotated corpora to find out which of those decisions matter most for German sentiment analysis. The corpora include literary writing, news-related material, reviews, social media, and collections that mix sources. The task is to assign a positive or negative label to each text unit that human annotators classified in one of those categories.

Without optional preprocessing or scoring rules, the dictionaries average 45% in macro F1 across the corpora. Macro F1 gives the positive and negative classes equal weight, so strong performance on the more frequent class cannot carry the score on its own. GermanPolarityClues leads the unmodified comparison at 60%. The highest result after configuration comes from SentiMerge, at 67.3% mean macro F1 across the corpora. The paper places the best configuration at around 67% on the cross-corpus averages for both macro F1 and accuracy. SentiWS also ranks among the stronger resources. Product reviews generally yield better results than social media, and dictionaries developed for a particular collection can do especially well on that collection.

The most dependable improvement comes from putting the dictionary and the text into comparable forms. Stemming strips parts of words to produce a common lookup form. Lemmatization tries to recover the dictionary form. Applied on their own, the best tested implementations improve average macro F1 by 6.3% and 5.6%, respectively, on the paper’s difference scale. Preserving graded sentiment scores also improves the average for every dictionary that offers them. Emoticons help especially on social media. Lowercasing and stop-word removal depend more on the surrounding configuration, and the tested rules for negation and for strengthening or weakening a sentiment contribute little to the overall average.

The comparison shows how much a dictionary’s apparent quality depends on the way it is used. SentiMerge’s best configuration uses lemmatization, lowercasing, stop-word removal, emoticons, and graded scores. Its improvement over its own unmodified result is reported as 16.5%. That gain comes from the configuration as a whole. The individual comparisons show where the evidence is strongest, and the spread across collections shows how much uncertainty remains when choosing a setup for an unfamiliar kind of text.

Deep dive: Lexicon-based Sentiment Analysis in German: Systematic Evaluation of Resources and Preprocessing Techniques

A German sentiment analysis study compares dictionaries across domains and tests how word forms, emoticons, and scoring rules affect accuracy. · about 34 minutes to read

The problem and its context

A dictionary supplies the evidence

A passage can express approval or disapproval without stating either directly. The task studied here asks a classifier to infer which of those directions the passage takes. The unit can vary with the collection. The method needs a piece of German text to score and a polarity label against which to check the prediction. That makes the task a form of text classification, with the annotation of the unit determining what counts as a correct answer.

In a dictionary-based approach, the first evidence comes from a resource prepared in advance. An entry might say that a word carries positive or negative sentiment. Some dictionaries also say how strongly it carries that sentiment. Researchers can create such resources through expert judgment, crowdsourcing, or procedures that automate part of the work. A lexicon assembled by any of these routes is usable wherever its entries can be matched to text, though its resemblance to the vocabulary of the target collection will vary.

Matching is only the beginning. A passage may contain words pointing in opposite directions. It may also contain an inflected form whose uninflected counterpart appears in the dictionary, or a negation that changes how a favorable word should be read. Each difficulty belongs to a different part of the procedure. Word-form processing decides what can be found. Dictionary scores decide how much each match contributes. Context rules decide whether a contribution should change in the presence of surrounding words. The study compares these decisions within a common classification procedure.

The paper uses Lexicon-Based Methods for Sentiment Analysis as an example of the general approach. A text obtains positive and negative contributions from recognized expressions. Their balance determines its polarity, with a tie corresponding to a neutral output in the underlying scoring rule. This design makes the source of a decision comparatively easy to inspect. A reader can trace a prediction back to the expressions that matched and the adjustments applied to them.

Earlier work also gives reasons to doubt that a dictionary score will always travel intact from the entry to its use in a sentence. The work the authors cite on recognizing contextual polarity concerns polarity at the phrase level. For the experiment here, the practical question is which small adjustments can improve a dictionary system without requiring it to resolve the meaning of the entire passage. A rule can use nearby negation, for example, while leaving its precise grammatical scope unexamined.

Why compare dictionaries across domains?

The paper distinguishes dictionary rules from supervised machine learning. A supervised classifier relies on labeled examples to learn how to predict polarity. As the authors describe the field, such approaches had come to dominate many language-processing tasks and generally achieved stronger results in sentiment classification. Their introduction treats dictionary systems as a common point of comparison for that work. Their own experiment concentrates on choices within the dictionary approach.

The availability of annotations changes which approach is practical. A researcher may have a body of text worth studying without having a large, suitable collection of examples labeled for training. A dictionary can still be applied in that situation. The authors also point to its speed and relative ease of interpretation. They describe uses in the digital humanities and computational literary studies, where researchers have applied dictionary methods to texts such as historical German plays. The value of a reusable resource in those settings depends on knowing how it behaves beyond the material on which it was developed.

The authors describe previous work in English that compared sentiment dictionaries across collections, as well as broader surveys that included dictionary and supervised approaches. Those studies gave English-language researchers some basis for choosing resources and preprocessing. German already had dictionaries and annotated corpora. What the authors found missing was a comparably systematic assessment that treated both kinds of resource together. A strong result for a dictionary on the collection associated with its creation would give limited guidance to someone applying it to social media or to fiction.

Named resources in the paper illustrate the distinction between what goes into a classifier and what is used to judge it. SentiWS provides German polarity entries for lookup, including inflected forms. MLSA supplies examples with linguistic annotation against which a prediction can be assessed. A resource can be useful on either side of that distinction even when it is a poor match for a particular experiment. A corpus may have reliable labels for a narrow kind of text, while a broad dictionary may cover vocabulary that seldom occurs in it.

Where German changes the lookup problem

German morphology creates a straightforward obstacle. A dictionary can record a base form while the text uses an inflected word form. Exact matching then misses evidence that would be visible to a person reading the passage. A resource that lists some inflections reduces that problem for those entries. A general rule for reducing forms can help wherever comparable entries are missing, provided it does not merge words whose sentiment should remain distinct.

Capitalization poses a different problem. In German, a capital letter can help distinguish a noun or nominalization from another use of the same letters. The paper contrasts Würde, the noun meaning dignity, with würde, an auxiliary form corresponding to “would.” Some dictionaries assign positive sentiment to the noun. Lowercasing makes lookup tolerant of inconsistent spelling and capitalization, which the authors highlight in social media. It also removes the clue that can keep the auxiliary from inheriting the noun’s sentiment. The decision matters even when the lexicon entries themselves are unchanged.

Other choices reflect the conventions of a domain. Emoticons can signal how a message is meant to be read. Short informal posts may use them where another kind of writing would express an attitude in words. The authors draw on earlier studies of emoticons and on Twitter as a Corpus for Sentiment Analysis and Opinion Mining, which also informs the treatment of Twitter-specific material. That earlier work gives a reason to test these signs. Comparing several domains makes it possible to see whether any gain extends beyond the kinds of text where the signs are expected.

The study therefore asks a narrower question than which technique is best for all German sentiment analysis. Given a word-based classifier, what can be gained by changing the resource it consults, the form of the items it looks up, or the rules it uses to combine their evidence? The breadth of the corpus comparison is important because the answer can depend on both the vocabulary in the passage and the kind of polarity the annotators were asked to identify.

The method, step by step

Collecting the resources and defining the task

The authors gathered dictionaries and corpora through searches of general publication venues and sources specific to German language processing. They searched the ACM Digital Library, the ACL Anthology, and other publication platforms, and looked at material associated with KONVENS and GermEval. They considered corpora that were publicly available or accessible on request. The collection targets polarity. Resources built specifically to identify emotions fall outside that scope.

The resulting 19 dictionary resources vary in size, construction, and the kind of score stored for an entry. Some have a resource name such as SentiMerge. Others are identified by the study’s abbreviation, which pairs a number with an author’s name. Some share entries or draw partly on existing resources. The two Siegel variants focus on vocabulary from different datasets, Pressrelations and MLSA. The GermanSentiSpin entries include versions identified with continuous or dichotomous sentiment. These relationships matter when reading a comparison because separate rows can represent related vocabulary or versions of a resource.

The 20 corpora provide the annotated text units. The authors group them by the kind of material they contain. Those groups include literary and historical text, mixed material, news-related text, product reviews, and social media. A corpus identifier combines a domain code with the author name. That identifier helps distinguish a corpus with an unfamiliar short name from an associated lexicon, which may carry the same author name but plays a different role in the experiment.

The classifier works on the units that carry positive or negative reference labels. Neutral reference information is set aside. This choice defines the evaluation before any dictionary is applied. A unit accepted into the comparison always has a positive or negative reference answer. If the dictionary assigns it a score of 0, the scoring procedure has produced a neutral result, which the evaluation counts as an error. A failure to find evidence can therefore hurt the score, as can a balance of opposing contributions.

How a dictionary assigns polarity to a text unit

The steps in order.

How a dictionary assigns polarity to a text unitStep 1: Select units with positive or negative annotations1. Select units with positive or negative annotationsStep 2: Clean text using the shared normalization rules2. Clean text using the shared normalization rulesStep 3: Prepare text and lexicon under the chosen settings3. Prepare text and lexicon under the chosen settingsStep 4: Find eligible word and emoticon matches4. Find eligible word and emoticon matchesStep 5: Adjust matched scores using enabled context rules5. Adjust matched scores using enabled context rulesStep 6: Sum the signed contributions6. Sum the signed contributionsStep 7: Compare the predicted polarity with the annotation7. Compare the predicted polarity with the annotation

Cleaning the text before comparison

The authors first normalize text across the corpora. Their shared cleaning removes nonalphabetic material such as numbers and special characters, tidies spacing, and removes links, Twitter user names, and platform-specific markers such as RT. They report no relevant influence from these general steps on sentiment-bearing words or on dictionary-based scoring. The cleaning supplies the common starting point against which optional changes are compared.

The shared cleaning and the optional treatment of emoticons have different roles. Cleaning removes unwanted material from general text processing. The emoticon condition adds recognized signs as sentiment evidence. Conceptually, a recognized emoticon has to remain available to the condition in which the authors score it. The effective change is whether that sign enters the sentiment calculation. The paper describes the cleaning rules and the emoticon resource separately, without specifying a comprehensive execution order for every combination of transformations.

For an ordinary word, the basic operation is a lookup. The procedure finds a match between a word in the text and an entry in the selected dictionary. Under the unmodified setting, the match does not require any of the optional transformations or extra grammatical information. Under other settings, the form used for lookup or the conditions a candidate must meet can change. Those decisions determine which pieces of evidence can reach the score.

Making inflected forms comparable

A lemma is the base form under which an inflected word can be identified. Lemmatization attempts to find that form. As the paper explains, one implementation can use surrounding words and sentence order, while another can draw on a dictionary of forms. Stemming approaches the lookup problem through rules that strip pieces from a word. The resulting stem serves as a common key even when it would be unsuitable as a dictionary headword.

The authors test TreeTagger and Inverse Wiktionary for Natural Language Processing, abbreviated IWNLP, as lemmatizers. They test Cistem and Snowball Porter as stemmers. For each of these conditions, they apply the chosen operation to both the text and the lexicon before matching. Doing so makes the comparison symmetric. Even if a lexicon contains a mixture of base forms and inflections, its entries pass through the same kind of reduction as the words in the passage.

This changes the coverage of the lookup. Suppose a passage includes an inflected word and the dictionary has the base form. A reduction step can make them comparable and bring a previously missed contribution into the total. It can also make distinct forms coincide. The experiment measures the net consequence for polarity assignments. A reduction tool can work well for this purpose even when its individual outputs would be unsuitable for an application that requires linguistically correct lemmas.

The same distinction explains why the authors compare tools in the sentiment pipeline. The target is the eventual polarity label. A conventional evaluation of lemmatization would score whether the tool recovers the intended base form for each word. This study scores whether a passage ends up on the correct side of the polarity boundary. Errors or improvements at the word level matter to the reported score insofar as they change the evidence and the resulting classification.

Choosing when a spelling counts as a match

Part-of-speech tagging assigns grammatical categories to words. A lexicon entry with the same letters as a word in the passage may nonetheless correspond to a different grammatical use and a different sentiment. When this option is enabled, a matching spelling must also pass a category check. The authors obtain categories for the text and the dictionary, using information already available for the few dictionaries that contain it.

The tested taggers are TreeTagger and Stanza. The procedure reduces the tags to the categories most relevant to the dictionaries: nouns, adjectives, verbs, and adverbs. The matching rule then checks the normalized category before a word is counted. This is an additional condition on lookup. It can reject a misleading match, or it can reject a useful match if the categories assigned on the two sides disagree. Its success depends on how well the restriction removes ambiguity without cutting off genuine evidence.

Lowercasing offers an alternative way to change the matching condition. It changes the spelling keys in the text and the lexicon so that a difference in capitalization alone does not prevent a match. The Würde example illustrates the tradeoff at the level of individual matches. Lowercasing could recover an instance of the noun typed with a lower-case letter. Under the same setting, the auxiliary could acquire a positive match from that noun entry. Either event can affect the text score if the match changes the balance of evidence.

Stop-word filtering changes which words remain eligible for lookup. The authors use a 231-entry German list from Solr. The list contains common words of the kinds often removed in language processing, including articles, prepositions, conjunctions, and pronouns. When the option is enabled, listed words are ignored in the text and in the lexicon. A function word already absent from the dictionary could not have contributed a direct dictionary score. Filtering has a more immediate scoring effect where a resource includes a common word as a polarity entry.

This rationale is particularly relevant for resources built with automatic or partly automatic procedures. The paper gives examples of common grammatical words appearing in a GermanSentiSpin resource. Such entries can inject a sentiment contribution into a passage that happens to use the word. Removing them is a broad safeguard based on a general list. The evaluation asks whether this particular list improves the final decisions across the resources, including those where nearly all filtered words would have been ignored during lookup anyway.

Representing the weight of a match

A matched entry can supply direction alone or direction together with strength. In the direction-only condition, a positive match contributes +1 and a negative match contributes -1. Every positive match starts with the same value, and the same is true within the negative class. In the graded condition, the starting contribution is the continuous value stored by the dictionary. A strongly weighted entry can then matter more than a weakly weighted entry of the same sign.

The authors evaluate both representations for the 8 resources that offer continuous values. For the other resources, the experiment has only the dichotomous version to use. Comparing both representations of an eligible resource tests the effect of preserving score information that would otherwise be collapsed to a sign. It differs from comparing two unrelated dictionaries, where the entries and the way polarity was assigned may also change.

Emoticons enter as additional vocabulary. The authors use a 232-entry list derived from SCARE, the app-review corpus included among their resources. A positive emoticon has a score of +1, and a negative one has a score of -1. These contributions can accompany ordinary words or supply evidence when the words give little indication of polarity. The sign operates within the same total used for other matches.

This design treats a recognized emoticon as a direct indication of sentiment. Its value is added to the textual evidence under the selected setup. If a passage otherwise produces a tie, an emoticon can decide the sign. If the passage already has stronger evidence in the same direction, the numerical score can change while the predicted label stays the same. The benefit assigned to the option in the experiments comes from changes in classification, regardless of how many additional emoticons were recognized.

Changing scores in context

A valence shifter is an expression that changes the polarity associated with a nearby word. The paper uses the example of nicht before glücklich. The dictionary normally treats glücklich, meaning happy, as positive. In the phrase with nicht, the positive reading would be misleading. The rule under evaluation combines a fixed four-word window extending in both directions with a list of 22 German negations. A listed negation reverses the sign of sentiment contributions within the window.

The reversal used in that rule can be written as follows.

v′ = −v

Here v is the sentiment value of an eligible match before the reversal, and v′ is the value after it. The minus sign reverses the direction of the contribution, and the equals sign gives the result of the assignment. The rule applies only to matches the window places within reach of a listed valence shifter. It uses the position of the words as evidence about which scores to reverse.

A separate option handles expressions that strengthen or weaken sentiment. The paper gives sehr, meaning very, and wenig, meaning little, as examples. The authors draw on a list of German intensifiers and diminishers totaling 78 entries. The rule considers a window of 2 words preceding the sentiment-bearing word. An applicable modifier scales the score of the sentiment match by its listed value.

v′ = m × v

Here v is the score to be adjusted, m is the multiplier assigned to the applicable intensifier or diminisher, and v′ is the adjusted score. The multiplication sign means the contribution is scaled by that multiplier. The equals sign identifies the resulting value. The paper describes the window and the source of the entries. The rule’s predictions depend on whether the position-based window connects the modifier to the word it affects.

The distinction between reversal and scaling matters for a binary decision. A correct reversal on a single decisive match can change a prediction immediately. Correctly increasing an already positive score leaves a positive label intact unless the adjustment changes the balance against negative evidence elsewhere in the unit. In both cases, the benchmark rewards a better final label. It does not score the individual interpretation of a negation or intensifier as a separate task.

From contributions to a label

For each text unit, the calculation combines the matched, signed contributions. The paper explains the operation as balancing positive and negative evidence. In notation, the verbal rule amounts to the following sum.

S = ∑ᵢ∈ᴵ vᵢ

S is the total sentiment score for the text unit. I is the set of match occurrences that enter the calculation, and i identifies a particular occurrence in that set. The symbol ∈ indicates that i belongs to I. The symbol ∑ instructs the reader to sum over those occurrences. Each vᵢ is the signed contribution of occurrence i after any enabled score adjustments, and the equals sign defines S as their total. A repeated matching word can contribute through its occurrences. A word without an eligible match supplies no contribution.

The sign of S determines the label. A positive total gives a positive prediction, and a negative total gives a negative prediction. A total of 0 is a neutral output and counts as a false prediction on the binary task. The score can be zero because the lexicon found nothing to count or because contributions canceled. Those routes produce the same evaluated outcome. The scoring procedure does not need a different label to mark the reason for a tie.

The paper compares configurations by crossing the corpus and lexicon choices with the optional operations. Many operations are switches. Tagging and word-form reduction also allow a choice of implementation. The annotations serve to evaluate the resulting predictions and to identify the strongest tested configurations. The scoring rule itself uses the lexicon values and the specified operations, without fitting a new supervised classifier for each corpus. The authors make the detailed comparisons available in a companion GitHub repository, including results across configurations, metrics, and domains.

Experiments and results

Corpora of different sizes and different kinds

The evaluation includes three literary corpora, three mixed collections, three news-related corpora, five review collections, and six social media collections. The literary group includes the German Novel Dataset and corpora of historical plays. The mixed group includes MLSA and GermEval 2017. Among the review collections are USAGE, SCARE, and SentiLitKrit. The social media group includes PotTS and the German Irony Corpus, as well as SB10k, introduced in A Twitter Corpus and Benchmark Resources for German Sentiment Analysis.

The positive and negative units differ markedly in number across the datasets. The German Novel Dataset has 164 units in the binary inventory, with 75 positive and 89 negative. The SCARE review collection has 604,546, with 418,880 positive and 185,666 negative. Both contribute a single corpus-level score to a cross-corpus mean. The researchers therefore assess how well a setup works across datasets, while keeping the largest available dataset from determining most of the aggregate.

Class balance also varies independently of corpus size. The news-related NA03-Schabus collection, labeled One Million Posts Corpus in the resource inventory, contributes 43 positive and 1,606 negative units. In USAGE, the direction of the imbalance reverses, with 506 positive and 50 negative units. GermEval 2017 has 1,537 positive and 6,887 negative units in the binary inventory. A classifier could be accurate on many examples in some of these collections by favoring the larger class. A comparison of how well it handles both classes needs a metric that makes that behavior visible.

Even collections in the same domain represent different sampling and annotation decisions. The corpus inventory gives SentiLitKrit 1,008 binary units, with 718 positive and 290 negative. The review collection RE05-Prettenhofer contributes 296,072 units, with 159,315 positive and 136,757 negative. The domain label groups them by source material. It does not make their annotations interchangeable or imply that texts have been segmented into the same kind of unit. The experimental matrix preserves each collection’s reference labels and reports its result individually before aggregation.

Metrics and points of comparison

The authors emphasize macro F1. For each class, precision asks how many predictions of that class agree with the reference. Recall asks how many of the reference examples belonging to the class the classifier retrieves. F1 combines precision and recall so that weakness in either bears on the class score. Macro F1 averages the positive and negative class scores with equal weight. Accuracy measures the share of correctly classified units overall, so the more common class has more influence on it when the labels are imbalanced.

There is a further averaging decision after each corpus is evaluated. The authors take the arithmetic mean of the corpus-level results without weighting by corpus size. A successful configuration must therefore accumulate good scores across collections. Its mean is not the F1 that would result from pooling the predictions and labels for all text units. This matters for interpreting the headline result because the large review corpora and the much smaller literary or news-related corpora receive equal weight in the mean.

The paper places random and majority-class baselines for most corpora around 50-70%. A random baseline gives a reference for guessing, while a majority baseline gives a reference for assigning the most common label. These are corpus-dependent comparisons. The authors use a different baseline to measure the effect of preprocessing: the mean macro F1 of the dictionary pipeline with all optional changes switched off. That common starting point is 44.8% for the general modifier comparisons. The initial overview describes the unmodified average as 45%.

For continuous scores, the appropriate unmodified baseline comes from the eligible resources alone. It is 43.3% mean macro F1 for the 8 dictionaries that make the graded comparison possible. The distinction is important because the other dictionaries cannot supply a continuous score for the experiment. Using the overall baseline for that contrast would mix a change in score representation with a change in which dictionaries enter the average.

The numbers for the best combinations summarize the search over the evaluated configurations. The authors score the lexicons and combinations across the corpora and report the best setting found for each lexicon, along with its average over settings. There is no separately reported held-out split for selecting a setting and then estimating how that selection performs on an unseen collection. The best configuration and the average configuration answer different questions about the same set of evaluations.

What the lexicons achieve before optional changes

GermanPolarityClues, identified as 13-Waltinger, reaches 60% mean macro F1 across the 20 corpora with the optional modifications switched off. The political-language dictionary 10-Rauh follows at 57%, and the Multilingual Sentiment Lexicon reaches 53%. SentiWS has 52%, while SentiMerge has 51%. These are averages over corpora for particular dictionaries. The 45% aggregate includes the much weaker resources as well.

Leading unmodified dictionaries by mean macro F1 across the German corpora

GermanPolarityClues leads the comparison with all optional changes switched off.

Leading unmodified dictionaries by mean macro F1 across the German corporaGermanPolarityClues (13-Waltinger) (this paper): 60GermanPolarityClues (13-Waltinger) (thispaper)60Political-language dictionary (10-Rauh): 57Political-language dictionary (10-Rauh)57Multilingual Sentiment Lexicon (19-Chen): 53Multilingual Sentiment Lexicon (19-Chen)53SentiWS (01-Remus): 52SentiWS (01-Remus)52SentiMerge (04-Emerson): 51SentiMerge (04-Emerson)51
The numbers
System or settingmacro F1 %
GermanPolarityClues (13-Waltinger) (this paper)60
Political-language dictionary (10-Rauh)57
Multilingual Sentiment Lexicon (19-Chen)53
SentiWS (01-Remus)52
SentiMerge (04-Emerson)51

The unmodified results differ by domain. In the review group, the reported average F1 scores for the corpora are between 46 and 58%. For the social media group, they are between 36-46%. The paper also reports variation of around 10-20% for some lexicons across the corpus combinations. Social media is a relatively difficult group on this measure. The domain pattern gives a sense of where the dictionaries were more successful as a group, while leaving considerable room for a particular resource to depart from that pattern.

A strong local result shows how different the picture can look for a specific pairing. The USAGE Sentiment Lexicon, 15-Klinger, achieves 84% macro F1 on RE01-Klinger without the optional modifiers. The authors describe it as a dictionary designed for the task on that corpus. On the news-related NA02-Ploch collection, GermanPolarityClues reaches 82% and 10-Rauh reaches 79% in the same unmodified comparison. These numbers refer to individual corpus–lexicon pairings. Each of the dictionary averages in the chart includes results on the other corpora as well.

The USAGE pairing also illustrates why a high individual score and a high general average answer distinct questions. A resource developed with particular material in view can contain unusually relevant evidence for it. The cross-corpus ranking rewards performance that travels across the collections. The paper includes the local scores to show how strongly the choice of corpus can affect the apparent value of a lexicon.

With the preprocessing and scoring options available, SentiMerge achieves 67.3% mean macro F1 in its best configuration across the corpora. Its score averaged over the tested settings with continuous values is 62.0%. The winning setup applies IWNLP lemmatization, lowercasing, stop-word removal, emoticon scoring, and continuous dictionary values. Its other optional changes are off. The authors report a 16.5% improvement over the unmodified SentiMerge baseline on their F1 difference scale.

SentiWS and 10-Rauh each achieve 63.6% mean macro F1 in their own best settings. GermanPolarityClues reaches 63.4%. The best score for 02-Clematide is 61.9%, while continuous GermanSentiSpin and the Multilingual Sentiment Lexicon reach 60.6% and 60.5%, respectively. The best score in each case comes from searching the settings for that dictionary. The dictionaries therefore need not share the same combination of operations for their entries in this comparison.

Best tested configurations by mean macro F1 across the German corpora

SentiMerge attains the highest mean after each dictionary is given its own best tested settings.

Best tested configurations by mean macro F1 across the German corporaSentiMerge (04-Emerson) (this paper): 67.3SentiMerge (04-Emerson) (this paper)67.3SentiWS (01-Remus): 63.6SentiWS (01-Remus)63.6Political-language dictionary (10-Rauh): 63.6Political-language dictionary (10-Rauh)63.6GermanPolarityClues (13-Waltinger): 63.4GermanPolarityClues (13-Waltinger)63.4German lexicon (02-Clematide): 61.9German lexicon (02-Clematide)61.9GermanSentiSpin (08-Takamura-c): 60.6GermanSentiSpin (08-Takamura-c)60.6Multilingual Sentiment Lexicon (19-Chen): 60.5Multilingual Sentiment Lexicon (19-Chen)60.5
The numbers
System or settingmacro F1 %
SentiMerge (04-Emerson) (this paper)67.3
SentiWS (01-Remus)63.6
Political-language dictionary (10-Rauh)63.6
GermanPolarityClues (13-Waltinger)63.4
German lexicon (02-Clematide)61.9
GermanSentiSpin (08-Takamura-c)60.6
Multilingual Sentiment Lexicon (19-Chen)60.5

The results averaged over configurations give another view of how sensitive a resource is to the selection. SentiWS records 60.1% for its continuous settings, and 10-Rauh reaches 58.5%. GermanPolarityClues has an across-setting average of 55.2% in spite of placing first when the optional changes are all off. The average describes the results of the particular settings tested and gives those settings the weight implied by the experiment. A highest observed score describes what was achieved with a specific choice. Both are relevant when a dictionary’s initial ranking changes after preprocessing.

The abstract also summarizes the strongest configuration as reaching around 67% on the accuracy and F1 averages over the corpora. The detailed result highlighted in the main comparison is the 67.3% mean macro F1 for SentiMerge. Accuracy and macro F1 capture different aspects of the predictions, particularly under the imbalances in the corpus inventory. The paper’s approximate characterization of both metrics gives context for the more precise macro F1 value.

What the ablations show

Switching an option on in two settings

The authors use two controlled comparisons to assess each modification. In the first, they start with the unmodified pipeline and switch on a single option. They compare the resulting mean with the appropriate baseline. The paper calls this the raw F1 delta. It answers a practical question about what happens when that technique is the only change to the basic lookup-and-score procedure.

In the second comparison, the authors evaluate the option in the presence of other changes. For a given combination of the other settings, they compare runs with the option enabled and disabled. They average the differences over the combinations. The paper calls this the combination F1 delta. It estimates how much the option contributes on average when the rest of the procedure varies. A small mean can arise from small changes throughout or from improvements and declines that offset each other.

These comparisons make strong and weak dependencies easier to distinguish. An option that helps alone and continues to help in combinations has evidence in both settings. An option that helps alone but contributes little when other changes are active may recover evidence another operation already recovers. The analysis can reveal such dependence in the average. It does not, on its own, locate the passages responsible or establish which other option accounts for the dependence.

Word-form reduction has the clearest effect

As a single change, Cistem stemming produces 51.2% mean macro F1 across lexicons and corpora, with a reported raw delta of 6.3%. Snowball stemming produces 50.8%, with a raw delta of 6.0%. For lemmatization, the IWNLP setting reaches 50.5%, with a delta of 5.6%, and the TreeTagger setting reaches 50.4%, with a delta of 5.5%. The appendix reports the means and the deltas at their displayed precision, so the deltas are best read as their own reported measurements.

Word-form reduction and grammatical tagging by mean macro F1 across lexicons and corpora

Cistem stemming leads the single-change comparison, and both lemmatizers also improve on the unmodified pipeline.

Word-form reduction and grammatical tagging by mean macro F1 across lexicons and corporaUnmodified pipeline: 44.8Unmodified pipeline44.8Cistem stemming (this paper): 51.2Cistem stemming (this paper)51.2Snowball stemming: 50.8Snowball stemming50.8IWNLP lemmatization: 50.5IWNLP lemmatization50.5TreeTagger lemmatization: 50.4TreeTagger lemmatization50.4TreeTagger part-of-speech tagging: 43.1TreeTagger part-of-speech tagging43.1Stanza part-of-speech tagging: 43.1Stanza part-of-speech tagging43.1
The numbers
System or settingmacro F1 %
Unmodified pipeline44.8
Cistem stemming (this paper)51.2
Snowball stemming50.8
IWNLP lemmatization50.5
TreeTagger lemmatization50.4
TreeTagger part-of-speech tagging43.1
Stanza part-of-speech tagging43.1

The same pattern survives when the other options are allowed to vary. The appendix gives a combination delta of 5.0 for Cistem and 4.7 for Snowball, on the paper’s F1 difference scale. The lemmatization values are 5.1 for TreeTagger and 5.0 for IWNLP. The tool with the highest mean in isolation can differ from the tool with the greatest paired contribution over other settings. The differences between tools are small compared with the improvement seen for each kind of word-form reduction.

This pattern is consistent with the explanation that many relevant inflections otherwise fail to meet an available dictionary entry. Both techniques change the form on which lookup depends, even though they use different methods for obtaining that form. Both help as a single change and in the presence of the other modifications. The paper also reports that a form of word reduction appears in every lexicon’s best combination. The benchmark measures improved final decisions and leaves the exact number and nature of the recovered matches unquantified.

Part-of-speech tagging has a different effect. Both taggers give an isolated mean macro F1 of 43.1% at the precision reported in the appendix. The main discussion gives the representative isolated effect as -1.7% and the representative combination effect as -1.5%. The grammatical restriction therefore lowers the overall scores slightly. It appears in the best combination for 10-Rauh, showing that the average result can coexist with a resource for which the strongest tested setup includes tags.

This comparison distinguishes making a match possible from requiring additional evidence before accepting one. Stemming and lemmatization can bring more occurrences into reach of the dictionary. The tag check restricts occurrences that have already passed a spelling comparison. A reduction in the final score can arise if the check excludes useful evidence or if the ambiguities it resolves rarely affected the sign of the total. The paper reports the outcome of the restriction, without tracing individual errors to those possibilities.

Emoticons help where the text uses them

Applying only the emoticon option raises the overall mean to 47.8% macro F1, with a reported raw delta of 2.9. Its combination delta is 1.7. The authors locate much of the benefit in the social media group, where the improvement in macro F1 is 8.8% points when the comparison is restricted to the social media corpora. This domain result is more informative about the option’s natural use than the more modest mean across all collections.

The emoticon setting also appears in the best configuration of each lexicon. That observation concerns where the maxima occur in the configuration search. The paired deltas give more direct evidence that enabling emoticons helps on average. Taken together, the results show that adding a separate source of polarity evidence can be worthwhile even when other operations are already running. The magnitude depends on how often the convention occurs and how often it matters to the label of the unit.

The rule evaluates a specific list and treats its entries as signed contributions. It establishes that this form of processing can improve the performance of the benchmark, particularly for social media. Its numbers combine whatever types of cases changed, including cases where emoticons supplied the only evidence and cases where they changed the balance of signs already present. The aggregate analysis leaves their relative frequency open.

Lowercasing and filtering depend on the combination

Lowercasing has a raw delta of 2.8 and a combination delta of 0.2. The isolated condition gives 47.6% mean macro F1. The drop in the average gain when other options are active implies that the isolated improvement is a poor guide to its contribution in a fuller pipeline. For example, lowercasing and reduction can each change whether forms are comparable. The reported averages show the broader dependence on configuration without identifying the contribution of every pair of operations.

Stop-word removal gives 44.5% mean macro F1 when added by itself. Its raw delta is -0.3 and its combination delta is -0.2. That gives little evidence for using the Solr list as a universal filter in this pipeline. Yet stop-word removal is present in SentiMerge’s top-scoring setting. The selected setting describes one successful combination, whose elements were judged together. The marginal comparisons describe the consequences of the stop list across a much wider range of dictionaries and settings.

The same reasoning applies to lowercasing in the winning SentiMerge configuration. Its presence matters for reproducing the reported result. The result alone does not tell a reader how well the same setup would do if only lowercasing were disabled. The overall paired comparisons provide an average across many such switches. Because dictionary entries, capitalization, and inflections interact at lookup, the average and the best configuration answer different questions.

Graded scores improve the eligible resources

The continuous-score comparison begins at 43.3% mean macro F1 for the eligible dictionaries. Keeping the continuous values gives a reported improvement of 3.4% on the raw F1 difference scale. The authors find an improvement for each of the 8 eligible lexicons relative to its dichotomous counterpart. This is evidence within resources, where some of the lexical differences that complicate comparisons across independently constructed dictionaries are held fixed.

SentiMerge’s averages over settings illustrate the result. Its continuous version averages 62.0% macro F1 across the tested combinations, while its binary version averages 55.1%. SentiWS has corresponding means of 60.1% and 55.1%. For 02-Clematide, the values are 56.5% and 54.6%. These numbers compare means over tested configurations. They address a different contrast from the single-change delta on the restricted baseline.

Graded scores can matter when a text contains conflicting evidence. With equal starting magnitudes, the balance depends on how many contributions of each sign survive the other operations. With graded values, the weighting assigned by the resource can make stronger expressions count more heavily. The aggregate improvements show that preserving this information benefited classification for the resources that already included it. Establishing why the weights help would require examining the predictions that change when the scores are converted to signs.

The tested context windows change little in aggregate

Valence shifting has a raw delta of 0.0 and a combination delta of -0.2. Intensifiers and diminishers, evaluated together, produce a raw delta of 0.5 and a combination delta of 0.4. These are the reported differences in mean macro F1. The fixed windows therefore show little average influence compared with the changes to word-form lookup. The results concern the lists and window rules adopted for the evaluation.

A position-based scope rule can identify some appropriate cases, including the nearby negation in nicht glücklich. It can also reach sentiment words outside the intended scope. Since the evaluation scores only the final sign, improvements on some units can be offset by errors on others. Similarly, correctly scaling a sentiment word can improve the score assigned to the text while leaving the positive or negative prediction unchanged. The paper considers the choice of window size and position as a possible explanation for the weak results. It does not isolate a single cause.

Size and specialization are patterns across resources

The authors observe that larger dictionaries tend to do better. SentiMerge has 96,420 tokens in the resource inventory and was constructed by fusing lexicons. It achieves the best configured result. The continuous GermanSentiSpin resource is larger, with 105,560 tokens, yet reaches a lower best mean. The Multilingual Sentiment Lexicon has 3,973 tokens and is competitive with several larger resources. These comparisons are compatible with broader coverage being useful, while showing how much the ranking depends on which entries and weights the added vocabulary supplies.

The corpus-specific results offer a related observation about relevance. A good pairing can score highly because its vocabulary fits the material being judged. The strongest unmodified USAGE result illustrates that possibility. The paper did not create dictionary size variants by adding or removing entries under otherwise fixed conditions, and the corpus-specific resources were not standardized to isolate specialization. The data show associations across existing resources. The more tightly controlled switches concern how those resources are used.

Limitations

Limits the authors state

The authors deliberately restrict the study to positive and negative polarity. They exclude resources meant specifically for emotion analysis and disregard neutral reference information in the binary evaluation. Their treatment of a zero total follows from that design. The neutral output is recorded as an error on a unit already labeled positive or negative. A system intended to recognize neutral statements would need an evaluation that includes them as a class.

They also emphasize the variety of the available German corpora. The datasets differ in size, annotation quality, and the granularity of their labeled text units. Several have strong class imbalances, and the authors note imbalances in the lexicons as well. Macro F1 changes how the two classes count towards performance, but it does not add positive examples to a corpus where that class is scarce, or make the underlying labels equally reliable. A high score on one collection can reflect conditions specific to it.

The observation that the authors had collected the relevant available resources is qualified by the scope of their search and by public availability or access on request. Their comparison is broad for the resources they could gather. It leaves open the performance of dictionaries and corpora outside that collection. The exclusion of emotion resources also limits what their inventory represents, independently of how comprehensively the polarity resources were gathered.

The authors explicitly limit their conclusions about linguistic tools to sentiment classification. They examine whether stemming, lemmatization, and part-of-speech tagging improve the overall polarity decisions. They do not judge those tools against reference analyses of word form or grammatical category. A successful stemmer in this study can be the one whose lookup keys support the final task, regardless of how well the resulting forms would serve a linguist examining morphology.

For negation and strength modifiers, the authors restrict their recommendation to the tested implementation. They suggest that the chosen span and position of the context window may account for the limited gains. They also describe further work on that question as necessary. This is a consequential qualification because the motivation for considering context remains even when a particular position rule gives little improvement on the metric.

The authors place their German results alongside published work where English dictionary methods can exceed 70% F1. That comparison gives historical context for their judgment about the state of German resources. The experiments in this paper concern German corpora. The English figures come from the literature, so the comparison does not hold the corpora, labeling decisions, and settings fixed across languages.

Limits apparent from the experimental setup

The strongest setting is selected from settings scored on the available corpora. Its 67.3% mean macro F1 describes the maximum observed in that search. An independent estimate of how well the chosen setting generalizes would require evaluating it after selection on material withheld for that purpose. The reported cross-corpus average already tests breadth within the collection. It leaves the performance of the selected recipe on an unfamiliar corpus unmeasured.

There is also a difference between the importance of an option on average and its importance within one particular setting. The paired on/off comparisons average across many configurations. The best SentiMerge setting includes several changes at once. Its performance gives the combined outcome, while the overall deltas concern a broader set of runs. Assigning a share of the winning score to an individual option would require the relevant matched comparison for that lexicon and setting.

The unweighted mean defines each corpus as equally important for the reported aggregate. That is a coherent way to report a collection assembled across domains. It gives a small corpus as much influence on the mean as a large one, even though their individual scores can have different levels of precision. Also, domains with more corpora supply more individual scores than those with fewer. A perspective that weighted domains equally or aggregated predictions at the text-unit level would answer a different question.

Shared vocabulary limits how far the rankings can explain which approach to dictionary construction works best. Related resources may inherit entries from one another. A larger resource may combine broader vocabulary, different score weights, and different decisions about ambiguous terms. The study observes how those existing dictionaries work in one pipeline. It cannot isolate the contribution of size or of resource fusion from the other properties that accompany them.

The same issue affects domain comparisons. Reviews and social media may differ in vocabulary, spelling conventions, text length, the prevalence of emoticons, and annotation granularity. The reported domain differences describe performance on groups of existing corpora. They do not hold those other features constant. A diagnosis of why a domain is harder would require closer analysis of errors and annotations, even though the emoticon comparison identifies one change that helps substantially in the social media group.

The binary label also gives limited insight into score quality. A near tie and a large positive total lead to the same positive prediction. An appropriate change in strength can therefore be invisible to accuracy and macro F1 if it leaves the sign unchanged. Conversely, retrieval of a misleading entry can matter greatly if it flips the sign on a borderline unit. The paper evaluates the finished labels, and its strongest claims concern those labels rather than agreement on how intense the expressed sentiment is.

Finally, a single score for a text unit cannot show how sentiment is distributed across targets within it. If a unit praises one thing and criticizes another, the contributions can balance even when both judgments are clearly expressed. The benchmark supplies an overall reference for the selected unit. Its results characterize the success of that overall decision and leave target-specific sentiment to a task with appropriately detailed annotations.

What came after

Aspect-Based Sentiment Analysis on German Hotel Reviews cites the comparison in work on a more specific task. The 2023 study frames aspect-based sentiment analysis in German hotel reviews as multi-label classification. The task described in its title shifts attention from a polarity assigned to a text unit as a whole to labels associated with aspects, with more than one label possible. That change matters for interpreting the earlier review results. A dictionary can score well on overall review polarity while leaving unresolved which part of the experience each favorable or unfavorable expression concerns.

The earlier paper’s strongest review results apply to the labels attached to its original evaluation units. The hotel-review task uses a different formulation of what a decision should capture. A positive term may support an overall positive prediction and still provide incomplete evidence for the relevant aspect label. The citation connects the earlier systematic comparison to this more focused research question. The later work’s stated task establishes the shift in classification, while leaving its specific use of the earlier dictionaries and preprocessing choices unspecified.

Pop Lyrics through Time cites the comparison in a different corpus setting. The 2026 work addresses challenges in studying linguistic and emotional dynamics in German pop lyrics over time. In the earlier paper, the literary corpora are among several sources assessed for positive and negative polarity. The lyrics study, by its stated scope, brings language and emotion together in a collection organized around change over time. That moves beyond asking whether a dictionary gets an individual corpus label right and raises a question about what patterns can be inferred across the collection.

The connection is especially relevant to the earlier finding that dictionary performance varies with the corpus. A longitudinal study has to interpret measures applied to texts that may vary in the words and forms they use. The earlier experiment demonstrates the consequences of changing lookup and scoring on the corpora it assessed. It supplies context for that methodological question, while the later work’s description leaves open which resources it adopts and how it evaluates them. The two citing works thus take up German sentiment research at different levels: aspect-specific judgments within reviews, and linguistic and emotional patterns across a lyrics corpus.

Cite

Cite as Jakob Fehle, Thomas Schmidt and Christian Wolff. 2021. Lexicon-based Sentiment Analysis in German: Systematic Evaluation of Resources and Preprocessing Techniques. Proceedings of the 17th Conference on Natural Language Processing (KONVENS 2021).

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

@inproceedings{fehle2021lexicon,
  title = {{Lexicon-based Sentiment Analysis in German: Systematic Evaluation of Resources and Preprocessing Techniques}},
  author = {Jakob Fehle, Thomas Schmidt and Christian Wolff},
  booktitle = {Proceedings of the 17th Conference on Natural Language Processing (KONVENS 2021)},
  year = {2021},
  doi = {10.5283/epub.50833},
  url = {https://doi.org/10.5283/epub.50833}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/fehle-2021-lexicon-based-sentiment-analysis-german/