Crucial decisions in public policy-making as well as in business strategy can be enhanced through a deeper understanding of the diverse opinions and perspectives put forth by relevant stakeholders. While elections, referendums, and market surveys provide important mechanisms for gauging public opinion, in general, they are (i) expensive and (ii) primarily involve selecting from a predefined set of options. Furthermore, many decision processes (i) may not justify the huge expense of referendums, and might also (ii) require a more nuanced analysis of opinions on a more frequent or regular basis. This has led to the growth of digital democracy platforms for continuous collection of public opinions at a significantly less cost, enabling better analysis and alignment of decisions with the viewpoints of the stakeholders. For instance, governing institutions in many democratic countries issue public notices to seek opinions on governing policies (e.g., Net neutrality NPRM issued by the U.S. Federal Communications Commission or the Brexit referendum). On a smaller scale, even local city councils call for public consultations on administrative issues such as local property taxes or road works. Similarly, businesses spend a considerable amount of resources to understand and organize customer feedback on products and services.
In many cases, the collection of opinions is too large to be manually curated. For instance, on the BBC News website, popular articles receive thousands of comments. Thus, there is a need for automated tools to not only navigate but also assist in understanding the space of all opinions. A fundamental challenge in navigating opinions (or clusters of opinions) is the need to construct a distance measure that quantifies the distance between opinions. A good distance measure should be able to semantically differentiate between opinions that are highly similar and opinions that are opposing. Despite the fundamental importance of such an opinion distance function, we note that the traditional approaches are inadequate for this purpose.
Many existing approaches for opinion mining rely on features based on the text-similarity of the opinion documents  or the overall sentiment orientation of the comment (i.e., whether the overall tone is positive, negative or neutral) 
. Unfortunately, such approaches involving text-similarity and sentiment analysis are often inadequate in our problem setting. For instance, consider the diametrically opposite opinions of"In this debate, Hillary looked presidential while Trump came across as manipulative" and "In this debate, Trump looked presidential while Hillary came across as manipulative". Use of text-similarity or overall sentiment based features will categorize the above opinions to be very similar as they have the same bag-of-words, similar sentence structure and identical set of sentiment words. In fact, we demonstrate later that text-similarity based features like TF-IDF and also semantic measures like Word-Mover distance and Doc2vec are poor indicators of opinion similarity on many datasets. Furthermore, such features resulted in opinion clusters that have very little agreement with the ground truth clusters, even for cases with only two clusters.
The above exemplar suggests that to effectively capture the differences between opinions, a measure needs to be able to understand deeper nuances of the semantics of the text. Given the inherent difficulties in capturing the “true” opinion distance (as opposed to text-similarity distance), recent research has focused on a simpler variant of this problem called stance detection (i.e., whether an opinion is in-favour of, neutral or in-opposition to a target topic). However, human opinions are often nuanced and organizing them independently into stances can lead to distortion or misinterpretation – a scenario increasingly crucial in the political arena. For example, on the issue of Brexit, consider the following opinions: (i) “Brexit will result in economic loss, no doubt, but because it will reduce immigration numbers drastically, it will still be worth it”; and (ii) “Brexit will result in economic prosperity and huge savings and both the quality and quantity of the immigrants will increase”. Both are in favour of Brexit (depicting the same stance), but are still fundamentally different in terms of the opinions as to why the same stance is supported. Existing similarity measures fail to capture such nuanced opinion analysis, which might result in wrong conclusions about what people really opine about a topic.
Contributions: We address the problem of opinion clustering by proposing a distance measure that quantifies the semantic similarity between opinions. Leveraging the observation that similar opinions express similar sentiment polarity on the relevant subjects, we represent an opinion in terms of the discussed subjects and the sentiment polarity expressed towards those subjects.111A similar representation of opinion is considered in [13, 14, 33, 19]. The subjects in the opinion texts are then mapped based on semantic similarity and the opinion distance is defined as an aggregate of sentiment polarity difference towards the mapped subjects. We study a few concrete instantiations of our distance measures and propose a carefully engineered computational pipeline (c.f. Figure 1). We also demonstrate improved experimental results (in both supervised and unsupervised settings) on several real-world data-sets along with a use-case study to organize comments on BBC news portal, showcasing the efficacy of the proposed distance measures for organizing opinions over extant approaches on both unsupervised and supervised task settings.
We begin by briefly reviewing the key definitions:
Target Entity: The subject or topic of interest that frames the discussion or narrative.
Aspect: Characteristics of the target entity.
Perspective: A way of viewing or perceiving the target entity or topic by a person.
Stance: Subjective disposition towards the topic, typically, characterized as being in favor, neutral towards, or against defined target entity.
Opinion: The statement(s) reflecting and/or justifying the belief or judgment of a person towards a target entity or its aspect(s). Note that two opinions may be very different, even though they may have the same stance towards the target entity.
3 Related work
Contrastive opinion modeling 
relies on computing topic models – a variant of LDA using Gibbs sampling to estimate the model parameter. The authors subsequently adopt the Jensen-Shannon divergence among the individual topic-opinion distributions to determine contrastive opinions.222We could not obtain the source code. The problem of identifying different perspectives or viewpoints about a topic is addressed by proposing a graph partitioning method which exploits the presence of social interactions in order to identify viewpoints . Our current effort does not rely on social interactions in order to quantify the opinion distance. The Author Interaction Topic Viewpoint model (AITV)  focuses on the task of viewpoint detection of author and post. The AITV topic model levers authors’ interactions and encodes the heterophily assumption that difference in viewpoints induces more interactions. However, such interactions are not always available.
have shown that features based on n-grams trained with SVM are difficult-to-beat baselines for such tasks. Similarly, sentiment analysis often rely on dependency parse trees[37, 45] and aspect-based sentiment analysis [31, 28, 40]
using conditional random field classifiers have also been proposed. However, note thatstance, sentiment, and opinion have nuanced differences as defined earlier.
Sentiment analysis has been used in customer feedback on a brand name. Socher et al.  compute the sentiment of a sentence by assigning sentiment to individual words and phrases in the dependency parse tree of the sentence and then recursively aggregate the sentiments in the parse tree to compute the sentiment of the sentence. For more on sentiment analysis, see [5, 26, 20]. Aspect-Based Sentiment Analysis (ABSA) [31, 28, 40] is a subfield of sentiment analysis where sentiments towards each aspect are studied. However, most of the studies comprises of supervised methods and require the definition of aspects to be known beforehand. Note that, in this work, we focus on developing an unsupervised distance measure for opinions.
There has been considerable work (e.g., ) on extracting opinion targets and expressions. However, most of the proposed methods are supervised and domain specific . The Sentilo tool  identifies the discussed entities in opinion and the sentiment expressed towards the entity in an unsupervised and domain-independent way. However, the methods proposed in opinion target and opinion expression extraction literature cannot be extended straightforwardly to compute opinion distance. For instance, the issue of opinion subject polysemy while computing opinion distance is nontrivial to solve.
We stress that the problems addressed in the above studies are different than ours. To our knowledge, there is no work on an “opinion distance measure” focusing on quantifying the similarity or dissimilarity between different opinions.
4 Distance measures
For designing a distance measure for opinions, we leverage the observation that similar opinions express similar sentiment polarity on the relevant discussed subjects. We propose a set of measures based on aggregating the difference in sentiment polarity of words associated with the subjects.
The key to designing a good distance measure lies in the representation of the opinion itself. That is, instead of merely relying on the overall tone/sentiment of the opinion or just considering the bag-of-words or collection of n-grams representations, we propose a more nuanced representation of opinion in terms of the discussed subjects and the sentiment polarity expressed towards those subjects. To this end, our distance computation framework: (i) extracts the opinion subjects discussed in the text, (ii) identifies the words associated with the subjects that express opinions towards those subjects, and (iii) computes the sentiment polarity of the associated words.
Given two opinions ( and ), each represented in terms of a tuple of opinion subjects and sentiment polarity towards the corresponding subject within each opinion, their distance is computed by: (i) first, mapping opinion subjects in to corresponding subjects in (and vice versa) based on their semantic similarities; and (ii) second, aggregating the difference of sentiment polarities expressed on the correspondingly mapped subjects across both opinions. Figure 1 presents the different steps in our pipeline. Note that it is crucial to have a reasonably accurate semantic mapping between subjects, as common subjects might be referred to with different phrases (or surface-forms) in different opinions.
Mapping opinion subjects: To map the different subjects among opinions, we first create a bipartite graph by computing a semantic similarity score between the subjects discussed in the opinions. This graph is then used to compute the mapping between the opinion subjects using Word Mover Distance (WMD) , which aims at computing a minimum weight perfect matching between the opinion subjects. A detailed instantiation of this step in our framework is presented later section.
Aggregating polarity difference: Let and be the th and th opinion subjects in opinions and , respectively. Also, let represent the expressed polarity towards opinion subject in opinion k (). Then, the opinion distance between and is
where is the set of mapped opinion subjects. and are opinion subjects in and , respectively and f is the difference function defined as
Here, JSD denotes Jenson-Shannon divergence and EMD denotes Earth Mover Distance. Both JSD and EMD are symmetric measures and EMD does not suffer from arbitrary quantization problems . Note, that the value of lies between [0,1].
Consider an example with two opinions having opinion subjects as shown in bold below:
: “Video games increases violent tendencies among youth.”
: “Researchers have confirmed the potential positive effects of computer games and media contents.”
We first compute the representation of the two opinions in terms of opinion subjects and polarity. So,
is represented by the vector [(“Video game”, -1), (“youth”, 0)] andis represented by [(“researchers”, 0), (“computer games”, +1), (“media contents”, +1)]. We then compute the semantic distance matrix which contains the semantic distance between the subjects in and . Based on this matrix, our framework identifies that the subjects “video game” and “computer games” are highly similar, while the others are not. Let be the opinion subject “Video game”, while be the opinion subject “Computer game”. Further, the polarity of , is computed as “-1”, while is “+1”; and the difference function f(, ) is . Since this is the only mapping subject pair (=1), the final opinion distance is obtained as (max. value). Thus, the distance is large.
5 Opinion representations
In this section, we present two alternative representations for identifying opinion subjects. The first representation considers noun-phrases as opinion subjects and the dependent adjectives, adverbs, and verbs as associated words. The second representation consists of disambiguated concepts as opinion subjects with the words surrounding the subject as associated words. While the former relies on carefully defined rules to identify noun phrases and a careful analysis of the dependency parse tree to compute the polarity of the dependent associated words, the latter uses the weighted aggregation of the polarity of the neighboring words. We note that the latter is more efficient and avoids the computationally expensive and error-prone step of dependency parsing. We refer to the distance measures computed using the above variants as OD-parse and OD, respectively, and empirically compare their effectiveness in the experiments section.
5.1 Noun-phrase Representation
A parse tree represents the structure of a text string based on the syntax of the input language (in our case, the English language). A dependency parse tree captures the dependencies between different linguistic units in a sentence. We use Stanford CoreNLP  for part-of-speech (POS) tagging, coreference resolution and dependency parsing. Note, our framework is agnostic to such choices, and other tools like Google SyntaxNet  could also be used.
Opinion subjects extraction: In this approach, we consider all noun phrases in the opinion post as opinion subjects. We define a noun phrase based on some carefully defined rules and named-entities like Person, Organization, and Location. An exemplar of such a rule is,
where NN denotes a noun word (based on Stanford CoreNLP POS tagging), POS denotes a possessive form, and the symbols ‘.*’, ‘?’, ‘+’ are regex symbols as defined in Stanford CoreNLP. Observe, the above rule can capture even complex noun phrases like “J. R. R. Tolkien’s Lord of the Rings”.
Opinion expression extraction: To calculate the sentiment polarity expressed on the subject, we first identify all the related verbs, adverbs, and adjectives dependent on the noun phrase. For this, we use co-reference resolution and dependency parsing. For instance, Figure 2 shows the dependency parse tree of opinion : “Video game increases the violent tendencies among youth.”.
Here, the noun phrase “Video game” would be extracted as an opinion subject while the verb “increases” is related and is part of how the subject “video game” is expressed. However, an efficient representation of opinions should also involve the terms “violent tendencies” in the opinion expression of “Video game”. To extract the set of words for opinion expressions, we carefully defined
rules using Stanford CoreNLP’s Semgrex pattern matching system (the rules are shared in the appendix).
Polarity of opinion subjects: We use the IBM Debator 
sentiment lexicon to get the sentiment polarity score associated with individual words.333Note that if an individual word has a negation modifier present in the dependency tree, then we multiply the sentiment polarity of that word by -1. We aggregate the sentiment polarity scores of different words in the opinion expression in order to compute the sentiment expressed towards the corresponding subject. For this, we consider two techniques:
1. Average and then discretize the polarity scores. If the average sentiment polarity score of the words in the opinion expression of an opinion subject is negative, we assign a -1 score to the opinion subject, otherwise we assign it the score +1.
2. Consider entire distribution of polarity scores.
Overall, we found the parse-tree based approach to be computationally intensive. Furthermore, simply treating all noun phrases as opinion subjects resulted in the misidentification of many opinion subjects. For instance, in our example, “tendencies” would also act as an opinion subject. Another issue is that we do not capture any semantics, so synonyms get identified as different subjects while polysemies get identified as the same subject. Also, efficient extraction of opinion expressions requires a large number of rules and identifying all such rules is a manual and cumbersome process.
5.2 Disambiguated concept representation
In order to resolve the issues with the previous approach, we now describe an alternative approach.
Opinion subjects extraction: Ideally, the opinion subjects should be the key entities and concepts discussed in the opinion post. They should have a canonical representation, independent of the exact noun phrase used to discuss them, which can be achieved by leveraging named-entity disambiguation approaches. In this work, we use the popular TagMe spotter to identify relevant noun phrases and the TagMe API  for disambiguating the noun phrases to Wikipedia pages. The disambiguation process aids in understanding the noun phrases referring to the same entity/concept as well as those that are referring to entities/concepts that are semantically similar. For example, TagMe maps both the phrases “Video game” and “Electronic game” to the Wikipedia page of “Video game”, while it maps “Computer game” to the semantically similar Wikipedia page titled “PC game”.
Opinion expression extraction: To avoid the error-prone and computationally intensive process of fine-grained dependency parsing, we use all the adjacent sentiment words of an opinion subject as the opinion expression towards , similar to . However, not all adjacent words are treated equally. The influence of an opinion expression towards an opinion subject is weighted based on how far the opinion expression is from opinion subject in the sentence. Although in this relaxation many unrelated words may end up influencing the computation of sentiment polarity towards a subject, we show in the experiments section that this approach performs well in practice.
Polarity of opinion subjects: Similar to the previous approach, we use the IBM Debator  sentiment lexicon to find the sentiment polarity of words in an opinion expression. The sentiments of different words in the opinion expression are then aggregated by either considering the entire distribution or taking the average and then discretizing it. However in this case, before taking the average, we reweigh the sentiment value of a word by penalizing the sentiment score by a factor of where is the token distance of the word from opinion subject in the sentence. This ensures that the further a word is from the opinion subject, the less influence it has on its polarity score. Furthermore, if a polarity shifter (negator words like “no”, “not” and “cannot”) is present in the opinion expression, we reverse the polarity of the word. The complete list of polarity shifter words considered by our framework is reported in Table 1.
|List of sentiment polarity shifters|
|‘no’, ‘not’, ‘negation’, ‘none’, “n’t”, ‘inconclusive’, ‘without’, ‘excluded’, “incompatible”, “prevent”, ‘exacerbate’, ‘reduce’, ‘less’, ‘rarely’, ‘displaced’, ‘relocation’, ‘dislocation’, ‘higher than’, ‘relocate’, ‘resettled’, ‘re-housed’, ‘cannot’, ‘limit’, ‘outweigh’, ‘unless’, ‘little act’, ‘get even’|
We then take the weighted average of distance-weighted sentiment scores (after polarity shifters). Hence, if and refer to the weighted sum of positive and negative sentiments associated with the subject, the weighted average is given by . This is similar to  and we empirically show that such a representation of opinion expression results in identifying better opinion clusters. Note that if an opinion subject is present in a sentence, all the words present in that sentence would influence the weighted computation of sentiment score of the subject. For example, our opinion subject “Video game” would now be represented as average weighted polarities of “increased”, “violent”, “tendencies”, and “youth”.
Interestingly, one could consider including the polarity of the opinion subject itself for computing the average polarity. However, this might incorrectly represent the opinion. For instance, consider the opinion “Genocide is good”. Here, the opinion subject “Genocide” will have a positive polarity, correctly capturing what is expressed. Including the polarity of the subject, would lead to “Genocide” having a neutral or negative polarity – different from the expressed opinion.
6 Mappings between opinion subjects
To map the opinion subjects in the different opinions we create a bipartite graph by computing the semantic similarity score between the opinion subjects. Semantic similarity can be computed using embedding techniques such as word2vec  or doc2vec . In addition, the latter can use text similarity between corresponding Wikipedia page abstracts, number of common in-links and out-links between their Wikipedia pages, and so on. We then use the bipartite graph to compute the mapping between the opinion subjects using Word Mover Distance (WMD) . An efficient linear time implementation of WMD exists  to compute “the minimum distance that the embedded words of one document need to travel to reach the embedded words of another document”. The underlying flow matrix in WMD computation provides a mapping between the subjects among the opinions.
WMD aims at computing a minimum weight perfect matching between the subjects. However, in practice, there may not be a good semantic mapping between all the subjects in the opinions, even if they are on the same topic. Thus, the WMD mapping may also include subject pairs that have high semantic distance, resulting in erroneous comparisons. If two dissimilar subjects get mapped in WMD computation the overall distance between two increases. To address such erroneous mappings, we remove all pairs from the mapping whose semantic distance is greater than a user-defined threshold. If no mappings between two opinions exist after the semantic distance threshold, we set their opinion distance as undefined.
7.1 Datasets and Empirical Setup
Datasets: One issue in the validation our proposed opinion distance is the lack of publicly available annotated ground truth datasets. However, there are many good benchmarks available for a restricted version of opinion clustering, namely stance detection. In stance detection, there are generally two labels – one supporting the topic-of-interest and the other opposing it. The assumption we make for evaluating opinion distances on the stance datasets is that “similar claims demonstrate similar stances (opinions)”. We collect the stance detection datasets from IBM Debator Claims  and Arguments  projects. Table 2 provides a complete list of 18 datasets used in our evaluation. We also evaluate our proposed methods against existing stance baselines .
Additionally, we curate a nuanced opinion dataset from the civiq.eu platform discussing whether the Seanad (upper house of parliament in the Republic of Ireland) should be abolished. This dataset has three expert-curated opinion clusters 444We plan to release our annotations and dataset publicly.: (1) Abolish the Seanad, (2) Reform the Seanad instead of abolishing it, and (3) Seanad is ineffective but keep it until Dail is reformed to save the democracy. Note that the stance of the last opinion cluster is aligned with the second cluster – both against abolishing the Seanad. However, the general opinion expressed in the last cluster is to have the institution of Seanad only till the lower house of the parliament, Dail, is appropriately reformed. This is a nuanced argument not easily captured by existing methods.
Seanad Abolition (25), Pornography (52), Gambling (60), Video Games (72), National Service (33), Monarchy (61), Hydroelectric Dams (110), Keystone pipeline (18), Democratization (76), Open-source Software (48), Intellectual Property (66), Atheism (116), Education Voucher Scheme (30), One-child policy China (67), Austerity Measures (20), Affirmative Action (81), Housing (30), Trades Unions (19)
In this section, we explain the selected baselines and the parameter setting for benchmarking the performance of the competing approaches.
TF-IDF: The distance between two opinions is computed as the cosine distance between their term-frequency inverse-document frequency (TF-IDF) vectors of those opinions . Following standard practice, we remove the stop words while computing the TF-IDF.
WMD: The distance between two text documents can be captured using the recently proposed Word Mover Distance (WMD)  – which in our setting would enable the capture of the distance between opinions. We use a pre-trained word2vec embedding  trained on GoogleNews Corpus for computing the WMD.
Sent2vec: The distance between two opinions is the cosine distance between Sent2vec  embeddings of those opinions. We lever the pre-train sent2vec-wiki-unigrams model for computing sentence embeddings.
Doc2vec: The distance between two opinions is the cosine distance between Doc2vec  embeddings of those opinions. We pre-train the Doc2vec methodology on Wikipedia articles.
BERT: The distance between two opinions is the cosine distance between BERT  embeddings of those opinions. The embedding of opinions is computed by averaging the tokens’ BERT embeddings using bert-as-a-service tool .
Our proposed methods are OD-parse and OD
. Unless noted otherwise, we use Doc2vec embeddings trained on Wikipedia articles with cosine distance for computing the semantic distance. The semantic distance threshold for our framework is set to 0.3. For TagMe, we select a link probability threshold of 3%.
8.1 Experimental results
We evaluate the methods in two different settings.
: We examine the utility of the proposed opinion distance measure in an unsupervised setting for opinion clustering. For the competing baselines, we compute the all-pair opinion distance matrix, and then evaluate the distance measure in this unsupervised setting based on clustering quality and on the intra- and inter- cluster distances. The clustering quality is measured using the Adjusted Rand Index (ARI), while evaluations based on intra and inter clusters distance is done with the Silhouette coefficient. We set the number of clusters equal to the number of unique opinion labels present in the dataset. We perform k-means clustering and spectral clustering and report the best ARI for all approaches. The quality of the identified opinion clusters (a snapshot) is shown in Table3. We observe that:
The opinion distance measure captures the nuances among opinions: We see that OD significantly outperforms the baseline methods and the OD-parse variant555OD-parse fails to perform efficiently possibly due to poor opinion representation induced by erroneous opinion expression extraction based on the dependency parse tree.. The selected datasets contains set of contrasting opinions with same bag-of-words and as hypothesized earlier the existing text-similarity methods cannot understand the nuances among the opinions – visible from the low ARI and Sil scores. On the other hand, achieves high ARI and Sil scores, and seems to capture the nuances among opinions. Additionally, the noticeably high ARI and Silhouette coefficient values for OD seems to validate the observation of “similar opinions express similar sentiment polarity on discussed subjects”.
Existing distance measures fail to capture nuances among opinions: From the above table, we observe that the text-similarity based baselines, such as TF-IDF, WMD and Doc2vec achieving ARI and Silhouette coefficient scores of close to zero on the “Video Games” and “Pornography” datasets (barely providing a performance improvement over random clustering, i.e., a zero ARI score). A possible source for the poor performance might be the underlying assumption that similar opinions should have common words and/or a similar word distribution – which does not hold in cases of opinion as depicted in previous sections. A notable exception is the “Seanad Abolition” dataset, where TF-IDF performs relatively better than WMD, Sent2vec and Doc2vec. Drilling down we find that a highly discriminatory word “democracy” occurs in only one of the clusters (namely “Save the Democracy”) - explaining its performance on this dataset.
Supervised Setting: We now examine the effectiveness of our approach in a supervised setting.
Here, we leverage the idea that distance or similarity based problems can be reformulated as standard classification problems by treating pairwise similarities as features to a downstream classification method like SVM [11, 29, 17].
Specifically, for all the approaches, we treat the distance measure as a feature by considering each row of the distance matrix as a feature vector for opinion and the task is to check whether two opinions have same label or not.
For all the classification experiments, unless otherwise noted, we use SVM as classifier with RBF kernel.666 Note that, we achieve similar score for the distance measure with Logistic Regression classifier.
Note that, we achieve similar score for the distance measure with Logistic Regression classifier.
We perform hyperparameter tuning using both grid search (with 5-fold cross validation) and auto-sklearn (with default ‘holdout’ strategy). We use two tuning strategies because we face the problem of overfitting for smaller datasets using only one of the tuning strategy. Since we use two tuning strategies, the hyperparameter tuning is done on train split (70%) and we report the best results on test split (30%) averaged over 3 runs. For evaluation, we rely on the average weighted F1 measure for classification accuracy. For completeness, here we also compare against unigram or n-gram based classifiers that typically work well in such settings [31, 38]. The classification performance of the baselines is reported in Table 4. We observe that:
SVM with only OD features outperforms many baselines: We see that on “Video Games” and “Pornography” datasets, the classification performance based on SVM with only OD is significantly better than the SVM with any other combination of features excluding OD. For the “Seanad Abolition” dataset, there is one exception: SVM with unigrams and LSA features performs slightly better than OD. As discussed earlier, this can be attributed to the discriminating word “democracy”.
SVM with OD and baseline features further improves classification performance: We see that SVM with OD and bigrams achieves the best multi-class classification performance on the “Seanad Abolition” dataset. On the “Pornography” dataset, we observe SVM with OD + LSA to improve classification performance by nearly 2%.
|Education Voucher Scheme||30||0.25||0.12||0.08||-0.02||0.04||0.13||0.19||0.01||0.01||0.01||-0.01||0.02||0.38||0.40|
|One-child policy China||67||-0.05||0.01||0.11||-0.02||0.02||0.11||0.01||0.01||0.02||0.04||-0.01||0.03||0.07||-0.02|
) are statistically significant (paired t-test) with respect to baselines at significance level 0.005.
8.2 Opinion Distance Drilldown
In this section, we present a detailed drilldown of our proposed opinion distance measure. We consider the following two variants of our measure: OD-d2v and OD-w2v where the semantic distance is computed as cosine distance over Doc2vec embeddings (pre-trained on Wikipedia) and Word2vec embeddings (pre-trained on Google) respectively. The semantic threshold for OD-d2v is set at while for OD-w2v is set at . In both the variants, we use the sentiment polarity shifters, a complete list of which are presented in Table 1. We evaluate our distance measures in the unsupervised setting, specifically, evaluating the clustering quality using the Adjusted Rand Index (ARI) and Silhouette coefficient. We benchmark against the following baselines: WMD (which relies on word2vec embeddings), Doc2vec and TF-IDF. The results are shown in Table 6. The ARI and Silhouette coefficients scores of both OD methods (OD-d2v and OD-w2v) are statistically significant (paired t-test) with respect to baselines at significance level 0.005. We observe the following trends:
Opinion distance methods generally outperform the competition on both ARI and Silhouette coefficient. We observe that given a topic, the opinion distance measure is able to separate pro stance opinions from the con stance opinions. We also find that the other baselines generally perform worse as both pro and con stance opinions have high text similarity in many of these datasets. This is reflected in the average ARI and average Silhouette coefficients of the baseline distance measures.
On a few datasets, there are a few discriminating words between the different opinion clusters. For instance, in the topic “Trade Union”, the opinion subject “collective bargaining” is contained in 60 % of claims in the con stance of the topic while it is not present in the pro stance opinions on the topic. The pro stance opinions on this topic use the term “Unions” as the opinion subject. Another example is “Hydroelectric Dams” dataset, where 36 % of pro stance opinions contain term “hydro” while only 18% of con stance opinions contain term “hydro”. On such datasets, TF-IDF and WMD perform relatively better in separating pro stance opinions from the con stance opinions. In the exceptional case of “Hydroelectric Dams” dataset, the opinion distance performs particularly bad compared to TF-IDF because of some errors with disambiguation.
8.3 Variants of opinion distance
Next, we compare the different variants of opinion distance. As mentioned earlier, the polarity of opinion subject can be represented in the form of absolute value or polarity distribution. The results of different variants are shown in Table 5. We make the following observations.
significantly outperforms -: We observe that compared to -, is much more accurate. On the three datasets, achieves an average weighted F1 score of 0.54, 0.56 and 0.41 respectively compared to the scores of 0.01, -0.01 and 0.07 by -. This is largely because of the errors in dependency parsing and the resultant poor opinion representation.
Representing polarities in form of distribution is inefficient: We find that irrespective of the chosen variant of opinion distance, if we represent in the form of distribution, we do not find good opinion clusters. The value of opinion distance calculated using polarity distribution is also low. Recall that Jensen-Shannon divergence is the distance measure used in . Table 5 shows that is significantly better than Jensen-Shannon divergence on all the three datasets.
Sentiment polarity shifters have a high impact on clustering performance of opinion distance: We find that not utilizing the sentiment polarity shifters, especially in case of datasets “Video games” and “Pornography” hurts the Opinion Representation phase, and thereby leads to incorrect computation of opinion distance. This is evident from the significant drop in ARI score from to (no polarity shifters) since the only change in those variants is of sentiment polarity shifters.
9 Case study
|Title: Brexit: Second Commons defeat for Theresa May in 24 hours|
|: “What’s most detestable is the way people on here protest about how Brexit is an almost divine right of the people which should be delivered as though a birthright or destiny. It’s not. It’s really not. It was a snapshot of public opinion at a particular time point which was influenced by a lot of spin and subterfuge. Now is a different time. Time for this horror to end.”|
|Below opinions and are similar to|
|: “Not all leavers are thugs, i know because i voted leave and i’m not a thug. But there’s a lot of leavers that have their head in the sand and can’t admit that brexit is so complex that they and i didn’t really understand the consequences. I’m not one of them leavers either as i’ve listened to the facts now and changed my mind. New factual vote please.”|
|: “STOP BREXIT, SAVE BRITAIN! They should jst go straight on to #revokeA50. It would save lots of wasted time, money and even the economy. This is now crunch time for Brexit. It looks like the doors have been closed for a No Deal exit and Theresa May’s plan will most likely be voted down. The only remaining option therefore is to call the whole thing off and let us get back to normal. ”|
|Title: Theresa May urges Jeremy Corbyn: Let’s talk Brexit|
|: “The last thing Comrade Corbyn wants is cross-party consensus on Brexit. That would get in the way of his desperate plan to force a general election. It is now obvious to everyone (I hope) that this horrible man will say and do anything to get into power. He belongs in a glass case in a political museum, spouting his far-left communist trash, a bit like one of those old laughing sailor machines.”|
|: “The longer this goes on, the less it has to do with the EU. Brexit has become a conflict between those who value truth and individual rights above all else, and those for whom being in a majority (real, “silent” or based on a flawed referendum) is their identity. That’s why the latter are so perpetually angry: they got what they wanted in 2016 but will lose it if facts win over fantasy in the end.”|
Here we describe a case study for navigating opinions expressed in the form of comments on a BBC news article “Brexit: Second Commons defeat for Theresa May in 24 hours” . Table 7 shows an example of comments that were correctly identified to be similar by OD, but reported highly dissimilar by TF-IDF and WMD. These comments are clearly against Brexit and want it to either be called off or be subjected to another referendum. While in the above example the Doc2vec distance was also smaller, it fails to capture the dissimilarity between comments that are very different. For instance, Table 8 presents one comment that is highly critical of Labour leader Jeremy Corbyn, while the second comment opines poorly on the ruling conservative party; Doc2vec identifies them as similar while OD correctly identifies them as highly dissimilar.
Automated tools for better understanding of opinions would lead us to a new era of digital democracy and improved decision making. In this work, we proposed an opinion distance measure for quantifying the distance between opinions. Based on the observation that similar opinions express similar sentiment polarity on discussed subjects, we show that our proposed measure significantly outperforms existing approaches in both unsupervised and supervised experimental setups.
Globally normalized transition-based neural networks. In ACL, Cited by: §5.1.
-  (2012) Harmony and dissonance: organizing the people’s voices on political controversies. In WSDM, Cited by: §3.
-  (2017) Stance classification of context-dependent claims. In EACL, Cited by: §5.2, §7.1.
-  (2019) BBC News. Note: https://www.bbc.com/news/uk-politics-46805269 Cited by: Table 7, §9.
-  (2013) Opinion mining and analysis: a survey. arXiv preprint arXiv:1307.3336. Cited by: §3.
-  (2019) BERT: pre-training of deep bidirectional transformers for language understanding. In ACL, Cited by: §8.
-  (2012) Mining contrastive opinions on political texts using cross-perspective topic model. In WSDM, pp. 63–72. Cited by: §3, §8.3.
-  (2011) The stock sonar sentiment analysis of stocks based on a hybrid approach. In IAAI, Cited by: §5.2.
-  (2010) Tagme: on-the-fly annotation of short text fragments (by wikipedia entities). In CIKM, Cited by: §5.2.
Efficient and robust automated machine learning. In NeurIPS, Cited by: §8.1.
-  (1999) Classification on pairwise proximity data. In NeurIPS, pp. 438–444. Cited by: §8.1.
-  (2017) Argument relation classification using a joint inference model. In Workshop on Argument Mining, Cited by: §7.1.
-  (2006) Extracting opinions, opinion holders, and topics expressed in online news media text. In Workshop on Sentiment and Subjectivity in Text, ACL, Cited by: §3, footnote 1.
Collecting evaluative expressions for opinion extraction.
International Conference on Natural Language Processing, pp. 596–605. Cited by: footnote 1.
-  (2015) From word embeddings to document distances. In ICML, Cited by: §4, §6, §8.
-  (2014) Distributed representations of sentences and documents. In ICML, pp. 1188–1196. Cited by: §6, §8.
Combining pairwise sequence similarity and support vector machines for detecting remote protein evolutionary and structural relationships. In Journal of computational biology, Cited by: §8.1.
-  (2013) Perspective on seanad abolition. Note: https://politicalreform.ie/2013/10/11/perspective-on-seanad-abolition/ Cited by: §7.1.
-  (2005) Opinion observer: analyzing and comparing opinions on the web. In Proceedings of the 14th international conference on World Wide Web, pp. 342–351. Cited by: footnote 1.
-  (2012) A survey of opinion mining and sentiment analysis. In Mining text data, Cited by: §3.
-  (2014) The stanford corenlp natural language processing toolkit. In ACL, Cited by: §5.1.
-  (2013) Efficient estimation of word representations in vector space. In arXiv preprint arXiv:1301.3781, Cited by: §6, §8.
-  (2016) Semeval-2016 task 6: detecting stance in tweets. In SemEval, Cited by: §3.
-  (2004) Sentiment analysis using support vector machines with diverse information sources. In Proceedings of the 2004 conference on empirical methods in natural language processing, Cited by: §1.
-  (2018) Unsupervised learning of sentence embeddings using compositional n-gram features. In NAACL, Cited by: §8.
-  (2008) Opinion mining and sentiment analysis. In Foundations and Trends® in Information Retrieval, Cited by: §3.
-  (2002) Thumbs up?: sentiment classification using machine learning techniques. In ACL, pp. 79–86. Cited by: §1.
-  (2014) Aspect based sentiment analysis. Athens University of Economics and Business. Cited by: §3, §3.
-  (2001) A generalized kernel approach to dissimilarity-based classification. In JMLR, Cited by: §8.1.
-  (2008) A linear time histogram metric for improved sift matching. In ECCV, Cited by: §6.
-  (2016) SemEval-2016 task 5: aspect based sentiment analysis. In SemEval, Cited by: §3, §3, §7.1, §8.1.
-  (2018) Viewpoint discovery and understanding in social networks. In WebSci, Cited by: §3.
-  (2015) Sentilo: frame-based sentiment analysis. In Cognitive Computation, Cited by: §3, footnote 1.
-  (2017) A simple but tough-to-beat baseline for the fake news challenge stance detection task. In arXiv preprint arXiv:1707.03264, Cited by: §3.
The earth mover’s distance as a metric for image retrieval.
International journal of computer vision40 (2), pp. 99–121. Cited by: §4.
-  (2008) Introduction to information retrieval. Cambridge University Press. Cited by: §8.
-  (2013) Recursive deep models for semantic compositionality over a sentiment treebank. In EMNLP, Cited by: §3, §3.
-  (2010) Recognizing stances in ideological on-line debates. In NAACL, Cited by: §8.1.
-  (2018) ArgumenText: searching for arguments in heterogeneous sources. In ACL, Cited by: §3.
-  (2008) A joint model of text and aspect ratings for sentiment summarization. ACL. Cited by: §3, §3.
-  (2018) Learning sentiment composition from sentiment lexicons. In COLING, Cited by: §5.1, §5.2.
-  (2018) Unsupervised model for topic viewpoint discovery in online debates leveraging author interactions.. In ICWSM, Cited by: §3.
-  (2015) Opinion holder and target extraction for verb-based opinion predicates – the problem is not solved. In Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis, Cited by: §3.
-  (2018) Bert-as-service. Note: https://github.com/hanxiao/bert-as-service Cited by: §8.
-  (2018) Deep learning for sentiment analysis: a survey. In Data Mining and Knowledge Discovery, Cited by: §3.
11.1 Noun-phrase Representation: SemRegex Rules
The parse-tree variant of opinion distance relies on the dependency parse tree to extract opinion subject and opinion expression terms. In addition to the basic dependencies, enhanced dependencies and Named entity extraction functionalities present in Stanford CoreNLP, we also lever SemRegex rules. The list of rules with Stanford CoreNLP’s SemRegrex pattern matching system is presented in Table 9. The refers to opinion subject while # refers to the opinion expression.