Sentiment analysis on Italian tweets
Paper · 2013 · Valerio Basile and Malvina Nissim
Summary
A tweet can sound angry without saying anything hostile about the person named in it. It can also express criticism through words that look approving in isolation. Basile and Nissim study how far a simple sentiment analysis system can get with such messages when its evidence consists of preassigned scores for word senses. They build the resources they need for Italian and ask two questions of the resulting system. Can it recognize the overall tone of a tweet? Can it recognize the author’s attitude towards a particular person mentioned in a tweet? The system computes the same kind of score for both questions, even though the human judges receive different instructions.
The authors collect about 100 million Italian tweets in TWITA. They use frequent words from an Italian reference corpus to retrieve messages and check for words that also occur often in other languages. Separately, they build an Italian sentiment dictionary by transferring scores from SentiWordNet through resources that align word senses across languages and across versions of WordNet. For each word it recognizes, the classifier averages the positive and negative scores of the eligible senses, takes the difference, and adds that contribution to the tweet’s score. An optional filter leaves out words whose senses have especially different sentiment scores.
Human judges label two samples of 1,000 tweets each. In the generic sample they judge the message as a whole. In the political sample they judge the attitude toward Beppe Grillo, who is identified by a hashtag. The filter raises the best reported accuracy in each sample, and neutral is the class with the highest best F-score in both result tables. Negative sentiment is harder to recover, particularly in the table where the best negative recall is much lower than recall for the other labels. On both samples, always predicting the majority label, neutral, would yield higher overall accuracy than the best reported setting.
The paper’s account of which sample is harder contains an inconsistency. The authors describe target-specific classification as harder for their system, but the table captioned as target-specific gives the higher best accuracy, 0.554 against 0.514 for the table captioned as generic, in both cases with the filter. An example in the evaluation prose also points to a different table from the one containing its score. The underlying distinction between the tasks remains clear. The human judges know whose treatment to assess, whereas the classifier adds lexical scores over the whole tweet. The results show what that calculation can recover, alongside the importance of how a benchmark defines the opinion it asks a system to find.
Deep dive: Sentiment analysis on Italian tweets
Basile and Nissim build an Italian Twitter corpus and test how well word-sense sentiment scores classify whole tweets and opinions about a political target. · about 36 minutes to read
The problem and its context
From public messages to judgments of sentiment
The appeal of tweets as research material is that people use them for both ordinary conversation and public comment. At the time of the study, the paper describes them as messages of up to 140 characters. A collection can contain greetings, opinions on products, and reactions to political events. Some records also carry information about the sender, posting time, or location. The authors see an opportunity to study who voices an opinion and when or where it appears. To do that systematically, a researcher first needs a collection of messages in the language of interest and a way to recognize the attitudes expressed in them.
The classification problem begins with two questions that are easy to conflate. One is whether a statement expresses a viewpoint at all. The other is the direction of that viewpoint, which the paper calls polarity. A factual announcement and a personal judgment that balances praise with criticism can receive the same neutral label under the paper’s convention. The system therefore has a common output for several kinds of messages a human reader could distinguish. That choice determines what a successful prediction of neutral means and matters when interpreting how often the system makes it.
Polarity can also be assigned at different levels. An expression inside a tweet may be favorable even when the message as a whole is unfavorable. In its discussion of the English Twitter shared task at SemEval-2013, the paper distinguishes a task that asks for the polarity of an expression in context from a task that asks for the polarity of the message. Basile and Nissim use word-level scores as evidence for the latter. They evaluate the output at the level of the tweet, so their experiment gives no direct measure of how frequently an individual word receives the appropriate contextual interpretation.
A second distinction concerns the object of the opinion. Someone may criticize a politician for an accusation against another politician without expressing approval or disapproval of the person accused. A whole-message label can capture the criticism. A label about the accused person may reasonably be neutral. The intended unit of judgment is therefore part of the task specification, alongside the names of the sentiment classes. A request to classify the tweet and a request to classify the author’s attitude towards a named target can require different answers from exactly the same text.
The resource gap for Italian
The authors describe sentiment research as concentrated on English, including research outside Twitter. In their account, this reflects the availability of tools and data. A vocabulary of words with sentiment scores is useful only where the terms can be matched or transferred to the language being analyzed. An evaluation also needs messages that people can read and label in that language. The authors knew of neither a general Italian Twitter corpus nor an Italian polarity lexicon of the kind they needed. Their contribution consequently includes resource construction as well as a classification experiment.
They situate their approach among methods ranging from simple dictionary lookup to systems that learn from examples. The attraction of a lookup method is that it can produce a polarity prediction before a large collection of labeled tweets has been assembled. The human effort in this experiment goes into judging examples for evaluation. The dictionary supplies the scores used at prediction time, and the paper varies how the system combines them. The distinction matters because a large collection of Italian messages and a small collection of human judgments play very different roles in the study.
The paper describes existing ways of obtaining a polarity vocabulary. Some resources are constructed by hand. Others begin with words or senses that people have labeled and expand from those starting points. The authors also cite work that uses emoticons in tweets as evidence for sentiment. Such signals offer a route to obtaining labels from messages themselves. The Italian study takes a different route to its lexical scores. It starts with a resource that already has scores and looks for corresponding senses on the Italian side of a multilingual dictionary. Earlier work cited in the paper includes Recognizing Contextual Polarity in Phrase-Level Sentiment Analysis and Lexicon-Based Methods for Sentiment Analysis.
The paper gives a precedent for collecting tweets in a particular language. A study of Dutch tweets retrieved messages that contained words considered characteristic of Dutch. Its list was assembled manually. Basile and Nissim keep the idea of retrieval by representative words and replace manual selection with a procedure that starts from corpus frequencies. That change makes the selection steps repeatable when a suitable reference corpus exists. It also forces the authors to confront a concrete problem in using frequency alone. A spelling can be common in Italian and occur often in a different language, so a popular word is useful for collection only if it is also sufficiently distinctive.
The authors also cite earlier work in which sentiment inferred from Twitter vocabulary tracked opinion polls about Obama. The example establishes why a method built on words can be worth testing even when richer interpretation is possible. It concerns an association between tweet-based measurements and poll ratings. Agreement with a poll series and agreement with a reader about an individual tweet are different evaluation objectives. The Italian paper takes the latter as its experimental task and separately notes that the corpus could support aggregate studies with its time and location information.
Why short messages invite a simple first test
The authors give practical reasons for starting with a dictionary. Tweets often contain abbreviations, expressions particular to the medium, and syntax that can be hard for analytical software to process accurately. Tools developed for Italian may offer useful grammatical analysis on some inputs while struggling with these short messages. The paper raises this concern specifically in discussing syntactic parsing. A method based on lexical lookup can be applied once words have been segmented, assigned grammatical categories, and reduced to forms recognized by the dictionary.
That economy has consequences for the kinds of evidence the system can use. A grammatical category can help distinguish a word used as a noun from a similarly spelled word used as a verb. The same category tells little about whose action is being criticized or which word is within the scope of a negation. The authors treat these contextual decisions as harder than identifying the vocabulary that contributes to an approximate polarity score. Their experiment starts with the evidence that can be obtained from the resources they have and leaves a way to see which errors persist when that evidence is used systematically.
An additional difficulty lies inside the vocabulary itself. A dictionary organized by senses can assign different sentiment scores to different meanings of the same expression. To use those scores in a tweet, the system must either identify the intended meaning or combine the available scores without that decision. The paper chooses the latter option and asks whether the reliability of the resulting average can be judged from the spread of the scores. This is an issue even when the language of the message, the spelling of the word, and its grammatical category have all been identified correctly. It concerns word sense disambiguation, the task of determining which meaning a word has in a particular use.
The method, step by step
Finding Italian tweets
TWITA starts with messages retrieved via Twitter’s filter API from February 2012 to February 2013. The authors use the API’s ability to find messages that match selected words. A search can bring in a large number of tweets quickly, but it inherits the ambiguity of the search vocabulary. The method consequently starts with a broad list and uses an initial round of retrieval to see which other languages it attracts. The final collection relies on the cleaner set of search terms developed through that process.
The frequency source is ItWaC, a large Italian reference corpus. The authors take its 1.000 most frequent lemmas. A lemma is the conventional dictionary form representing a set of related inflected forms. At this stage, the list supplies plausible search strings. Their frequency makes it likely that searches will return messages, but it supplies evidence only about how frequently they occur in the Italian reference material. To find out whether they are suitable discriminators, the authors need evidence about other languages as well.
The first searches expose the problem. The researchers apply language identification to the returned messages, and Portuguese is the most common identification in this initial retrieval. English and Spanish follow, with Italian after them. This describes the trial retrieval using the broader vocabulary, before the stricter selection. A search term can be recognizably Italian to someone reading it in Italian context and still retrieve many messages written in another language. The initial batch indicates which competing languages need to be considered when screening the vocabulary. The authors use the language identifier langid.py.
The next step removes search terms that are frequent in a competing language, using Google N-gram frequency information. The paper identifies 20 terms in the final search list. They include place names such as Roma and Milano, words such as scuola and grazie, and common forms such as della and anche. This mix suits a collection intended to contain everyday messages across topics. The authors point out that collecting messages on a particular subject would call for a more targeted vocabulary. They later identify a political subset within TWITA by hashtag, after the general corpus has been collected.
For each retained tweet the corpus preserves the username and timestamp, together with geographic coordinates where they are available. These fields have uses separate from sentiment classification. A researcher examining the corpus could associate a message with its time of posting or group messages according to available location data. The sentiment system uses scores from the tweet’s words. Location and sender information enter neither the lexical contribution of a word nor its assignment to the intended target.
Preparing words for dictionary lookup
Raw messages often contain strings that a tool for ordinary Italian text may handle poorly. A hashtag identifies a tag, a mention names a user, and a URL points outside the message. The authors use generic labels in place of these strings for grammatical tagging and dictionary-form analysis. They then restore the original information. A later user of the corpus can still recover the actual hashtag, which is essential to selecting the Grillo sample. The analysis tools meanwhile handle placeholders where a user name or web address would otherwise be passed through as ordinary text.
The first linguistic operation is tokenization, which divides a message into units for further processing. The authors use UCTO, whose segmentation is rule-based. They then use TreeTagger with its Italian parameter file for part-of-speech tagging. A tag records a word’s grammatical category. The scoring experiment focuses on nouns, verbs, adjectives, and adverbs. A third tool, morph-it!, performs lemmatization, recovering the base form used for lexical lookup. These operations connect what appears in the tweet to how senses are listed in a lexical resource.
Consider what must be available when the scoring system reaches an adjective in a message. It needs a unit recognized as a word, its dictionary form, and a tag marking it as an adjective. The dictionary can then return senses belonging to that form and category. A matching noun with the same spelling supplies a different grammatical reading and is excluded by the lookup rule. Multiple adjective senses can still remain. The steps leading up to lookup narrow the search to plausible lexical entries without determining which adjective sense the author had in mind.
The same category information serves a separate purpose when the authors compare experimental settings. In one setting they may admit adjectives and in another they may admit a combination of categories. Inside a setting, the tag still controls which dictionary senses match an eligible word. Choosing which categories to score across a tweet and choosing which entries to consult for a particular word are therefore two distinct uses of the grammatical information.
Moving the sentiment scores into Italian
The lexical resource starts from a synset, a grouping of expressions that represent the same sense. Organizing entries this way means that a word used with different meanings can appear in several groups. It also offers a way to align meanings across languages. If an Italian synset corresponds to an English synset, a sentiment value associated with the English group can serve as a value for the corresponding Italian group. The transfer happens through the sense alignment, so it depends on which groups correspond and which are represented in both resources.
SentiWordNet supplies positive, negative, and objective values for 117,660 synsets, each value in the interval from zero to one. The distinction between the positive and negative fields allows a sense to carry evidence of each kind. The objective field is part of the original resource. In the rule that produces a signed score for an Italian word, the paper uses the positive and negative values. The classifier’s neutral outcome should therefore be read in terms of those contributions. It is not a direct projection of SentiWordNet’s objective field. The scores come from SentiWordNet 3.0.
MultiWordNet supplies the alignment between Italian and English synsets. There is a version mismatch, however. Its English references belong to WordNet 1.6, whereas the scores the researchers want to transfer belong to WordNet 3.0. A synset identifier in one version cannot simply be used as its counterpart in the other. The authors use an existing automatically generated mapping between the versions. In effect, following an Italian synset to its English counterpart gives an older reference, the version mapping connects that reference to the newer one, and the newer group supplies the sentiment values.
The completed lexicon covers less than one third as many synsets as SentiWordNet. The authors attribute the reduction to the alignment through the older version. An Italian entry without a suitable path through the resources cannot acquire scores by this procedure. There is also a consequence for how the resulting senses can be used. Their ordering no longer reflects frequency, so the authors cannot treat the first aligned sense as the most common meaning. They need a rule that can work with the set of retained senses without relying on that ordering.
The scoring path below brings these stages together. The sense scores are prepared separately from the messages. The two resources meet at the lookup of a dictionary form and grammatical category.
From Italian tweet collection to polarity assignment
The steps in order.
Turning sense scores into word scores
The classifier accepts a processed tweet and a setting specifying the grammatical categories to use. For an eligible token, it finds the synsets in the Italian resource that match both its lemma and its tag. With a successful match, the positive value is averaged across those synsets, and the negative value is averaged over the same set. Each sense has the same influence within an average. The paper gives the operations in prose. The following notation makes explicit what is combined at each point.
P(ℓ) = mean{p(s) : s ∈ S(ℓ)}
Here ℓ denotes the lemma as used with the token’s grammatical category. S(ℓ) is the collection of eligible synsets for that lemma and category, and s denotes a member of it. The symbol ∈ means that s belongs to that collection, and the colon reads as “for the members satisfying this condition.” The braces collect the values with one contribution per eligible sense. The function p gives a synset’s positive score, mean is the arithmetic average, and P is the resulting positive average for the lemma in that category. The equals sign identifies the value assigned to P(ℓ).
N(ℓ) = mean{n(s) : s ∈ S(ℓ)}
Here N is the negative average. The symbol ℓ again identifies the lemma with its grammatical category, S(ℓ) is its set of matching synsets, and s is a member of that set. The function n returns a synset’s negative score. The braces and the membership condition collect one negative value per sense, and mean averages them. The equals sign assigns that average to N(ℓ).
d(ℓ) = P(ℓ) − N(ℓ)
Here d is the signed contribution associated with ℓ, the lemma in the relevant category. P and N are its positive and negative averages. The minus sign instructs the system to subtract negative evidence from positive evidence. The result may favor either direction or balance at zero. For a lemma missing from the database, the paper assigns a contribution of 0 directly. In that case there are no matching scores to average.
A word near zero can thus reach that position in different ways. Its senses may have little sentiment attached to them, or its positive and negative evidence may offset. A word absent from the transferred dataset also adds nothing, for a different reason. The computation uses the signed contribution in all of these cases. It does not expose those differences to the final classifier as distinct kinds of evidence. This is especially relevant when the human label neutral can already stand for several different judgments.
Averaging all eligible senses makes the score relatively straightforward to compute. It also assumes that the combination offers a useful approximation to a particular use. If the senses are similar in sentiment, changing which one is intended may matter little for the score. If they vary widely, their average can describe none of them particularly well. The authors investigate that second situation by adding a filter that depends on the scores of the individual senses.
Filtering words whose senses disagree
The authors call a word’s tendency to have sharply different polarity across senses polypathy. They measure it with the standard deviation of the signed sense scores. Standard deviation characterizes dispersion around an average. The quantity therefore addresses a different question from whether the mean favors approval or disapproval. Two words with similar mean contributions can have very different spreads across their meanings.
D(ℓ) = sd{p(s) − n(s) : s ∈ S(ℓ)}
Here D denotes the polypathy of ℓ, the lemma considered in the token’s grammatical category. The function sd denotes standard deviation. The paper does not specify a sample or population convention for it. For each synset s in S(ℓ), the matching set, p(s) is positive sentiment and n(s) is negative sentiment. The minus sign gives their signed difference. The braces collect those differences across the eligible synsets. The colon and ∈ specify which synsets contribute, and the equals sign defines D(ℓ) from their dispersion.
The paper reports an empirically chosen threshold of 0.5 for the experiments. When the filter is enabled, a token whose polypathy is above the threshold is omitted from the tweet calculation. The paper illustrates the measurement with the English SentiWordNet entries weird at .62, stunning at .61, conflicting at .56, and terrific at .56. These are examples of variation over senses in the source lexicon. They are not examples of errors observed on the Italian test messages. Their role is to clarify what the filter considers too unstable to use.
Filtering relies on the lexical distribution alone. A word that varieties of usage make difficult for the average may still have an obvious meaning to a person reading the entire tweet. The procedure discards its contribution even in such a case if its spread passes the cutoff. A word with consistently positive senses can still contribute in a message that uses it sarcastically. In that case the problem is how the context changes the apparent stance, and the spread of dictionary scores offers no direct indication of it.
Combining contributions over a tweet
The final score is additive. The system uses the tokens whose tags are included in the current setting and whose contributions survive any active filtering. Repeated appearances count as tokens in the message. Each contribution is the same lookup-based value wherever a lemma and category match in the same way. The paper characterizes this as combining lexical polarity over the complete tweet.
T(x) = Σₜ∈A(x) d(ℓₜ)
Here x is a tweet, T(x) is its total score, and A(x) is the collection of token occurrences admitted under the chosen settings. The index t denotes an occurrence in that collection, with ∈ indicating membership. The symbol ℓₜ is the lemma and grammatical category attached to occurrence t, and d is the signed contribution defined above, including the assigned value for missing entries. The Σ operator adds the contributions, and the equals sign defines the total.
The paper pairs this signed total with the labels positive, negative, and neutral. On the natural sign reading of the rule, a positive total favors positive, a negative total favors negative, and a zero total gives neutral. The authors describe the sum and the label set without specifying a separate rule for a band around zero. In particular, the reported cutoff of 0.5 concerns variation across senses before summation. It is a filter for word contributions. It does not specify how positive or negative a completed tweet score must be.
The sum makes the system easy to understand in terms of its inputs. When the filter suppresses a word that would have contributed to the total, the remaining terms determine whether the score keeps its direction, reaches zero, or changes direction. Admitting different grammatical categories changes the sum in a similar way. The system can therefore make different predictions about an identical tweet with the same dictionary, depending on which pieces of lexical evidence are allowed into the calculation.
Defining the human judgments
The authors prepare their evaluation samples separately from the lexical scoring. They use linguistic annotation to turn individual judgments into reference labels. The annotators see the tweets through a web interface and choose positive, negative, or neutral under simple instructions. For the generic sample, the question concerns the whole message. For the topic-specific sample, the question concerns the author’s position toward the subject named by the hashtag. The system receives no comparable change in its scoring procedure when moving to the second task.
The political target is Beppe Grillo, identified in the selection by the hashtag for his surname. A tweet in the paper questions how Vendola can call Grillo a populist and directs its ridicule at Vendola. The authors read the tweet as unfavorable to Vendola and fairly neutral toward Grillo. This case shows why a general polarity judgment can be a reasonable account of the message’s tone and still miss the requested attitude. The example does not require assigning independent positive and negative labels to every expression. It requires knowing which person is being evaluated.
The reference label reflects an absolute majority where one exists. With no such majority, the assigned label is neutral. Neutral also covers objective statements and subjective messages in which the position is neutral or approval and disapproval balance. A neutral reference label can therefore have a basis in the message or in the procedure for settling annotation disagreement. That distinction is available to someone reading the experimental protocol even though both cases enter the score under the same label.
The paper gives no supervised fitting procedure for tweet labels. The Italian lexicon is acquired through alignment, and a tweet is scored by the operations above. The experimental variables are the categories admitted and whether the dispersion threshold is active. The authors describe the threshold as empirically determined. They do not identify a separate development split for choosing it, and the result tables report the best settings found across the runs on the evaluation samples. This makes the tables an account of what the tested configurations achieved on those samples.
Experiments and results
Corpus size, language selection, and the reference sets
The complete TWITA corpus contains about 100 million tweets identified as Italian. The authors inspect a subset of 1,000 tweets to estimate language precision, the share of checked retrievals that are in the desired language. They report 99.7% for that subset. The errors they identify are very short messages in Spanish. This check concerns which language the text is written in. It is independent of whether a positive, negative, or neutral label can be assigned correctly.
A geographic visualization gives a separate check on the collection. The paper reports that roughly 2.5% of the tweets include device coordinates. It describes drawing a random sample of one million tweets and plotting coordinates to make a map cropped to Europe. Italy stands out on the map. The picture indicates concentration in the expected area, while the hand inspection gives the explicit estimate of language precision. Location alone cannot establish language, and the plotted points give no direct information about tweets for which there are no coordinates.
The generic sentiment sample consists of 1,000 randomly selected TWITA tweets. The label counts are 94 positive, 301 negative, and 605 neutral. In the topic-specific sample, 1,000 tweets are randomly chosen from messages bearing the Grillo hashtag. It has 293 positive, 145 negative, and 562 neutral labels. So the tasks differ in both the question put to the judges and the observed class distributions. In the generic set, negative labels are more numerous than positive labels. In the hashtag sample, positive labels are more numerous than negative labels.
Three independent native speakers judge each sample. The share of messages defaulting to neutral for lack of an absolute majority is 7.7% of the generic sample and 6.9% of the target-specific sample. These figures give the amount of neutral labeling directly attributable to that fallback. The overall neutral counts also include messages the annotators had a basis for judging neutral, such as factual statements or text expressing a balanced attitude under the paper’s instructions.
Fleiss’ kappa summarizes agreement among the annotators while accounting for chance agreement. It is 0.321 on the generic sample and 0.397 on the topic-specific sample. The authors interpret the higher value as evidence that providing a specific target makes annotation easier. The actual comparison is between separate samples judged under different instructions. The result gives the observed ordering of agreement. It leaves open how much of that ordering comes from identifying the target and how much comes from differences in the messages or distributions.
What the scoring measures
Overall accuracy measures the share of tweets whose predicted label is the reference label. The authors also report three measures for each polarity. Precision asks how many tweets assigned that label by the system really have it in the reference. Recall asks how many tweets carrying that reference label the system manages to find. F-score combines precision and recall. A positive prediction can contribute to low positive precision when it is wrong, and the same error can contribute to low negative recall if negative was the reference label. Class-specific measurements help show the direction of errors that an accuracy figure alone cannot describe.
The rows headed “best” in the paper should be read independently. The part-of-speech setting chosen for the highest positive recall can differ from the one chosen for the highest positive precision or F-score. Even within one class and one filter condition, the three extrema do not necessarily describe the behavior of one configuration. The overall accuracy has its own winning setting, and the tables identify the relevant categories alongside each number. This presentation reveals how far tuning a lexical input can take different metrics on the sample.
The evaluation prose contrasts the lexical results with guessing, without giving a numerical result for a guessing system in the tables. The label counts also permit a simple reference point the authors do not tabulate. A classifier predicting neutral on every item would be correct on the 605 neutral cases among the 1,000 generic tweets and on the 562 neutral cases among the 1,000 target-specific tweets. On each sample, those counts imply higher accuracy than the lexical runs reported as best. The neutral-only rule would return no positive or negative predictions. Thus it answers the accuracy comparison while leaving the class-level objective of finding explicit opinions unaddressed.
Accuracy under the two filter conditions
The chart follows the printed captions for the dataset names. Each row represents the part-of-speech setting that gave the highest accuracy for that particular sample and filter condition. In both samples, the best accuracy when the filter is on comes from adverbs alone. When the filter is off, adverbs alone lead in the table captioned generic and adjectives alone lead in the table captioned topic-specific.
Best accuracy on the generic and Grillo tweet sets, labeled by table captions
Filtering words whose senses have dispersed scores raises the best reported accuracy in each set.
The numbers
| System or setting | accuracy |
|---|---|
| Generic, adverbs without filter | 0.487 |
| Generic, adverbs with filter (this paper) | 0.514 |
| Grillo, adjectives without filter | 0.505 |
| Grillo, adverbs with filter | 0.554 |
There is an internal conflict worth retaining alongside those numbers. The evaluation narrative describes system performance as lower for the topic-specific task, whereas the table captioned topic-specific has the higher best accuracy with or without filtering. The prose also cites positive recall of 0.701 for nouns, verbs, and adjectives without filtering and directs the reader to the generic table. The entry appears in the table captioned topic-specific. The results can be associated with the printed captions, as above, but the paper does not settle which assignment the authors intended. Claims that depend on the absolute ordering between datasets are therefore uncertain.
Results by polarity
In the table captioned generic, the best neutral F-score without a dispersion filter is 0.637 with adjectives. When the filter is enabled it is 0.676 with adverbs. The best filtered neutral precision is 0.623 with nouns, adjectives, and adverbs, and the best filtered neutral recall is 0.829 with adverbs. The adverb setting is consequently the best by both neutral recall and neutral F-score in that condition, while the precision optimum comes from a broader set of categories.
The best filtered positive recall in the generic-captioned table is 0.593 with nouns, verbs, adjectives, and adverbs. The same best recall of 0.593 is available without a filter using nouns, verbs, and adjectives. Filtered positive F-score peaks at 0.256 with all the categories. Its precision peak is 0.163, also with all the categories. These values show the difference between reaching a substantial share of the positive reference items and issuing positive predictions reliably. The latter proves difficult in this table.
For negative sentiment in the generic-captioned table, the strongest unfiltered recall is 0.150 with nouns and adverbs. The best filtered recall is 0.106 with nouns, adjectives, and adverbs. Best negative F-score is 0.213 without the filter, again using nouns and adverbs, and 0.166 with filtering, using nouns, adjectives, and adverbs. Positive and neutral F-scores have higher maxima with the filter, but negative F-score has the opposite ordering in this table. Even when the aggregate accuracy improves, a reader interested in identifying criticism has reason to inspect the individual class figures.
In the table captioned topic-specific, the best neutral F-score is 0.647 without the filter, with adjectives. With the filter it reaches 0.698, with adverbs. Filtered neutral recall is highest at 0.785 with adverbs. Filtered neutral precision reaches 0.685 with nouns, adjectives, and adverbs. The best neutral precision and recall again come from different sets of categories. The pattern for the neutral F-score winning settings is shared by both tables.
The strongest positive F-score in the topic-specific-captioned table is 0.485 without the filter, using all the categories. With the filter, it is 0.492 using nouns, adjectives, and adverbs. Best positive recall reaches 0.714 with the filter and all the categories. Without the filter, the best is the disputed prose example, 0.701, using nouns, verbs, and adjectives. Both scores establish that those particular runs find many positive items under the labels of the table where they appear. Positive precision peaks at 0.440 without the filter and at 0.420 with it, both with adverbs. The maximum recall and the maximum precision therefore tell different stories about the effect of filtering on the positive class.
For negative sentiment in that table, the best F-score is 0.262 unfiltered and 0.296 filtered, both using verbs and adverbs. The best recall is 0.532 without filtering and 0.457 with filtering, both using verbs, adjectives, and adverbs. Best negative precision rises from 0.195 to 0.233 with filtering and comes from verbs alone in both conditions. Those precision, recall, and F-score comparisons concern different category choices. Together they show that negative recall can decline while the best balance of precision and recall improves, without implying that a single run achieves all the listed values.
The chart below takes the best F-score for each polarity from the table captioned topic-specific. It illustrates the different levels of success across classes under one metric, while keeping the two filter conditions visible. The winning setting for a class appears in its row label.
Best per-class F-score in the table captioned as the Grillo tweet set
Neutral has the highest best F-score in both conditions, and each class reaches its higher maximum with filtering.
The numbers
| System or setting | F-score |
|---|---|
| Positive, all categories without filter | 0.485 |
| Positive, nouns adjectives and adverbs with filter (this paper) | 0.492 |
| Negative, verbs and adverbs without filter | 0.262 |
| Negative, verbs and adverbs with filter | 0.296 |
| Neutral, adjectives without filter | 0.647 |
| Neutral, adverbs with filter | 0.698 |
How the earlier results compare
The paper gives earlier English results as context because it has no prior Italian Twitter experiment on the same task to compare against. For word-sense subjectivity, it cites an accuracy of 75.3% from Su and Markert’s test of SentiWordNet on manually judged senses. It also reports that applying SentiWordNet in a lexicon-projection approach to a manually annotated set of adjectives attains 61.47% accuracy at its best in the work by Taboada and colleagues. These tests concern senses or individual words. Their units of judgment differ from an Italian tweet and, even more, from an attitude toward a particular person in a tweet.
The closest comparisons in the paper use English messages and the same broad set of polarity labels. Agarwal and colleagues obtain 60.50% accuracy using individual-word features together with their best additional feature set on manually annotated English tweets. The best class F-scores reported there range from 59% to 62%. Pak and Paroubek train on automatically labeled data and evaluate on about 200 English tweets. The cited best F-score on their three-way task is just over 60%. Those figures belong to separate evaluations with their own language, messages, and methods. They situate the Italian experiment historically without providing a common scorecard. The studies are Sentiment Analysis of Twitter Data and Twitter as a Corpus for Sentiment Analysis and Opinion Mining.
What the ablations show
Filtering is helpful on the accuracy measure
The controlled comparisons vary the dispersion filter and the grammatical categories supplied to the classifier. The underlying score transfer, preprocessing, references, and additive rule stay in place. Turning the filter on tests what happens when words with especially divergent sense scores are withheld. Changing the categories tests what happens when some types of words are entirely excluded from the calculation. Together the comparisons tell us how the results depend on the selection of lexical evidence.
The table captioned generic offers the cleanest comparison at the accuracy maximum because adverbs alone are the winning category choice in both filter conditions. There, best accuracy moves from 0.487 to 0.514 when the filter is applied, with the category held fixed. The result is consistent with the authors’ view that some tokens are less helpful when their scores average over senses with very different sentiment. The comparison establishes the change in accuracy for that setting. It gives no count of which removed words caused specific errors to be corrected.
The maximum in the topic-specific-captioned table rises from 0.505 to 0.554, but the category choice changes from adjectives to adverbs. That comparison concerns the best setting available under each condition. It cannot isolate the filter’s effect on accuracy for adjectives alone or for adverbs alone because those matched scores are not both displayed. The authors report having run all the combinations, and the tables expose the winners. They give enough information to distinguish better maxima from a fixed-category gain where the winning category stays the same.
At the level of F-score, the strongest neutral settings in both tables are filtered. For negative sentiment the outcome differs across tables. The generic-captioned table gives its higher negative F-score without the filter and with nouns and adverbs. The topic-specific-captioned table gives its higher negative F-score with the filter, using verbs and adverbs in both conditions. This last comparison holds the categories fixed for negative F-score, while the generic-captioned comparison changes them. The best negative recall is lower under filtering in both tables. The aggregate improvement therefore represents a trade in the errors the configurations make, instead of a uniform gain across classes and measures.
Adverbs and adjectives contribute differently
The authors see a tendency for adverbs to work well on overall accuracy, and for adjectives or adverbs to appear in strong configurations. Both best filtered accuracy scores come from an adverb-only run. In both result tables, adjectives alone give the highest unfiltered neutral F-score, whereas adverbs alone give the highest filtered neutral F-score. This is a recurring pattern within the reported experiments. Its evidence comes from the combination of those grammatical categories with this particular dictionary, these tweets, and the paper’s scoring rule.
The strongest configurations for positive recall use more categories. The generic-captioned table reaches its best unfiltered recall with nouns, verbs, and adjectives, and maintains the same best recall with all the categories under filtering. The topic-specific-captioned table shows the same broadening of the winning group when filtering is enabled. Broader groups can make more lexical evidence available to the sum. The tables reveal when that choice finds more items of a class. Because precision has different winning settings, they do not establish that including additional categories improves the reliability of each prediction.
The strength of a restricted category set can depend on what happens when the additional words are left out. In the additive calculation, a more restricted setting may suppress weak cues, conflicting cues, or cues about another participant. It may also leave no effective contribution for some messages. Those possibilities matter when most reference labels are neutral and neutrality has the highest F-scores. The paper does not report a distribution of totals before and after changing categories, so the winning adverb settings cannot be attributed to one of those mechanisms from the aggregate scores.
These comparisons also leave the contribution of categories in combination partly unresolved. The best result from adverbs alone shows what that setting can achieve on an overall measure. It gives no independent estimate of what an added adverb does in a message that already contains an evaluative adjective and a verb. Since evidence is combined by addition, its role depends on the other terms in the same message. The tables give results selected at the setting level, while explanation of particular changes would require the predictions and scores for individual tweets.
The weakness on negative polarity
The evaluation prose describes a tendency to predict positive where a judge labels a tweet negative. Such a mistake damages positive precision and negative recall together. The authors suggest that SentiWordNet’s tendency toward positive scores may contribute. They also point to the absence of syntactic evidence, particularly a way to detect negation. A favorable word in the scope of negation can keep its favorable dictionary score in the sum, even if the author uses the complete phrase to reject the favorable assessment.
These are explanations proposed by the authors. The experiments keep the source lexicon fixed and contain no condition with explicit negation handling. They therefore supply no controlled estimate of how much either factor contributes. The system can miss negative sentiment if necessary cues are outside the transferred lexicon, if preprocessing leads to a missed match, or if the text uses a favorable word in a critical context. The paper’s aggregate scores are compatible with these possibilities. The prose describes the direction of a recurring error without giving a confusion matrix that would quantify it by sample and setting.
The same reasoning applies to the target. The authors suggest dependency parsing as a way to identify grammatical connections between words and potentially restrict the opinion evidence to words related to the relevant person. Their example involving Vendola and Grillo explains why such a restriction might matter. The study contains no comparison with a parsed scoring condition or with the same tweets labeled against both questions. The error analysis identifies a demand the current system cannot explicitly meet. It does not measure the gain from any proposed way of meeting it.
Limitations
Limits the authors identify
The authors distinguish language precision from language recall in discussing TWITA. The hand inspection gives a precision estimate for a subset of the collected texts. Recall would require knowing how many Italian tweets the search missed. The collection depends on a vocabulary of frequent terms, so Italian messages lacking the chosen words have no route into the corpus through that search. The authors consider the overall volume adequate for their generic collection and note that other purposes could require deliberately chosen vocabulary. They leave the proportion of all Italian tweets recovered undetermined.
The authors also acknowledge the limited coverage of the aligned lexicon. It carries scores for less than one third as many synsets as SentiWordNet. Their procedure is transferable to another language when suitable reference corpora and lexical alignments are available, but the resources for that language determine which words and senses would actually receive scores. The Italian experiment demonstrates a way to combine existing resources under those conditions. It reports no run in a second language that would show how well collection or transfer performs elsewhere.
Sense ambiguity remains even among covered words. The authors view contextual disambiguation as impractical for this experiment because of the form of tweets and the available Italian tools. Averaging supplies a workable score, and filtering reduces reliance on words with highly variable senses. Both rules operate on candidate entries from the lexicon. The intended sense can still differ in tone from the average, and high dispersion can coexist with a clear meaning in the tweet. The study assesses the effect of filtering on the final task without evaluating sense selection.
The authors identify syntax and figurative language as further limits. Their scoring neither links evaluative language to the intended political target nor explicitly analyzes what has been negated. They also encountered irony and sarcasm while annotating the data. Irony can undermine the link between apparent approval and the attitude the author expresses, which is exactly the link on which a projected lexical score depends. The paper treats automatic recognition of this language as future work, drawing on earlier investigation in Identifying Sarcasm in Twitter.
The conclusion also suggests using the lexical scores as features in a learning system or combining them with noisy labels, such as emoticons or hashtags that act as rough signs of sentiment. These markers could add evidence of a kind the word-sense sum does not directly consider. The paper cites earlier work on using such signals, including Enhanced Sentiment Learning Using Twitter Hashtags and Smileys. The Italian experiments do not test a learned combination or report an improvement from adding noisy labels.
Limits visible in the design
The language check measures whether retrieved tweets are Italian. It cannot show whether the collection represents the distribution of topics, expressions, or writing styles in Italian tweets generally. A successful retrieval depends on containing one of the search words, and that condition can favor messages that happen to use the selected vocabulary. A random sample from TWITA represents a draw from this collection process. The geographic figure is similarly conditional on the records with coordinates. It supports a broad sanity check on collection while leaving geographic and linguistic coverage outside that subset uncertain.
The task definition also influences what the reported metrics mean. Neutral covers factual statements, a neutral attitude, balanced sentiment, and the fallback for unresolved judging. The classifier can likewise arrive at a neutral reading through a variety of lexical circumstances. Opposing contributions can cancel, and eligible words can fail to yield scores. Agreement on neutral thus does not separate successful recognition of a balanced attitude from an output produced with little lexical evidence. The paper reports the fallback rates, but it does not break the neutral class into these kinds of cases in the evaluation.
The majority comparison places an important constraint on the interpretation of overall accuracy. The authors’ classifier makes guesses about positive and negative sentiment, frequently with some success. Its best reported aggregate accuracy is still below the accuracy of choosing neutral throughout each sample. F-scores reveal achievements that this baseline cannot deliver for positive and negative judgments, particularly the ability to recover some examples in those classes. The experiment shows class-level signal from projected lexical scores, while a gain on aggregate accuracy against the class-frequency reference is absent.
The reported configurations are chosen by maxima on the evaluated sets, and the basis for selecting the threshold is described only as empirical. There is no separate held-out evaluation of a chosen filter and category setting. As a result, the reported accuracy maxima establish how well a search over the available settings did on these labeled samples. They do not establish that the same selected configuration would come out ahead on new messages or that the reported ordering is stable across samples. The paper gives point estimates without uncertainty ranges or paired tests for the observed changes.
General sentiment and target-specific sentiment are each evaluated on a different sample. This complicates the interpretation of agreement and classifier performance. The Grillo tweets have a topical selection rule and different proportions of positive and negative labels. They could differ from the generic sample in how much context they presume, which words occur, and what kinds of utterances people write. These are possible contributors, not measured properties of the two sets. Asking judges to apply both interpretations to the same messages would address a narrower question about the effect of giving them a target. That comparison is absent.
There is a sampling limit within the political task as well. The tweet has to contain the specified hashtag to enter that sample. A message can express an attitude toward Grillo without using it, and a message containing it can focus its evaluation elsewhere. The paper’s example illustrates the second issue directly. The measured results therefore concern the hashtag-selected messages as labeled about their specified target. They leave open how the same approach would handle indirect references, messages selected through other names, or tweets about different political subjects.
Finally, the table and prose conflict prevents a confident claim about which dataset produced stronger automatic performance. The captioned results give one ordering by best accuracy, and the authors’ discussion asserts the opposite. The agreement values are separately stated in the text, so the observation of higher agreement for the topic-specific annotation stands on its own. The per-table comparisons of filtering and grammatical categories can also be read within each table. The question of exactly which sample produced each set of classifier scores remains unresolved by the paper’s presentation.
What came after
The later study Annotating Sentiment and Irony in the Online Italian Political Debate on #labuonascuola cites Basile and Nissim and shifts the focus to annotation of an Italian political debate identified by a different hashtag. Its title places sentiment and irony together as objects of annotation. This follows up on an issue the earlier authors encountered during human judging. They observed ironic or sarcastic messages while assigning polarity, but their reference labels recorded only the resulting sentiment judgment. The later study explicitly brings irony into the annotation task.
The relationship is also visible in how the research identifies its subject matter. Basile and Nissim use a hashtag to assemble a sample and ask for an attitude toward a particular political figure. The later work organizes its inquiry around the online debate marked by #labuonascuola. A hashtag can identify a field of discussion even where individual messages evaluate different participants or aspects of it. The later title supports that connection in topic selection and annotation. It gives no basis for attributing reuse of TWITA’s messages, the transferred lexicon, or the earlier scoring procedure.
The earlier paper therefore leads to a concrete distinction that remains relevant to the later annotation focus. The vocabulary of a message gives evidence of its apparent tone, while irony can change how that tone should be interpreted. A hashtag identifies the discussion, while the text determines who or what is being evaluated. Basile and Nissim’s experiment makes these gaps visible by comparing a whole-tweet lexical sum with judgments obtained under both general and target-specific instructions. The later study addresses one of those gaps directly by making irony an explicit object of study alongside sentiment in Italian political discussion.
Cite
Cite as Valerio Basile and Malvina Nissim. 2013. Sentiment analysis on Italian tweets. Proceedings of the 4th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis.
@inproceedings{basile2013sentiment,
title = {{Sentiment analysis on Italian tweets}},
author = {Valerio Basile and Malvina Nissim},
booktitle = {Proceedings of the 4th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis},
year = {2013},
url = {https://aclanthology.org/W13-1614/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/basile-2013-sentiment-analysis-italian-tweets/