Elamur Research

A Twitter Corpus and Benchmark Resources for German Sentiment Analysis

Paper · 2017 · Mark Cieliebak, Jan Milan Deriu, Dominic Egger et al.

Summary

A collection of German tweets can be large and still be difficult to use for training a sentiment classifier. Many of the messages may express no opinion, and the ones that do may draw on a narrow range of topics or words. The labels also need to capture the judgment that the classifier will eventually be asked to make. The authors address these problems with SB10k, a German Twitter corpus designed to give researchers more examples for training and comparing systems for sentiment analysis.

The authors group German tweets by the words they contain, then use a polarity lexicon to help select posts for human review. Each tweet goes to 3 annotators, who judge the sentiment expressed in the message. Their responses yield positive, negative, neutral, mixed, and unknown labels. Neutral remains the largest category despite the effort to find opinionated posts. The selection procedure does, however, yield more distinct words than the random sampling comparison reported in the paper. Agreement among the annotators also varies, a reminder that a useful collection can contain many judgments that are difficult to make from a short message.

The benchmark compares a feature-based support vector machine with a convolutional neural network. The neural system first learns representations of words from 300M German tweets without sentiment labels. It then uses 40M tweets with labels inferred from emoticons before training on tweets that people have annotated. The benchmark trains each classifier on either SB10k or the older MGS corpus, then tests it on held-out data from those corpora and on the full DAI corpus. The main score gives positive and negative sentiment equal weight by averaging their class-specific F1 scores.

The neural system leads in all but one of the reported training and test combinations. When trained and tested on the separate SB10k splits, it scores 65.09 on the main measure, compared with 56.98 for the support vector machine. When trained on SB10k and evaluated on the MGS test split, the neural system scores 47.30. The change in test corpus can therefore matter even when the classifier and its training data stay fixed. The authors release the corpus, the original and sentiment-adapted German word representations, the benchmark splits, and the code used to run the comparisons.

Deep dive: A Twitter Corpus and Benchmark Resources for German Sentiment Analysis

SB10k brings human-labeled German tweets to sentiment analysis and tests how well two classifiers transfer across Twitter corpora. · about 33 minutes to read

The problem and its context

What counts as sentiment in a tweet?

The task takes a short message and assigns it a label for the sentiment expressed in the message as a whole. This is an instance of text classification.

Positive and negative labels capture opposing directions of sentiment. A mixed label makes room for a message that expresses both, while a neutral label captures the absence of expressed polarity. SB10k also records uncertainty. Annotators may be unable to settle on a label, and the collection procedure allows disagreement among them to produce an unknown outcome. These choices matter because a benchmark built from their judgments inherits the distinctions they were asked to make.

The authors give their annotators a specific object of judgment. The relevant sentiment is the one conveyed by the tweet. A reader’s emotional reaction is a separate matter. The distinction affects how a label can be used later. If readers record their own reactions, a system trained on those labels would be learning a different task from a system asked to classify what the message expresses. The annotation instructions establish which interpretation the corpus is meant to support. Linguistic annotation

The unit of annotation matters just as much. A sentiment label attached to a phrase describes a particular span of text. A label attached to a tweet asks the annotator to consider all the language in the message together. The useful information in phrase judgments is compatible with many ways of arriving at an overall judgment. A collection of phrase labels therefore serves a different purpose from a collection in which each full tweet receives a category directly. The authors want the second kind for their benchmark.

Why another German collection?

The authors describe growing interest in sentiment classification in research and in commercial text analysis. Public social media supplied a great deal of text, and evaluation initiatives gave researchers a way to compare their systems. The immediate difficulty for their German project was finding labeled material suitable for the same kind of training and evaluation. Unlabeled text can supply evidence about how words occur. A corpus for supervised sentiment classification needs judgments about what the messages express. A large quantity of the first resource still leaves the second job to be done.

The paper surveys sentiment corpora with different languages, text sources, and annotation schemes. Its English examples include tweets, reviews, and news. It also points to resources in other European languages, including Italian and French collections whose titles foreground irony in online debates, and a Dutch collection that covers sentiment among several kinds of annotation. These examples show how the language of a corpus is only part of what makes it appropriate for an experiment. Its source material and labeling task determine which judgments can be tested. The Italian political-debate corpus · TWitter-MariagePourTous · The CSI corpus

German sentiment analysis already had an organized research community. The authors describe an interest group that brought together researchers and ran workshops and shared tasks, including GESTALT-2014. Their case for SB10k rests on particular gaps in the resources they knew, alongside that active research. A comparable set of experiments needed German tweets with whole-message sentiment judgments, sufficient labeled training material, and a documented evaluation procedure.

Of the German resources the authors discuss, DAI contains 1800 German tweets labeled at tweet level. They regard it as too small for the training role they have in mind. MGS supplies 109,130 German tweets, but the agreement figure they cite for it is α = 0.34. Here α refers to Krippendorff’s alpha, a measure of annotation agreement. The authors treat that figure as a reason to be cautious about the labels. PotTS contains 7992 German tweets with judgments at the phrase level, so its annotation unit differs from the one the benchmark requires. Those are distinct constraints involving the amount of training data, the reliability of the labels, and the unit to which they apply.

These earlier collections also shape the experimental design. DAI can serve as a test collection without taking on the training role for which the authors find it too small. MGS provides enough material for a training split and also supplies a separate test split. SB10k adds a new collection with a documented sampling and annotation procedure. The comparison can then examine both performance within a corpus and what happens when a classifier is evaluated on a different one. This is the role of the data and splits as resources for evaluation and benchmarks.

Why compare features with a neural network?

The paper describes a shift in the methods used for sentiment classification. In the Twitter sentiment task at SemEval-2014, systems that relied on engineered features were common. Support vector machines, maximum entropy classifiers, and naïve Bayes were among the popular choices. A feature-based system starts with a specified set of measurements of the text, such as which word sequences occur, and learns how to use them for classification. Including this kind of system gives the German benchmark a comparison with an established approach. SemEval-2014 Twitter sentiment task

The related work also describes growing use of neural networks for sentiment and text classification. The authors cite work on composing sentiment over a sentiment treebank, on classifying sentences with convolutional networks, and on using those networks for short texts. Convolution is relevant here because it lets the system apply the same learned detector at different positions in a message. The authors situate their German system in that line of work. The sentiment treebank study · Kim’s sentence classification study · The convolutional study of short-text sentiment

The immediate precedent is the winning Twitter sentiment system at SemEval-2016. The authors describe a convolutional network trained in successive stages with different kinds of data. Their German adaptation carries over that strategy. It starts with abundant text that has no sentiment annotations, learns from another large collection with automatically inferred labels, and finishes with the much smaller collection judged by people. The relationship between those stages is important to the benchmark. A comparison with the feature-based classifier tests the resulting systems, including the information each brings into its final training stage. SemEval-2016 Twitter sentiment task

The method, step by step

From a Twitter sample to annotation candidates

The corpus and the classifier have different starting points. To build SB10k, the authors first work with a sample of tweets from a defined period. They reduce it to likely German messages, then select examples for people to label. To build the neural classifier, they use larger collections at the early training stages and turn to manually labeled examples at the end. The same human judgments that make an evaluation possible can also provide training examples when assigned to the training split.

From tweet collection to benchmark evaluation

The steps in order.

From tweet collection to benchmark evaluationStep 1: Filter the tweet sample for German1. Filter the tweet sample for GermanStep 2: Group tweets by vocabulary and select annotation candidates2. Group tweets by vocabulary and select annotation candidatesStep 3: Collect independent judgments and assign aggregate labels3. Collect independent judgments and assign aggregate labelsStep 4: Learn word representations from unlabeled German tweets4. Learn word representations from unlabeled German tweetsStep 5: Train the network with emoticon-derived sentiment labels5. Train the network with emoticon-derived sentiment labelsStep 6: Train classifiers on manually labeled corpus splits6. Train classifiers on manually labeled corpus splitsStep 7: Compare classifiers within and across test corpora7. Compare classifiers within and across test corpora

The collection window for SB10k runs from 01.08.2013 through 31.10.2013. The authors start from a random 10% sample of tweets published during that interval. At this point the sampling frame is based on date, and membership in the pool does not yet depend on sentiment or even on being in German. The subsequent steps impose those restrictions and preferences in different ways.

The authors use langid.py to assign language confidence scores. Tweets must have a German confidence score above 0.999 to enter the candidate pool. They choose this high cutoff to reduce false positives, meaning messages that pass as German in spite of belonging outside the intended language category. The filter yields 5.280.157 tweets. This is the candidate pool for selecting SB10k examples, a different part of the study from the much larger collection used to learn word representations. langid.py

A random selection from the German pool would, in the authors’ account, leave annotators with many messages that express no opinion. The authors also want the selected tweets to cover varied subjects and vocabulary. They use a grouping procedure to address variety and a dictionary of polarity cues to help find candidate opinions. Neither step supplies the final sentiment judgments. Those are made after selection, when people see and label the messages.

How grouping and polarity clues work together

The grouping procedure represents a tweet as a bag of words. This representation uses the words in the message as features without preserving their sequence. It lets the authors compare short texts through their vocabulary. A unigram is an individual word feature, as opposed to a sequence of adjacent words. When the paper measures vocabulary coverage, it counts distinct unigrams represented in the selected tweets. The unit of that analysis is therefore a different word feature, rather than a different tweet or an occurrence of a word. N-gram

The authors run k-means with cosine similarity and form 2500 clusters. At a high level, k-means groups examples around representatives of their groups. Cosine similarity compares the direction of the word-feature vectors, so the clustering uses the patterns of words in the tweets to define closeness. The resulting groups give the authors places to look for messages with different vocabularies. The paper describes a target of four tweets from each group, with a candidate for each of the positive, negative, mixed, and neutral categories.

That target requires some way to identify promising candidates before paying the cost of human annotation. The authors use the GermanPolarityClues lexicon to look for words listed as positive or negative. A message with positive cues and no negative cues qualifies as probably positive. The negative rule reverses those conditions. Both cue types together qualify a tweet as probably mixed, and the absence of either type qualifies it as probably neutral. These cases specify what the selection rules see. A text’s words can trigger one of the rules even if the sentiment of the whole message will receive a different judgment.

In practice the authors mainly select from the probably mixed group because it seemed more likely to contain an opinion. The name of that group describes its lexical cues. It does not fix the label an annotator will assign. A tweet with both kinds of cues can end up in any category allowed by the instructions. This makes the preference a way to enrich the sample with candidates for annotation. It also makes the labeled corpus a selected sample of the German pool, even though the earlier Twitter sample was random.

The clustering and lexicon thus pull on different properties of the data. Clustering is meant to spread selection across different vocabularies. Giving priority to texts with both kinds of polarity words favors messages containing particular lexical evidence. The authors acknowledge that this preference restricts the range of unigrams and topics to some degree. The selection procedure reflects a practical choice about which messages are worth sending to annotators when both variety and the presence of opinions are desirable.

The difference between selection categories and annotation categories is especially important when reading the final distribution. The balancing target describes what the researchers wanted to collect. The cue rules describe how they looked for it. The counts describe what the annotators ultimately assigned. A procedure can succeed in finding tweets worth reviewing while still falling short of a balanced final corpus, since the human labels depend on what the messages express in context.

Human judgments and the aggregate label

The authors recruit 34 annotators from computer science or linguistics students. Each selected tweet is assigned to 3 randomly chosen annotators. The annotators see examples and receive instructions to judge the sentiment conveyed by the tweet. They can use a non-German flag if a message has slipped through the automated language filter. They can also choose unknown when they are unable to decide on sentiment.

The judgment is at tweet level. Each person assigns a category to the message rather than marking separate spans as evidence. With this setup, repeated annotation serves two purposes. The votes can supply an aggregate category for a tweet, and the individual judgments can be compared to see how consistently people used the scheme. Agreement and the aggregate category are different outputs of the same annotation process. One describes how the votes relate to one another. The other describes what label the corpus assigns to the message.

The aggregation rule uses the category selected by at least 2 annotators. A tweet with no such agreement receives unknown. Thus unknown may reflect an inability expressed directly by annotators or arise when their judgments do not settle on a shared category. Mixed has a different role. It is an available judgment about a tweet’s expressed sentiment. A disagreement between annotators who independently see opposite polarities is resolved by the voting rule, rather than being treated automatically as evidence of mixed sentiment.

Comparing agreement across the full set of annotators poses a separate issue. Since each message goes to a randomly chosen group, different pairs of annotators review different numbers of tweets in common. The least overlap reported for a pair is 1 tweet, and the greatest is 1673 tweets. A pair that saw very few common messages provides little information about the consistency of their judgments. To restrict the comparison to pairs with more experience of the same items, the authors retain pairs that share at least 50 tweets.

The reported agreement statistic is Krippendorff’s alpha. The paper explains its use through coincidences among annotators’ responses, aggregated in a way that suits a design with changing groups of raters. Its purpose here is to quantify the consistency of the annotation process. The value describes how humans agreed under these conditions. The class-specific F1 scores later in the paper describe how a classifier matches benchmark labels. Reading them together helps explain what is being measured at each stage without treating the agreement statistic as a classifier score.

Learning word representations from plain text

The neural system begins with a representation of each word as a vector, an ordered set of numerical values. Vectors let the system pass word inputs through operations that can respond to patterns in those values. The authors learn the vectors from how words occur near one another, before introducing any labels for the sentiment of full tweets. This produces the plain version of their German word embeddings.

The authors use word2vec with the skip-gram training objective on 300M German tweets. Skip-gram learns to predict surrounding words from a word in context. The reported window size is 5, which sets the extent of the context considered by the training procedure. Words occurring fewer than 15 times are filtered from this stage. The dimensionality is d = 52, where d is the number of values in a word vector. Those are settings of the representation-learning stage. The sentiment categories and the annotated corpus splits enter elsewhere.

This first stage is unsupervised with respect to sentiment. The signal comes from words appearing in context, and the corpus supplies no human or emoticon-derived sentiment labels for that stage. It gives the classifier a way to represent vocabulary learned over a large amount of German Twitter text. The later stages have different targets, so the authors allow the original word representations to change once the system starts training for sentiment.

The frequency cutoff defines which observed words receive vectors from this procedure. It follows that the size of the source collection and the availability of a learned representation for any particular word are separate matters. The paper gives the cutoff and the vector size, which characterize how the starting representation was built. Its benchmark tables concern the classifiers that use the resulting setup as a whole.

Updating the network with noisy and manual labels

The core of the classifier is a convolutional neural network, or CNN. A convolutional layer applies learned filters across regions of the input sequence. With the word vectors as input, a filter can respond to a local pattern wherever it occurs in the tweet. Pooling condenses the resulting responses. A subsequent layer can then work with those condensed features. The paper describes two successive convolution and pooling pairs, then a fully connected hidden layer and a softmax output layer. The fully connected layer combines the features passed to it, and softmax turns the output scores into a distribution over categories.

For distant supervision, the authors train the network using tweets whose labels are inferred from emoticons. This is called distant supervision because the target label comes indirectly from a cue associated with the message. A cue can provide evidence about polarity without settling how a person would label the entire tweet. The authors use this inference at scale and describe the labels as noisy. The collection for this stage contains 40M tweets, including 8M with inferred negative labels and 32M with inferred positive labels. The positive and negative groups are therefore substantially different in size.

This use of lexical or textual cues is easy to confuse with the selection stage, but the cues have different consequences in the two procedures. The polarity lexicon influences which tweets are sent for SB10k annotation. Its probable categories remain provisional. The emoticon cues yield labels that the neural network is directly trained to predict during distant supervision. In each case the cue enables a large pool of tweets to be used, with different roles for the available evidence.

The authors train on the emoticon-labeled data for one epoch, meaning one pass through that training collection. They then continue learning from manually annotated tweets for about 20 epochs. The human supervision supplies the labels for the target task. The word vectors are updated during both stages. Back-propagation carries the training error through the network so that adjustments reach the embeddings as well as the later layers. The final representations can therefore change in response to the sentiment objective, after starting from general evidence about neighboring words.

The paper reports computing times for this training sequence on a machine with a GPU described as having 3072 cores and 8GB of RAM. Creating the initial embeddings takes roughly 24 hours. The run with distant supervision takes 15 hours, and the final supervised stage takes 30 minutes. These times describe different jobs on the reported setup. They show that much of the training work occurs before the classifier is trained on the corpus labels used for the final task.

The feature-based comparison and the scoring rules

The comparison system is a support vector machine, or SVM. It learns a classifier from supplied features. In this benchmark the authors use n-grams, lexical features, and statistical properties of the text. N-grams represent sequences of text units, while lexical features represent properties associated with the words in the message. Statistical text properties give the classifier other measurements of the input. The paper describes the feature selection as based on a system that ranked 8th in the SemEval-2015 competition. That placement applies to the earlier system whose feature design informed the benchmark. SemEval-2015 Twitter sentiment task

To see how a classifier handles a particular category, the authors report class-specific F1. For a class such as positive, precision asks how many tweets predicted as positive actually have that label. Recall asks how many tweets with that label the system retrieves. F1 balances those quantities in a single value. The benchmark then takes a macro-average, meaning that it combines scores already calculated for individual classes and gives those scores equal weight. The main measure follows the SemEval convention of including positive and negative F1.

F1 = (F1ₚₒₛ + F1ₙₑg) / 2

F1 on the left is the benchmark’s main score. F1ₚₒₛ is the F1 score for positive tweets, and F1ₙₑg is the score for negative tweets. The plus sign adds the two class scores inside the parentheses. Division by 2 gives them equal weight. Neutral predictions are relevant to whether an example receives the right label, and the authors also report neutral F1 separately. Neutral F1 itself does not enter this average.

F1₃ = (F1ₚₒₛ + F1ₙₑg + F1ₙₑᵤₜᵣₐₗ) / 3

F1₃ is the alternative macro-average over the three classes for which the benchmark table gives individual F1 results. F1ₚₒₛ and F1ₙₑg are the positive and negative scores, and F1ₙₑᵤₜᵣₐₗ is the neutral score. The plus signs combine the three values within the parentheses. Division by 3 assigns equal weight to each. The subscript ₃ identifies which average is meant, while the subscripts spelling out the categories identify the individual scores used in it.

Experiments and results

The collections and their splits

SB10k serves as both a new dataset to describe and a source of training and test examples. The paper gives 9783 tweets in its description of the corpus. The corpus table prints 9738 as its total, and the benchmark description also uses 9738 for SB10k. The figures differ, so the collection description and the benchmark size should be read with their respective counts. The paper’s class counts are 1682 positive, 1077 negative, 5266 neutral, 330 mixed, and 1428 unknown. Neutral is the largest category and mixed the smallest in that listing.

The class counts show why the sampling aims and achieved distribution need to be read separately. The authors sought opinionated examples so that the labeled material would be useful for learning sentiment. The aggregate judgments still give neutral a large presence. Unknown also takes a substantial place in the count, despite the provision of examples and repeated judgments. For a reader interpreting the benchmark, these are properties of the labeled collection. The published classifier table evaluates positive, negative, and neutral F1, with the main average restricted to the polarity classes.

MGS provides the other source of training material and another held-out test set. The paper describes it as a multilingual resource and uses its 109,130 German tweets for the German comparison. DAI supplies 1800 German tweets and plays a test-only role. The experiment creates fixed random splits of SB10k and MGS, with 90% for training and 10% for testing in each. Every reference to a test on SB10k or MGS in the benchmark concerns its test subset. Every DAI result concerns the full DAI collection.

The split design makes different comparisons possible. Holding both corpora fixed within a training and test pairing lets the reader compare the two classifier designs. Holding the target test split fixed and changing the training corpus lets the reader examine which source yielded better performance on those same test tweets. Holding the training corpus fixed and changing the test corpus gives a view of how performance varies across evaluations for the same training source. The public splits make these distinctions concrete. Another system can be evaluated on the same examples as the original comparison.

Testing on SB10k

Classifier and training source on held-out SB10k, positive-negative macro F1

The CNN trained on SB10k leads, while the SVM scores higher with MGS training than with SB10k training.

Classifier and training source on held-out SB10k, positive-negative macro F1SVM trained on SB10k: 56.98SVM trained on SB10k56.98CNN trained on SB10k (this paper): 65.09CNN trained on SB10k (this paper)65.09SVM trained on MGS: 60.50SVM trained on MGS60.50CNN trained on MGS: 61.07CNN trained on MGS61.07
The numbers
System or settingmacro F1
SVM trained on SB10k56.98
CNN trained on SB10k (this paper)65.09
SVM trained on MGS60.50
CNN trained on MGS61.07

With SB10k as both the source of training examples and the source of held-out test examples, the CNN’s 65.09 is the strongest main score in the table. The SVM scores 56.98 on that pairing. Both polarity classes contribute to the CNN’s lead. Positive F1 is 71.46 for the CNN and 66.16 for the SVM. Negative F1 is 58.72 for the CNN and 47.80 for the SVM. The neutral scores are close, with 81.19 for the CNN and 81.32 for the SVM. The advantage in the main average comes from the classes the metric was designed to emphasize.

The picture changes when the classifiers train on MGS and predict the SB10k test labels. The CNN retains a small lead on the main score, at 61.07 against 60.50. The underlying class scores show why those averages are close. The SVM has positive F1 of 67.77 against 63.94 for the CNN, and the CNN has negative F1 of 58.21 against 53.23 for the SVM. On neutral tweets the SVM scores 80.20 and the CNN scores 70.66. The order of the classifiers therefore depends on the class considered.

Keeping SB10k as the target also reveals the training-corpus exception the authors emphasize. The SVM does better when trained on MGS, at 60.50, than when trained on the SB10k training split, at 56.98. For the CNN, SB10k training yields the higher result on this test. The comparison holds the test examples fixed, so it rules out a change in the test sample as an explanation for those differences. The training sources, however, differ in size, selection, and annotation. The experiment measures what happens when the source is switched as a whole.

Testing on MGS

Classifier and training source on held-out MGS, positive-negative macro F1

Training on MGS gives both classifiers their higher scores on this test split, and the CNN leads with either source.

Classifier and training source on held-out MGS, positive-negative macro F1SVM trained on SB10k: 44.06SVM trained on SB10k44.06CNN trained on SB10k: 47.30CNN trained on SB10k47.30SVM trained on MGS: 58.41SVM trained on MGS58.41CNN trained on MGS (this paper): 59.80CNN trained on MGS (this paper)59.80
The numbers
System or settingmacro F1
SVM trained on SB10k44.06
CNN trained on SB10k47.30
SVM trained on MGS58.41
CNN trained on MGS (this paper)59.80

On held-out MGS, the CNN trained on MGS scores 59.80, and the SVM trained on MGS scores 58.41. The CNN has the higher positive F1, at 61.49 against 60.34, and the higher negative F1, at 58.12 against 56.48. The SVM has the higher neutral F1, at 69.31 against 68.62. As on SB10k, the main result expresses a preference for success on the polarity categories. Here both of those categories favor the CNN when the classifiers use MGS training data.

With SB10k as the training source and MGS as the test source, the CNN scores 47.30 against 44.06 for the SVM on the main measure. The advantage appears in positive F1, with 50.41 for the CNN and 49.50 for the SVM. It also appears in negative F1, with 44.19 for the CNN and 38.62 for the SVM. The CNN leads on neutral F1 in this pairing as well, at 71.81 against 66.41. Even with that class-by-class lead, the positive-negative average is below the corresponding results for classifiers trained on MGS.

The authors point out the spread in results for the CNN trained on SB10k. Its main score is 65.09 on the SB10k test split and 47.30 on the MGS test split. The training source and classifier type are the same in those comparisons. The evaluation changes with the corpus. Possible contributors include the labels and features of the tweets in each test set, and the experiment evaluates that bundle of differences. A benchmark value can be reproduced on its split while remaining a poor guide to the score on another collection.

The paper also discusses an earlier reported score of 53.6 for a reference system on the German part of MGS. On the benchmark’s own MGS-to-MGS split, both classifiers have numerically higher values. The earlier result was obtained by cross-validation, in which performance is assessed across changing training and test folds. The new benchmark uses a fixed split. The evaluation protocol differs, so the numerical ordering lacks the control of the direct CNN and SVM comparison on their common held-out subset.

Testing on the full DAI collection

Classifier and training source on full DAI, positive-negative macro F1

DAI gives the SVM its only lead over the CNN with the same training source, when both train on SB10k.

Classifier and training source on full DAI, positive-negative macro F1SVM trained on SB10k (this paper): 61.85SVM trained on SB10k (this paper)61.85CNN trained on SB10k: 60.61CNN trained on SB10k60.61SVM trained on MGS: 57.68SVM trained on MGS57.68CNN trained on MGS: 58.38CNN trained on MGS58.38
The numbers
System or settingmacro F1
SVM trained on SB10k (this paper)61.85
CNN trained on SB10k60.61
SVM trained on MGS57.68
CNN trained on MGS58.38

On the full DAI collection, the strongest main score is 61.85 for the SVM trained on SB10k. The CNN trained on SB10k scores 60.61. The CNN’s positive F1 is slightly higher at 62.79, compared with 62.30 for the SVM. Negative F1 favors the SVM at 61.40 against 58.43, and that category accounts for the SVM’s advantage in the average. The SVM also leads on neutral F1, with 81.22 compared with 79.92.

When the systems train on MGS, their order on the DAI main score reverses. The CNN scores 58.38 and the SVM scores 57.68. The CNN has the higher positive F1, at 61.01 against 59.32. Negative F1 is 55.74 for the CNN and 56.03 for the SVM. Neutral F1 is 76.88 for the CNN and 74.83 for the SVM. The comparison shows how the positive and negative class results can trade places under a shared test set and still produce an overall preference under the stated averaging rule.

Both classifiers score higher on DAI when trained on SB10k than when trained on MGS. These are transfer comparisons because DAI supplies no training split. They show that the larger corpus described in the paper does not automatically furnish the strongest training source for every target. They also keep the CNN’s overall record in perspective. Its frequent lead on paired comparisons coexists with a pairing on which the feature-based approach has the best result.

What changes when neutral is counted?

Across the benchmark table, neutral F1 is higher than the polarity scores in the same setting. The authors report that the alternative macro-average including neutral is, on average, 4.42 points higher than the positive-negative macro-average. The increase refers to changing the measure used to summarize the reported classifications. The class predictions remain the basis for both calculations.

The distinction matters on a corpus such as SB10k, where neutral dominates the aggregate-label counts. The main average already gives positive and negative class scores equal influence even though those categories occur at different frequencies. Adding neutral gives that category the same influence as each polarity class and raises the reported average when its individual result is strong. The class breakdown allows a reader to see whether a favorable average reflects the categories most relevant to their use of the benchmark.

The authors characterize the main F1 as around 60% in most settings. The strongest held-out SB10k result and the weaker SB10k-to-MGS results show how much this broad description can conceal. The released resources make the detailed comparisons more useful than a single headline. The corpus and its splits define the labeled examples for evaluation, the embeddings provide the reported starting and adapted representations for German tweets, and the code supports rerunning the benchmarks.

What the ablations show

The paper reports no component ablations of the neural training pipeline and instead offers classifier and training-corpus comparisons, analyses of vocabulary and annotation agreement, and a comparison of scoring rules.

What the classifier comparisons isolate

For each pairing of training and test corpora, the CNN and the SVM are evaluated on the same target examples. This makes their differences interpretable as differences between the two complete approaches under that condition. On SB10k with SB10k training, the CNN’s lead reflects better F1 for both polarity classes. On DAI after SB10k training, the SVM’s stronger negative result carries the main average in its favor. Those class scores explain which prediction categories contribute to the reported ordering. They do not identify a particular architectural feature as its cause.

The neural system brings together convolution, large-scale representation learning, sentiment training from emoticons, and final training on human annotations. The feature-based system uses a different representation and classifier as well as a different route to training. The benchmark changes all those ingredients together when switching systems. The CNN’s better main score in most conditions therefore supports a comparison of the complete systems. The paper reports no otherwise identical CNN trained without the emoticon stage, and no comparison of frozen and updated embeddings. The result gives no separate estimate of the contribution of either choice.

The comparisons also show that the identity of the stronger classifier is frequently a question about a specific category. On the SB10k test split after training on MGS, the SVM has the stronger positive and neutral results, while the CNN has the stronger negative result and the higher main average. A class-balanced polarity average is a deliberate way of weighing those outcomes. The accompanying class scores retain information that would otherwise disappear from the comparison. A second average addresses a different combination of the same outcomes.

What changes with the training corpus?

The training-source comparisons hold the classifier type and test subset fixed. When the test corpus is MGS, both systems do better with MGS training. When the test corpus is SB10k, its own training split gives the CNN the higher score, while MGS training gives the SVM the higher score. On DAI, both systems do better with SB10k training. Taken together, the comparisons show that the effect of the training source depends on the pairing of the classifier and the target evaluation.

The reversal on SB10k is particularly informative because the SVM can benefit from data from another source even when in-corpus training examples are available. The paper evaluates each training collection at its reported split size. Several properties move with the change in source, including the number of examples, how tweets were selected, and the labeling process. The result establishes that the MGS training split worked better for that SVM on the fixed SB10k test, with the reason for the advantage unresolved.

What selection adds to the vocabulary

The authors use a separate comparison to examine whether their selection procedure exposes annotators to varied vocabulary. They report 11.592.947 distinct unigrams in the collected German tweet pool and 9452 in the labeled selection. For the random comparison, they draw 10,000 tweets from the pool and repeat the draw 10 times. The reported coverage is 0.00081% for the labeled selection and an average of 0.00075% for the random draws. The paper describes the selection’s vocabulary gain as 10.7%. These are the reported corpus analysis figures, with the exact coverage calculation left unclear by the accompanying counts.

The comparison concerns distinct unigram coverage in the selected texts. Breadth of vocabulary is something the authors can count directly using this procedure. Breadth of topics is a separate property, and the paper gives no corresponding quantitative topic comparison. The random draws also provide a vocabulary reference for a sampling strategy that combines clustering and preferences based on polarity words. The experiment gives the overall selection a useful comparison while leaving the individual effect of each selection rule undetermined.

A further distinction concerns what the selection is meant to achieve for human labeling. Finding more distinct words can make a collection varied even when its sentiment distribution remains uneven. Finding more tweets that look likely to contain opinions can provide worthwhile candidates even when annotators ultimately assign many neutral labels. The vocabulary comparison assesses the first aim at the word level. The final label counts show the outcome of the second aim after human review, without a labeled random sample for a direct comparison of their sentiment distributions.

What annotator agreement adds

For the retained annotator pairs with at least 50 shared tweets, the paper reports α = 0.39 and a standard deviation of 0.12. The restriction matters because the recurring pairs saw enough common messages to supply observations for the comparison. The standard deviation gives a measure of spread in the reported agreement analysis. The resulting statistic characterizes agreement for the analysis the authors performed, with its stated overlap requirement.

The class distribution and the agreement figure answer complementary questions. The distribution counts the aggregate labels after the voting rules have been applied. Agreement examines the underlying judgments that produced those labels. A tweet can have an aggregate sentiment despite disagreement among the people who saw it. Likewise, a collection can offer a definite benchmark target for many tweets while still containing uncertainty about how consistently people apply the categories. SB10k supplies information about both aspects of the annotation.

Limitations

Limits the authors state

The authors acknowledge a tradeoff in their selection method. Favoring tweets with both positive and negative words was meant to find more messages that express opinions, and it narrows the observed vocabulary and topics to some degree. The unigram comparison gives evidence about the resulting sample relative to random draws. The authors’ description of how the sample was built also shows why it should be understood as a collection assembled for sentiment research. Its aggregate class counts describe the outcome of that procedure.

The paper explicitly qualifies its comparison with the earlier MGS reference system. The reference comes from cross-validation, while the new benchmark uses fixed splits. The earlier score offers context for the range of reported results. A ranking on common test examples is available from the two systems implemented in the paper, whereas the reference involves a different way of partitioning and evaluating the data.

The authors further stress that their principal scores could improve even when both the training and test sets are drawn from a single corpus. Within-corpus evaluation holds the collection procedure in common across the splits. Its results still vary by class, and the best overall placement does not guarantee uniformly high performance. In the transfer settings the scores also vary with the target corpus, which the authors highlight through the spread for a CNN trained on SB10k.

Finally, the authors’ reasons for constructing SB10k define how they view the available data. DAI serves as a test resource at the size reported in the paper. MGS raises concerns about annotation agreement. PotTS supplies labels at another level of text. These qualifications explain which resources the authors compare and the roles they assign to them. The claim about a German benchmark is tied to the task and resources they identify.

Limits visible in the setup

The collection window restricts what the corpus can establish about German Twitter. The initial sample covers the reported dates, the language filter sets a high confidence threshold, and the subsequent selection prefers certain kinds of lexical evidence. The high threshold helps with the stated aim of reducing false positives. The paper gives no assessment of which actual German tweets fall below it. The resulting corpus can support comparisons on selected German Twitter text. Claims about the prevalence of sentiment across German Twitter would require evidence about the tweets excluded at each stage.

Agreement also has to be interpreted in light of the rater assignment. The reported alpha uses pairs above the shared-item threshold. Its scope is thus narrower than every judgment made in the project. The unknown category pools outcomes that can arise in different ways under the voting procedure, and the published aggregate counts do not separate their frequencies by cause. The agreement result gives context for uncertainty in the labels, but it supplies no measured ceiling for classifier performance on the test splits.

Some corpus accounting remains unsettled in the paper. Its descriptive passage names 9783 tweets, while the corpus table and benchmark description give 9738. The paper also does not make the exact connection between the reported unigram totals, coverage percentages, and percentage gain clear. Keeping the reported figures in their original contexts preserves what the authors state. Exact reconciliation would require a more detailed account of the collection and the vocabulary calculation.

The paper describes a corpus with mixed and unknown categories, but the experimental results give class scores only for positive, negative, and neutral. The account of the benchmark does not spell out how mixed and unknown entries were handled when preparing the examples for the reported runs. The main average has a clear definition, so it can be read as a measure of positive and negative performance. The table supplies no direct evaluation of recovering mixed sentiment or identifying cases in which sentiment should be left unknown.

The benchmark uses fixed splits without reporting variation over alternative splits or uncertainty intervals for the differences between classifier scores. This matters most where the reported values are close. A small lead orders the systems on the particular evaluation described. The table does not show whether that order would be stable under another split or a repeat of training. The fixed splits nonetheless specify the evaluation on which later systems can be compared directly with these reported runs.

Several otherwise plausible explanations for the transfer results are also left entangled. Training sets differ in size as well as in sampling and labeling. Test corpora can differ in the vocabulary of their tweets, in the judgments they carry, and in the frequencies of their categories. The paper tests changes of corpus as a whole. There is no matched-size training experiment or common reannotation of the test sets to distinguish those influences. The results therefore show the magnitude and direction of observed transfer under these particular conditions without identifying its causes.

The stages of the neural system pose a similar question. Distant supervision uses noisy labels and a much larger positive group than negative group. These are properties of the training data, but their consequences are not isolated in the experiments. The negative-class results, for example, depend on the whole sequence from word representation learning to the final labeled training set. They cannot establish whether the emoticon labels helped both classes equally. The benchmark supports a conclusion about that training sequence as implemented.

The evaluation stays within German Twitter across the training and test corpora. This makes it possible to observe meaningful variation even when the language and platform are shared. It leaves generalization to other kinds of German text as a separate question. Likewise, the paper’s earlier English precedent explains the choice of method. The reported German experiments supply evidence for the adaptation on German corpora under the benchmark’s scoring and label conventions.

What came after

Later papers cite this benchmark in work on sentiment resources, German text classification, cross-domain data, and Twitter annotation. Their topics give several ways to trace the paper’s relevance. The citation relationship establishes that the later papers refer to the study. The scope of each work can be described where its title identifies the task, while specific reuse of tweets, embeddings, labels, or splits remains unestablished.

German sentiment and changing evaluation conditions

The study of broad-coverage German sentiment classification takes up the same language and classification task with dialogue systems as its application setting. Cieliebak and colleagues ask how classifiers perform on several collections of German tweets. The later paper identifies coverage for dialogue systems as the aim of its training work. The relationship lies in the need for German sentiment judgments that serve an intended use, with the intended setting explicit in the later study’s scope. German sentiment classification for dialogue systems

The GermEval17 re-evaluation represents another branch of German evaluation. It revisits a named German benchmark using pretrained systems. That continues an experimental pattern visible in the Twitter study, where learning from additional text precedes training and evaluation on a defined classification task. The earlier paper’s fixed splits, training sources, and macro-F1 results belong to its own benchmark. The later study’s stated aim is to re-evaluate GermEval17, and its citation connects that work to the earlier German sentiment literature. The GermEval17 re-evaluation

The study of cross-domain data makes the source of German training material central to its question. In the Twitter benchmark, changing the corpus used for training can alter performance even with the target test set fixed. The later work names cross-domain data as the object of investigation. Its scope thus makes explicit a condition that the earlier benchmark exposes through corpus comparisons, while the earlier comparisons remain between collections drawn from the same platform. The study of cross-domain German data

Sentiment resources across languages

XLM-T connects Twitter and sentiment analysis in a multilingual setting. The German benchmark studies how a neural Twitter sentiment system can be adapted using German unlabeled, weakly labeled, and manually labeled data. XLM-T addresses multilingual Twitter representations and places sentiment among their applications. The citation links the German resource study to a broader investigation of language coverage on the same platform. XLM-T

The Tamil-English corpus paper brings the resource-building question to code-mixed sentiment text. Its subject is the construction of a corpus for sentiment analysis where the two languages occur in the text under study. SB10k’s procedure uses a confidence threshold for German and gives annotators a way to flag a message that passes the filter. In the later study, language mixing is part of the task’s stated scope. Both projects address the need to define what text goes into a sentiment corpus before judging the categories assigned to it. The Tamil-English sentiment corpus

The Malayalam-English dataset paper likewise addresses sentiment in code-mixed text, for a different language pairing. Its contribution as identified by the title is a sentiment dataset for that setting. The connection to SB10k is the work of constructing a labeled resource for a specific language context. It is a connection at the level of corpus purpose. The annotation and sampling procedures cited for SB10k belong to the German collection. The Malayalam-English sentiment dataset

Twitter corpora for another kind of judgment

TwiConv uses Twitter conversations to build a corpus annotated for coreference, the relation among mentions that refer to the same entity. Its unit and annotation target differ from the sentiment judgments made on individual SB10k tweets. The shared concern is how to turn material from Twitter into a corpus with labels defined for a research question. The citation connects the projects through Twitter corpus construction while their titles and tasks identify the different judgments each collection is intended to support. TwiConv

Cite

Cite as Mark Cieliebak, Jan Milan Deriu, Dominic Egger and Fatih Uzdilli. 2017. A Twitter Corpus and Benchmark Resources for German Sentiment Analysis. Proceedings of the Fifth International Workshop on Natural Language Processing for Social Media.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/w17-1106

@inproceedings{cieliebak2017twitter,
  title = {{A Twitter Corpus and Benchmark Resources for German Sentiment Analysis}},
  author = {Mark Cieliebak, Jan Milan Deriu, Dominic Egger and Fatih Uzdilli},
  booktitle = {Proceedings of the Fifth International Workshop on Natural Language Processing for Social Media},
  year = {2017},
  doi = {10.18653/v1/w17-1106},
  url = {https://doi.org/10.18653/v1/w17-1106}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/cieliebak-2017-twitter-corpus-benchmark-resources-german/