---
title: "How Topic Biases Your Results? A Case Study of Sentiment"
description: "Italian tweet experiments show how political vocabulary can help sentiment and irony detection on a benchmark and hinder sentiment…"
canonical: "https://research.elamur.ai/free/en/papers/barbieri-2015-how-topic-biases-your-results/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/barbieri-2015-how-topic-biases-your-results/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2015](https://md.research.elamur.ai/free/en/papers/2015/) / How Topic Biases Your Results? A Case Study of Sentiment Analysis and Irony Detection in Italian

# How Topic Biases Your Results? A Case Study of Sentiment Analysis and Irony Detection in Italian

Paper · 2015 · Francesco Barbieri, Francesco Ronzano and Horacio Saggion

**Authors:** [Francesco Barbieri](https://md.research.elamur.ai/free/en/authors/francesco-barbieri/), [Francesco Ronzano](https://md.research.elamur.ai/free/en/authors/francesco-ronzano/) and [Horacio Saggion](https://md.research.elamur.ai/free/en/authors/horacio-saggion/) · **Year:** 2015 · **Venue:** Proceedings of the International Conference Recent Advances in Natural Language Processing · **Licence:** [CC BY-NC-SA 3.0 (ACL Anthology, before 2016)](https://creativecommons.org/licenses/by-nc-sa/3.0/)

Proceedings of the International Conference Recent Advances in Natural Language Processing · [licence](https://creativecommons.org/licenses/by-nc-sa/3.0/)

- [Publisher's page](https://aclanthology.org/R15-1006/)
- [PDF](https://aclanthology.org/R15-1006.pdf)

## Summary

A system that recognizes negative language in political tweets may be learning which politicians people criticize. The association can be useful when the test set comes from those same discussions, but the system has little basis for using it when a tweet concerns a different topic. Barbieri and colleagues examine this problem using an Italian shared task that asks systems to identify opinions, detect positive and negative sentiment, and recognize irony. They ask which kinds of evidence help on the original benchmark and which remain useful when the training and test tweets cover different subjects. The distinction matters because both kinds of evidence can contribute to the same score in [sentiment analysis](https://md.research.elamur.ai/free/en/topics/sentiment-emotion/).

The authors train a supervised classifier using evidence at different levels of detail. Some features preserve the words, short sequences of words, or selected dictionary senses in a tweet. Others describe properties such as grammatical categories, sentiment, characters, or the number of meanings associated with a word. The former give the classifier access to expressions and names that recur in the collection. The latter let tweets share a feature even when their actual wording differs. The benchmark measures subjectivity and irony separately and handles positive and negative sentiment as separate decisions so that a tweet can express both.

On the SENTIPOLC benchmark, the authors’ system slightly exceeds the best reported shared-task average for subjectivity, at 0.715 against 0.714, and obtains a larger lead for positive polarity, at 0.697 against 0.675. The main results table also shows higher averages for negative polarity and irony. The scores for individual labels tell a different part of the story. The system recognizes subjective tweets better than the benchmark comparator but recognizes objective tweets less well. Its irony average is higher because of its performance on non-ironic tweets, while the comparator does better at identifying irony itself.

When the authors train on political tweets and test on non-political tweets, or reverse those roles, the broader descriptive features usually outperform both the word-and-sense features and the full combination. The exception occurs when detecting positive sentiment after training on politics and testing outside it. The authors also find political names and terms among the prominent features for irony on the original benchmark. The irony subset does not support a transfer experiment, so the evidence for irony concerns the signals the classifier can use within that collection. The paired sentiment experiments show more directly how changing the subject matter can change which features help.

## Deep dive: How Topic Biases Your Results? A Case Study of Sentiment Analysis and Irony Detection in Italian

Italian tweet experiments show how political vocabulary can help sentiment and irony detection on a benchmark and hinder sentiment detection across topics. · about 31 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### What the tweet is doing

A tweet can report a development, express an opinion about it, or invite other people to supply their opinions. Even when these messages concern the same event, they pose different classification problems. The paper illustrates the distinction with a football tweet that gives the state of a match between Fiorentina and Juventus and asks readers for their reactions. The authors treat the message as objective. Asking for an assessment leaves the assessment to someone else. A classification system therefore has to decide what the author contributes, even when the tweet contains words that invite discussion of feelings or judgments.

The paper’s political examples make the labels easier to distinguish. In one, the writer considers whether an election would be a good use of time and money and expresses approval of the possibility of a Monti government. The paper presents it as subjective, positive, and non-ironic. The question of who should govern gives the message its topic. The writer’s evaluation of a possible government supplies the stance relevant to the task. Text about the same government could instead report an event without offering an assessment, or describe it with disapproval. Topic alone leaves these possibilities open.

In the other political example, Brunetta’s stated intention to return to economics prompts a joke in which Monti supposedly takes fright and contemplates running a fish shop. The authors interpret this as subjective, negative, and ironic. Understanding the example requires seeing the imagined response as a way to ridicule the announcement. The names establish who the joke concerns. The contrast between the career announcement and the exaggerated reaction is what makes the portrayal intelligible as a joke at someone’s expense.

These examples explain why the label categories are related without being interchangeable. Subjectivity concerns whether a message puts forward a viewpoint. Polarity concerns the direction of the sentiment expressed. Irony concerns how a message conveys a stance indirectly. The detection targets also differ in what their absence means. A tweet with no positive sentiment can still express negative sentiment. A tweet with no irony can still make a strongly worded judgment. The benchmark asks systems to make each decision separately enough to capture these distinctions.

#### Why the subject can influence the score

The study treats these decisions as [text classification](https://md.research.elamur.ai/free/en/concepts/text-classification/). An annotated collection gives the classifier examples of messages and their assigned labels. Features describe each message in a form the classifier can use to learn recurring associations. If a person’s name frequently occurs with negative labels in the training data, the name can be useful for predicting a label even though it has no inherent negative meaning. A learned rule can also use wording that expresses criticism across a range of subjects. When test messages share the training set’s vocabulary and topics, a successful prediction can come from either kind of association.

This creates an [evaluation](https://md.research.elamur.ai/free/en/topics/evaluation-benchmarks/) problem. An ordinary benchmark score answers how frequently a system’s decisions agree with the labels under that evaluation procedure. The score leaves open which properties of the collection made agreement possible. If a test set covers familiar political discussions, recognizing recurrent names can amount to useful information about that test population. A claim about other topics needs evidence from tweets for which the old names and debates may have little relevance. The same feature can therefore be appropriate for a system confined to a specific discussion and unreliable for a system expected to operate elsewhere.

There is also a distinction between a word and the reason a classifier uses it. A word-based input can preserve an expression whose sentiment is reasonably clear across topics, or a name that acquires an association only in one collection. The classifier receives both as pieces of textual evidence. The categories matter when researchers interpret results, but the representation does not give a learned predictor a guarantee that an expression will behave the same way in a new setting. One purpose of the topic split is to see how the collection of word-based evidence behaves when those associations have to travel together.

Short messages make the issue especially visible. The paper describes tweets as brief and informal, conditions that can leave a classifier with relatively little context about the author’s intent. In the football example, the status update and the question already occupy much of the message. In the political joke, names and institutions coexist with the words that carry the incongruity. A system can find the conspicuous names even if it has little purchase on why the message is funny. The aggregate score can then credit a successful prediction while leaving its basis uncertain.

#### Approaches before the study

The paper places its work in a line of research on opinions and sentiment in short online texts. It cites studies of tweets, including [Robust Sentiment Detection on Twitter](https://md.research.elamur.ai/free/en/papers/barbosa-2010-robust-sentiment-detection-twitter-biased/), and describes the role of shared evaluations in making systems comparable. English-language results from [SemEval-2013 Task 2](https://md.research.elamur.ai/free/en/papers/nakov-2013-semeval-2013-task-2-sentiment/) and [SemEval-2014 Task 9](https://md.research.elamur.ai/free/en/papers/rosenthal-2014-semeval-2014-task-9-sentiment/) give it a point of comparison for the Italian campaign. In such an evaluation, teams address a common prediction task and the organizers apply a common scoring procedure, making differences between label-level results easier to inspect.

The English message-level system highlighted in the paper built large sentiment and emotion lexicons from Twitter. A lexicon connects lexical items with information that can be brought to a new text, such as a sentiment or emotion association. This offers an intermediate representation between memorizing a tweet and treating all of its words as interchangeable. The work the authors cite includes the [NRC-Canada sentiment system](https://md.research.elamur.ai/free/en/papers/mohammad-2013-nrc-canada-building-state-art/) and [Emotional Tweets](https://md.research.elamur.ai/free/en/papers/mohammad-2012-emotional-tweets/). The latter is cited in connection with emotion lexicons, while the former concerns the system used for sentiment prediction.

For Italian, SENTIPOLC supplied labeled tweets and tasks for subjectivity, polarity, and irony at EVALITA 2014. The paper describes the leading Italian sentiment entry as using [distributional semantics](https://md.research.elamur.ai/free/en/concepts/distributional-semantics/). That entry organized ten million tweets into subjective, objective, positive, and negative categories and used the text associated with each category to derive numerical word representations for classifying further tweets. The authors’ description makes clear that learning from vocabulary need not mean giving each word an isolated indicator. The associations between words and their contexts can also be represented numerically.

Earlier irony research in the paper addresses a wider variety of clues. Work on English similes considered terms characteristic of ironic comparisons. Another approach looked at word sequences with gaps, which let expressions share a pattern without requiring their matching words to be adjacent. The paper also cites work designed to avoid direct dependence on particular words. Such work uses properties like the presence of an unusually rare word among common ones or the number of senses a word has. These approaches differ in what they preserve when they turn the text into evidence for a classifier. [Modelling Irony in Twitter](https://md.research.elamur.ai/free/en/papers/barbieri-2014-modelling-irony-twitter/).

The authors describe automatic irony detection outside English as less extensively studied. Their review includes work on Portuguese, Spanish, Dutch, and Italian, with [Dutch sarcasm detection in tweets](https://md.research.elamur.ai/free/en/papers/liebrecht-2013-perfect-solution-detecting-sarcasm-tweets/) among the examples. They point in particular to the Italian corpus work behind the shared task, which gave researchers annotated examples on which to compare predictions. This study extends the authors’ earlier Italian irony system to sentiment decisions and uses the corpus’s political topic label to ask a separate question about transfer. The shared task supplies a common target for comparison, while the topic annotation supplies a way to change the conditions under which the same targets are evaluated.

### The method, step by step

#### Assemble the examples and define the decisions

The experiments use Italian tweets from SENTIPOLC, which combines material from SENTI-TUT and TWITA. [Linguistic annotation](https://md.research.elamur.ai/free/en/concepts/annotation/) supplies the judgments that make supervised training and evaluation possible. Alongside the judgments about subjectivity, polarity, and irony, the collection marks whether each tweet concerns politics. The first set of judgments defines the answers the classifier is trained to predict. The political flag lets the researchers choose which tweets belong on each side of a transfer experiment. The reported feature groups describe the tweet’s text.

The dataset distributes tweet IDs in place of the message texts, a decision the paper attributes to Twitter’s privacy policy. The authors used the Twitter API to recover the texts and were able to retrieve only part of the original collection. Their training data contained 3998 tweets, compared with 4513 in the original training set. A tweet ID identifies an example, while the feature extraction procedure needs the words and characters of that example. The recoverable text therefore determines what the classifier can actually use during training. The paper points to the authors’ earlier Italian irony work for details of the text processing and tools it reuses.

The subjectivity decision assigns a tweet to the subjective or objective class. The irony decision assigns it to the ironic or non-ironic class. Each of those tasks has a direct pairing between its evaluation labels. Polarity requires an additional step because the annotations can express positive sentiment, negative sentiment, a mixture of the two, or unspecified polarity. Forcing a mixed tweet to count only as positive or only as negative would discard information that the annotation scheme preserves. The authors follow SENTIPOLC in forming separate binary decisions.

For positive polarity, the target class contains tweets marked positive and tweets with mixed sentiment. The other class contains negative and unspecified tweets. For negative polarity, the target class contains tweets marked negative and tweets with mixed sentiment. The remaining class contains positive and unspecified tweets. Mixed examples thus count towards the target class in each decision, whereas unspecified examples belong to the complementary class in each. The split changes what an error means. Missing the positive sentiment in a mixed tweet is an error for the positive decision even if the negative decision correctly recognizes the same tweet’s negative sentiment.

The flow is the same whether the authors use the shared-task setup, add a feature group to a baseline, or change which topic supplies the training and test data. The selected examples and the evidence given to the classifier vary across those comparisons.

From annotated tweets to classification scores The steps in order.

#### Represent words and selected meanings

The authors’ domain-dependent group contains word-based features and WordNet synset features. The label *domain dependent* reflects the type of information these inputs preserve. If a word or sense is common in a particular discussion, the classifier can exploit its identity. The paper’s cross-topic comparison tests whether access to those identities keeps helping after the subject of the messages changes. It leaves open the possibility that vocabulary features include both durable expressions of sentiment and associations specific to the training material.

The word-based group starts with the [lemma](https://md.research.elamur.ai/free/en/concepts/lemma/), the base form used to represent a word across inflections. Lemmatization lets related word forms share an input while preserving the distinction between different words. That distinction matters for the political example. Normalizing inflection can bring uses of the same word together, yet it leaves a particular person’s name distinguishable from other names. A classifier can therefore use normalized vocabulary to learn recurring expressions or to identify what and whom people were talking about.

The group also represents short sequences. A bigram is an [n-gram](https://md.research.elamur.ai/free/en/concepts/n-gram/) consisting of adjacent lemmas. It records which lemmas occur together and in what order. The skip-one feature takes a run of lemmas and retains the outer pair with a gap where the middle lemma occurred. It can match a pattern even when the intervening word varies. This extends what a purely adjacent sequence can capture while keeping a local relation between the matching words. Both representations preserve the identities of the lemmas they retain, so the adjective or verb in a familiar expression and the name in a familiar political phrase are equally eligible to become useful inputs.

Synset features introduce a different kind of identity. A WordNet synset groups words associated with a particular sense. The authors remove stop words for this procedure and use UKB to select the most likely WordNet sense for each remaining word. This is [word sense disambiguation](https://md.research.elamur.ai/free/en/concepts/word-sense-disambiguation/). A word that has several possible meanings is represented through the sense chosen in its context. Conversely, different words associated with the same sense can contribute the same synset feature. The representation can generalize across wording without giving up which meanings the tweet discusses.

This last property explains why the synset group belongs with the domain-dependent inputs. A classifier with access to sense identities can learn that a certain concept is common in a particular topic or class. Mapping words to concepts may help it recognize related vocabulary within that topic, even if the concepts carry little information about the label elsewhere. The relevant distinction is between learning that a specific sense occurs and measuring a property of sense inventories, such as how many candidate meanings a word has. The latter kind of information belongs to the broader description of the tweet.

#### Represent properties that can recur across topics

The paper describes groups for sentiment, grammatical categories, character properties, synonym information, and ambiguity. It treats these as domain-independent features in the general description of the system. These groups allow the classifier to share evidence across messages whose literal words differ. The adjective *independent* names the intended abstraction. It would take empirical evidence to show that the resulting measurements have the same distributions or predict the same labels in every topic.

The sentiment group gives the classifier information about sentiment beyond the identities of the words in a tweet. The character group represents properties of the characters used in the message. The grammatical group uses [part-of-speech tagging](https://md.research.elamur.ai/free/en/concepts/part-of-speech-tagging/), which assigns categories such as noun or verb to words in context. Grammatical categories let the representation capture some common structure even when the words filling those roles are different. They also leave more of a tweet’s subject matter implicit than a feature that identifies a political surname or a particular WordNet sense.

Synonym and ambiguity features draw on lexical resources too, but serve a different purpose from the synset identity features. Synonym information describes a word through the alternatives associated with it. Ambiguity concerns the range of meanings available for a word. The authors point to the number of associated synsets as an example of the more abstract properties they consider. The ambiguity feature can thus give two different words comparable descriptions even when the words have entirely different senses. The corresponding synset identity features would keep those senses separate.

The paper also situates abstract lexical signals in earlier work with properties such as reference-corpus frequency. A rarity measurement, for instance, can distinguish an uncommon word from frequent surrounding words without using the uncommon word itself as a predictor. Such examples explain why the authors view abstraction as useful for topic transfer. The implementation details in this paper are fuller for the word and sense groups than for the abstract groups. For text processing and feature extraction carried over from the earlier Italian irony work, the paper directs the reader to that work.

The transfer experiment uses a specifically named subset of the abstract groups. It includes sentiment, synonym, character, and ambiguity features. The general description also classifies grammatical features as abstract, and the feature addition study tests them, but the transfer configuration’s list omits them. The full configuration uses all the features. This matters when reading a transfer comparison between the abstract subset and the full system. The configurations differ in the inclusion of word and sense identities and, according to the lists reported for the experiment, grammatical features as well.

#### Train the classifier and score each class

The authors use a support vector machine, a supervised [machine learning](https://md.research.elamur.ai/free/en/concepts/machine-learning/) method that learns a decision boundary from labeled examples. A feature representation locates each training tweet relative to other tweets according to the information supplied about it. The classifier learns a separation for a binary decision from those representations and their labels. At test time it receives representations of new tweets and predicts their labels. The paper identifies the method and the experimental comparisons, while leaving implementation choices such as the kernel and tuning procedure unspecified.

The study changes the features supplied to the classifier in several ways. The ordinary benchmark comparison evaluates the proposed system against the leading SENTIPOLC results. The feature analysis starts from a common word-based baseline and adds one feature group at a time, including synsets as one addition. This common starting point makes it possible to see how a group affects results in the presence of word features. The topic-transfer comparison instead asks how well whole configurations work when trained on one topic and tested on the other. One uses words and synsets, one uses the specified abstract subset, and one uses all the features.

For each binary decision, the evaluation assigns an F-measure to each class. For a class such as ironic, precision concerns how often a tweet predicted to be ironic bears that label, while recall concerns how often the classifier finds tweets that actually bear it. The F-measure summarizes both. The same calculation can treat non-ironic as the class of interest. The paper describes the official score as the arithmetic mean of the class F-measures, which can be written as follows.

```
F̄ = mean(Fₐ, Fᵦ)
```

F̄ is the reported average for the binary decision. Fₐ is the F-measure for the first class, and Fᵦ is the F-measure for its complementary class. The function `mean` takes their arithmetic average, giving each class equal weight in that reported score. The bar over F marks the average, the subscripts identify the classes, and the equals sign states how the average is obtained. The parentheses enclose the inputs to `mean`, and the comma separates them.

Equal weight in the final average makes it possible for performance on one class to offset performance on the other. For that reason the paper gives class scores as well as averages in its main benchmark comparison. In subjectivity, the first score concerns subjective tweets and the complementary score concerns objective tweets. In polarity, the complementary label always refers to the particular decision being evaluated. In irony, the complementary score directly captures how well the classifier deals with non-ironic tweets. Keeping those meanings in view is essential when comparing the benchmark results.

### Experiments and results

#### The shared-task comparison

The benchmark experiment follows the SENTIPOLC evaluation procedure and compares the authors’ system with the best results reported from the shared task. The authors’ 3998 retrievable training tweets came from the original training collection of 4513. The comparison is therefore anchored to the benchmark’s data and scoring framework, with the recovery constraint on the authors’ training examples. The best shared-task scores are external comparison points. The word-based baseline used later to measure feature contributions is a separate reference within the authors’ experiments.

For subjectivity, the authors’ average F-measure is 0.715, and the best SENTIPOLC average is 0.714. The near tie conceals a shift in where correct predictions are made. The authors obtain 0.866 on subjective tweets, compared with 0.828 for the shared-task comparator. On objective tweets they obtain 0.564, while the comparator scores 0.601. The authors’ system is thus stronger on the class concerned with the presence of a viewpoint. A reader interested in reliably identifying objective messages would draw a different comparison from the one suggested by the overall ranking.

The positive polarity decision gives the authors a clearer lead in the arithmetic average. Their score is 0.697, compared with 0.675 for the best SENTIPOLC result. Yet the comparator is substantially better on the target class of positive and mixed tweets, scoring 0.823 against the authors’ 0.554. The authors score 0.839 on the complementary class of negative and unspecified tweets, against 0.527 for the comparator. The average lead consequently reflects the authors’ much stronger result on the complementary class. A use that seeks to retrieve positive statements should read the target-class score directly.

Positive polarity systems on SENTIPOLC by average F-measure The authors’ system has the higher average across the positive and complementary classes.

**The numbers**

| System or setting | Average F-measure |
| --- | --- |
| Best SENTIPOLC entry | 0.675 |
| Authors’ system (this paper) | 0.697 |

The main results table gives 0.680 for the authors’ average on negative polarity and 0.679 for the best SENTIPOLC average. The discussion of this task gives a conflicting comparator of 0.675. The main table gives the class results alongside the averages, making it the appropriate basis for that comparison. On negative and mixed tweets it reports 0.619 for the authors and 0.717 for the comparator. On positive and unspecified tweets it gives 0.741 for the authors and 0.641 for the comparator. As on positive polarity, the authors’ strength is in handling the complementary label, while the comparator has the better score on the sentiment the decision is named for.

For irony, the main benchmark table reports an average of 0.588 for the authors and 0.576 for the comparator. The authors obtain 0.260 on ironic tweets and 0.916 on non-ironic tweets. The shared-task comparator obtains 0.355 and 0.796, respectively. The body of the paper prints 0.059 for the authors’ irony average, inconsistent with the main table and the accompanying class scores. The comparison here uses the main table. Its result is an improvement on the official class average accompanied by a lower ability to identify the ironic class as scored by F-measure.

These figures give the authors a higher reported average in the benchmark table for each binary decision. The size and source of the lead vary. The subjectivity and negative polarity averages are close, even though the systems operate quite differently across the classes. Positive polarity shows an appreciable average separation alongside a reversal for the target class. Irony presents a particularly uneven distribution of performance, with the authors’ non-ironic score far above their ironic score. The results give several ways to compare the systems depending on which decisions matter.

#### Training and testing on different subjects

The transfer experiment changes the relationship between the training and test topics. In one direction, the classifier learns from political tweets and is evaluated on non-political tweets. In the other, the classifier learns from non-political tweets and is evaluated on political tweets. Each direction is repeated for subjectivity, positive polarity, and negative polarity. In any given direction and task, the configuration using words and synsets, the configuration using the abstract subset, and the full configuration are compared on the corresponding test topic.

The directions have different meanings. When the training data are political, the question is whether evidence learned from that discussion remains helpful when predicting labels on other subjects. When politics supplies the test set, the question is whether evidence learned elsewhere can handle the political tweets. A reliable feature can contribute in both directions, but the test collections and the associations available during training are different. The paper reports the directions separately, allowing a reader to see where an advantage repeats and where it depends on which topic is held out.

For subjectivity, the abstract subset leads in both directions. With political training and non-political testing it scores 0.767, against 0.734 for words and synsets and 0.747 for the full configuration. With non-political training and political testing it scores 0.746, against 0.672 for words and synsets and 0.689 for all features. The political test case therefore shows the same ordering as the non-political test case. Access to the additional word and sense evidence goes along with lower scores than the abstract subset in the subjectivity comparisons, even though those evidence types can be useful in the benchmark.

Subjectivity feature sets across SENTIPOLC topics by average F-measure The abstract feature subset leads whether the test tweets are political or non-political.

**The numbers**

| System or setting | Average F-measure |
| --- | --- |
| Political to non-political, words and synsets | 0.734 |
| Political to non-political, abstract subset (this paper) | 0.767 |
| Political to non-political, all features | 0.747 |
| Non-political to political, words and synsets | 0.672 |
| Non-political to political, abstract subset | 0.746 |
| Non-political to political, all features | 0.689 |

Negative polarity also favors the abstract subset in both directions. With political training and non-political testing it scores 0.671. Words and synsets score 0.614 and the full configuration scores 0.663. With non-political training and political testing the abstract subset scores 0.624, compared with 0.554 for words and synsets and 0.567 for all features. One implication concerns the role of vocabulary in a political test set. Even when the target messages contain political names or terminology, the broader properties give the better reported result if the training examples come from outside politics.

Positive polarity behaves differently. With political training and non-political testing, the abstract subset scores 0.443, below the word-and-sense configuration at 0.555 and the full configuration at 0.583. With non-political training and political testing, the abstract subset scores 0.736, ahead of words and senses at 0.631 and the full configuration at 0.728. The positive-polarity result depends on which topic supplies the training examples. The exception is important because it occurs in the same transfer experiment and under the same evaluation procedure as the comparisons favoring abstraction.

Positive polarity feature sets across SENTIPOLC topics by average F-measure The full feature set leads when testing outside politics, while the abstract subset leads on the political test tweets.

**The numbers**

| System or setting | Average F-measure |
| --- | --- |
| Political to non-political, words and synsets | 0.555 |
| Political to non-political, abstract subset | 0.443 |
| Political to non-political, all features (this paper) | 0.583 |
| Non-political to political, words and synsets | 0.631 |
| Non-political to political, abstract subset | 0.736 |
| Non-political to political, all features | 0.728 |

As the authors report, the abstract subset beats the domain-dependent configuration in five out of six transfer comparisons. It also beats the full configuration in five out of six. These comparisons are scores from the respective topic-held-out test sets. They are most informative within a given decision and direction, where the feature configurations face the same evaluation condition. Comparing one direction’s score with the reverse direction’s score also changes the tweets on which F-measure is computed, so the values cannot by themselves tell how difficult politics is as a target domain.

The authors omit irony from this experiment because they judge the data insufficient for training an effective classifier under the topic split. To illustrate the scarcity, they report only 39 ironic non-political tweets in the test set. The absence of an irony row means the study provides no matching transfer result for the task where the benchmark’s prominent textual features appear especially political. Its irony results concern performance and feature associations in the ordinary benchmark setting. That evidence can identify a reason to question portability, while leaving the size and direction of any transfer effect open.

### What the ablations show

#### Add one group to the word-based baseline

The feature analysis measures what happens when an additional group is supplied to a common baseline. The baseline uses word-based evidence, and the additions are ambiguity, synsets, sentiment, grammatical categories, synonym information, and character features. Each row of the paper’s analysis gives the class F-measures and the class average for a binary decision. The comparison isolates what a group contributes alongside the baseline. A group could work differently on its own, and a group added to the full system could interact with evidence already present there.

Subjectivity shows a large change in the balance between the classes. The baseline average is 0.589, with 0.842 on subjective tweets and 0.335 on objective tweets. Adding synsets raises the average to 0.689, a gain the table reports as 0.1. The objective score rises to 0.542, while the subjective score is 0.835. The contribution is thus concentrated in the class the baseline handles poorly. Synsets let the classifier share evidence between words that map to the same sense, while retaining information about the concepts discussed. The comparison shows that this representation helps in the benchmark setting, although it does not establish which selected senses account for the improvement.

Sentiment features also help subjectivity, giving an average of 0.684 and an objective-class F-measure of 0.520. The improvement column reports 0.095, whereas the accompanying prose gives 0.95. The table makes the relevant comparison explicit. Grammatical features yield an average of 0.647 and character features yield 0.648. These additions differ in the details of their class results, but each improves recognition of objective tweets relative to the baseline. Taken together, the results suggest that the baseline has enough evidence to find many subjective tweets and benefits when the new inputs give it a better basis for recognizing the alternative.

Ambiguity and synonym features give subjectivity averages of 0.585 and 0.583, respectively. Their difficulty is visible in the objective class, where the scores are 0.327 and 0.322, compared with the baseline’s 0.335. Their presence gives the classifier extra descriptors of words without supplying evidence that solves its main source of error in this comparison. That result concerns these groups as implemented and added to this baseline. It leaves open whether different lexical descriptors or interactions with the other groups would behave differently.

The baseline for positive polarity scores 0.668. The character addition gives the best average among the reported single-group additions, at 0.683, with a reported improvement of 0.015. Sentiment features reach 0.678, and ambiguity and grammatical features give smaller increases in the average. The authors emphasize the apparent importance of the existing word patterns for this task. The feature experiment supports that reading in the sense that the word-based starting point already performs close to the settings with individual additions. It does not identify a particular phrase or word as the reason for the positive polarity baseline’s performance.

The negative polarity baseline averages 0.6145. Its largest increase comes from adding sentiment features, which yields 0.655 and a reported improvement of 0.040. The negative target class moves from 0.509 to 0.578, and the complementary class moves from 0.720 to 0.731. The character and grammatical additions also help, with averages of 0.641 and 0.630 and reported gains of 0.026 and 0.015, respectively. For this decision, sentiment information adds something beyond the word patterns already available, and the target class benefits more visibly than it does from most other additions.

The ambiguity and synonym results qualify the paper’s broad statement about those groups contributing little. Neither gives a strong improvement in this analysis. The table does show small increases in some decisions, such as the negative polarity averages of 0.623 with ambiguity and 0.617 with synonym features. Treating the groups as uniformly harmful would erase those cases. Their effects are smaller and less consistent than the stronger additions, and the comparisons provide no uncertainty estimates for deciding whether the small gains would recur.

For irony, the baseline’s class average is 0.5565. Its ironic-class F-measure is 0.2 and its non-ironic score is 0.913. Adding synsets gives 0.571 on the average, 0.239 on ironic tweets, and 0.903 on non-ironic tweets. This is the strongest reported single-group addition for irony. The character group also yields a higher average of 0.563, with 0.212 for irony and 0.914 for non-irony. The prose says that only synsets improve the score, while the table also reports a 0.007 gain for characters. The remaining named additions yield lower averages than the baseline. These results place the strongest observed increment in the sense features and show a smaller gain from character evidence.

#### Examine the words and senses associated with the labels

The authors also rank textual features using information gain. This measure asks how much knowing a feature helps resolve uncertainty about the class in the observed data. If a particular word occurs chiefly with one label, its presence can be informative even if the word has no intrinsic relation to the meaning of the label. Ranking aids inspection of the associations that a classifier has available. It differs from removing a feature and measuring the change in predictions, which would address its contribution in the presence of other features.

The table of leading features includes political names and terms in the benchmark tasks. The paper points to names such as Monti and Grillo when discussing the recognition of negative tweets. Repeated criticism of a person offers a straightforward explanation for why a name can help distinguish classes within a collection. The same person can be mentioned approvingly, discussed in a neutral report, or disappear completely from the test vocabulary. The association between the name and the label depends on how the name is used in the collected messages.

Irony gives the most striking interpretation in the paper. The authors identify four names of politicians among the ten leading textual features they discuss for this task. They name Passera, Bersani, Monti, and Grillo, and point to additional language associated with politics and government. The political joke in the introduction shows how these associations can arise. Names are present because the joke has real targets, and if similar tweets recur, the target’s name helps identify the collection’s ironic examples. Recognizing the name still leaves the interpretation of the joke itself unresolved.

The authors propose two explanations for the usefulness of word patterns in the benchmark. Words can form expressions characteristic of a class, such as wording that conveys disapproval. They can also identify topics represented unevenly across the labels, so that a test set sharing the training topics rewards vocabulary tied to those topics. These explanations can both apply to the same feature group. A list of high-information features makes the second mechanism plausible by showing that conspicuously topical signals have predictive value alongside any expressions of sentiment.

#### Change the topic and compare whole configurations

The transfer experiment gives a more direct test of what happens when these associations have to generalize. The finding for subjectivity is especially clear because the abstract subset leads the other configurations regardless of which topic supplies the test set. Negative polarity shows the same ordering. Positive polarity gives the reverse ordering when the system learns on political tweets and is tested on non-political ones. The feature rankings and transfer comparisons therefore support a conditional account of word-based evidence. Familiar topics can help explain why vocabulary matters on the benchmark, while its effect under a topic change depends on the decision and the direction of transfer.

The abstract subset also often beats the full configuration. The authors interpret this as evidence that adding topic-sensitive inputs can introduce noise when the domains differ. The comparison is useful because it asks whether the classifier can take advantage of the broader evidence while also having access to the more specific signals. In several test conditions, the broader evidence works better on its own. Since this is a comparison of bundles, it cannot identify whether the result comes chiefly from names, lemmas, short patterns, selected senses, or interactions among them. The omission of grammatical features from the listed abstract transfer subset further limits a reading in which the full comparison changes only the presence of lexical identity.

These analyses address different questions about the same classifier. The one-group additions show where giving the word-based baseline extra information helps, and which class accounts for the change. The rankings show which lexical indicators are associated with labels in the benchmark data. The topic experiments show what happens to aggregate performance when different feature sets have to learn in one collection of topics and predict in another. The argument for topic sensitivity is strongest where the evidence from these comparisons converges. For irony, the available comparisons stop at feature additions and within-benchmark associations.

### Limitations

#### Limits the authors identify

The authors explicitly report that the redistributable dataset contains tweet IDs and that they retrieved only some of the original texts. The training numbers, 3998 recovered against 4513 in the original collection, establish the size of the training input they could use. The original texts would be needed to examine the unavailable examples directly. The authors keep the benchmark procedure as a point of comparison, while the retrieval constraint qualifies the claim that their training data match the earlier evaluation exactly.

The authors also identify the shortage of ironic tweets under the topic split. Their example of 39 ironic tweets in the non-political test set illustrates why the relevant class becomes difficult to study once the corpus is divided. They judge the data inadequate to train a useful cross-topic irony classifier. As a result, the paper’s claim about cross-topic performance has direct evidence for subjectivity and the polarity decisions. The connection to irony rests on the role of words and synsets in the regular evaluation and the political prominence of the highly ranked textual features.

The discussion also recognizes that word-based evidence has value in a known domain. The authors argue that the words frequently associated with a class can help while subject matter, and possibly the time period, remains similar. Their suggestion about time follows from the kinds of names and political associations they observe. The experiments themselves compare political with non-political tweets. They offer no chronological train-test comparison that would show how well the same evidence survives changes in the events or people under discussion.

#### Limits of the comparison

The political flag supports a practical topic split, but its non-political side groups messages by the absence of politics. The two sides are therefore unlike a comparison between two narrowly bounded subject areas. The football example makes one kind of non-political message concrete, while the non-political test scores are averages over the corresponding subset of SENTIPOLC. A reader cannot use those averages to identify which non-political subjects transfer well, how unevenly those subjects are represented, or whether a small set of them dominates a particular score.

A topic split can change more than vocabulary. The kinds of messages people write and the distribution of sentiment labels can differ between the political and non-political collections. For a given decision and direction, evaluating every feature configuration on the same test tweets lets the comparison speak to the relative usefulness of their evidence. The asymmetry between directions remains harder to explain because each direction changes both the training and test collections. The positive polarity exception could reflect particular associations on one side, the examples available to train on, or the composition of the test set. The reported aggregate scores do not distinguish those explanations.

The transfer results show which configuration performs better when the topics differ. A stronger claim would be that a configuration loses no performance when topics change. Establishing that would require corresponding within-topic results, with test conditions that make the comparison interpretable. The ordinary benchmark is a shared-task evaluation over its available collection, whereas the transfer table is split by topic. Its scores establish relative performance under a topic switch. They do not directly estimate how much the same configuration falls or rises because of the switch.

Class averages further constrain interpretation. The regular benchmark includes class-level F-measures, making it possible to see that the authors’ irony advantage on the average coincides with a lower score on ironic tweets. The cross-topic table gives an average for each decision and feature configuration. It leaves unanswered whether, for instance, the abstract subset’s lead on negative polarity comes from better recognition of negative and mixed tweets, better recognition of their complement, or some contribution from both. Detailed performance on the class a user wants to retrieve is particularly important given the reversals apparent in the ordinary benchmark.

The point estimates are also reported without uncertainty intervals or tests of whether the differences would recur. The close benchmark averages on subjectivity and negative polarity establish the ordering of the reported scores. They leave the stability of those orderings unresolved. The feature tables contain several small changes that warrant the same care. The paper’s repeated direction of advantage across several transfer settings provides a pattern worth distinguishing from a single close comparison, while leaving the magnitude of a gain in another sample undetermined.

Finally, the feature analysis gives evidence about groups and associations. It does not remove each political name in turn, hold the other inputs fixed, and trace individual prediction changes. A feature can rank highly in information gain while duplicating evidence supplied by a correlated feature. The high-ranking names therefore show that the labels are associated with topic-specific words in this collection. The transfer results show that whole feature configurations are affected by the topic split. The experiments leave open the extent to which particular names, including the ones highlighted in the discussion, account for the performance differences.

### What came after

The authors close with plans to extend the work in two directions. One is to combine their features with the distributional approach of Basile and Novielli. The earlier approach uses associations derived from collections of tweets to represent words for sentiment classification. Bringing those representations into the system would give the classifier another way to share evidence across different wording. It would also leave an empirical question about which associations the representations preserve. Words can occur in similar contexts because they convey a similar evaluation, because they concern the same debate, or because both are true. The paper does not report the proposed combination or evaluate it under the political split.

Their other proposal is a cascade of classifiers, in which an earlier decision informs a later one. They give the example of first testing whether a tweet is subjective and then deciding whether it is ironic, motivated by their view that irony implies subjectivity. The shared-task experiments make these decisions separately. A cascade would turn the relationship between labels into part of the prediction procedure. If an earlier decision excludes some tweets from being considered for irony, its mistakes can also affect the later result. The paper gives the motivation for exploring this architecture and leaves its performance to future evaluation.

The proposed extensions concern different aspects of the problem raised by the experiments. Distributional representations would change what the classifier knows about the tweet’s words, while a cascade would change how the decisions depend on one another. The study leaves open whether either change would improve recognition of ironic tweets or allow irony detection to transfer across topics. No later citing study is identified that evaluates these proposals or extends the reported topic-transfer experiments.

## Cite

Cite as Francesco Barbieri, Francesco Ronzano and Horacio Saggion. 2015. How Topic Biases Your Results? A Case Study of Sentiment Analysis and Irony Detection in Italian. Proceedings of the International Conference Recent Advances in Natural Language Processing.

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

```bibtex
@inproceedings{barbieri2015how,
  title = {{How Topic Biases Your Results? A Case Study of Sentiment Analysis and Irony Detection in Italian}},
  author = {Francesco Barbieri, Francesco Ronzano and Horacio Saggion},
  booktitle = {Proceedings of the International Conference Recent Advances in Natural Language Processing},
  year = {2015},
  url = {https://aclanthology.org/R15-1006/}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
