<?xml version="1.0"?><!DOCTYPE article SYSTEM "/project/take/software/searchbench_offline_processing/paperxml_generator/aclextractor/src/python/../resource/dtd/paperxml.dtd"><article><header><firstpageheader><page local="1" global="1245"/><title>What's with the Attitude? Identifying Sentences with Attitude in Online Discussions</title><pubinfo>Proceedings of the 2010 Conference on Empirical Methods in Natural Language Processing,pages 1245-1255, MIT, Massachusetts, USA, 9-11 October 2010. ©2010 Association for Computational Linguistics</pubinfo><author surname="Hassan" givenname="Ahmed"><org  name="University of Michigan" country="USA" city="Ann Arbor"/></author><author surname="Qazvinian" givenname="Vahed"><org  name="University of Michigan" country="USA" city="Ann Arbor"/></author><author surname="Radev" givenname="Dragomir"><org  name="University of Michigan" country="USA" city="Ann Arbor"/></author></firstpageheader><frontmatter><p><b>What's with the Attitude? Identifying Sentences with Attitude in Online</b></p><p><b>Discussions</b></p><p><b>Ahmed Hassan Vahed Qazvinian Dragomir Radev</b></p><p>University of Michigan Ann Arbor Ann Arbor, Michigan, USA</p><p>hassanam,vahed,radev@umich.edu</p></frontmatter><abstract>Mining sentiment from user generated content is a very important task in Natural Language Processing. An example of such content is threaded discussions which act as a very im­portant tool for communication and collabo­ration in the Web. Threaded discussions in­clude e-mails, e-mail lists, bulletin boards, newsgroups, and Internet forums. Most of the work on sentiment analysis has been centered around finding the sentiment toward products or topics. In this work, we present a method to identify the attitude of participants in an online discussion toward one another. This would enable us to build a signed network representation of participant interaction where every edge has a sign that indicates whether the interaction is positive or negative. This is different from most of the research on so­cial networks that has focused almost exclu­sively on positive links. The method is exper­imentally tested using a manually labeled set of discussion posts. The results show that the proposed method is capable of identifying at-titudinal sentences, and their signs, with high accuracy and that it outperforms several other baselines. </abstract></header><body><section number="1" title="Introduction"><p>Mining sentiment from text has a wide range of applications from mining product reviews on the Web (Morinaga et al., 2002; Turney and Littman, 2003) to analyzing political speeches (Thomas et al., 2006). Automatic methods for sentiment mining are very important because manual extraction of them is very costly, and inefficient. A new application of sentiment mining is to automatically identify atti­tudes between participants in an online discussion. An automatic tool to identify attitudes will enable us to build a signed network representation of par­ticipant interaction in which the interaction between two participants is represented using a positive or a negative edge. Even though using signed edges in social network studies is clearly important, most of the social networks research has focused only on positive links between entities. Some work has re­cently investigated signed networks (Leskovec et al., 2010; Kunegis et al., 2009), however this work was limited to a few number of datasets in which users were allowed to explicitly add negative, as well as positive, relations. This work will pave the way for research efforts to examine signed social networks in more detail. It will also allow us to study the re­lation between explicit relations and the text under­lying those relation.</p><p>Although similar, identifying sentences that dis­play an attitude in discussions is different from iden­tifying opinionated sentences. A sentence in a dis­cussion may bear opinions about a definite target (e.g., price of a camera) and yet have no attitude to­ward the other participants in the discussion. For in­stance, in the following discussion Alice's sentence has her opinion against something, yet no attitude toward the recipient of the sentence, Bob.</p><p>Alice: "You know what, he turned out to be a great disappointment" Bob: "You are completely unqualified to judge this great person"</p><p>However, Bob shows strong attitude toward Alice. In this work, we look at ways to predict whether a sentence displays an attitude toward the text recip­ient. An attitude is the mental position of one par­ticipant with regard to another participant. it could be either positive or negative. We consider features which takes into account the entire structure of sen­tences at different levels or generalization. Those features include lexical items, part-of-speech tags, and dependency relations.<page local="2" global="1246"/> We use all those patterns to build several pairs of models that represent sen­tences with and without attitude.</p><p>The rest of the paper is organized as follows. In Section 2 we review some of the related prior work on identifying polarized words and subjectivity anal­ysis. We explain the problem definition and discuss our approach in Sections 3 &amp; 4. Finally, in Sec­tions 5 &amp; 6 we introduce our dataset and discuss the experimental setup. Finally, we conclude in Section 7.</p></section><section number="2" title="Related Work"><p>Identifying the polarity of individual words is a well studied problem. In previous work, Hatzivassiloglou and McKeown (1997) propose a method to iden­tify the polarity of adjectives. They use a manu­ally labeled corpus to classify each conjunction of an adjective as "the same orientation" as the adjec­tive or "different orientation". Their method can label simple in "simple and well-received" as the same orientation and simplistic in "simplistic but well-received" as the opposite orientation of well-received. Although the results look promising, the method would only be applicable to adjectives since noun conjunctions may collocate regardless of their semantic orientations (e.g., "rise and fall").</p><p>In other work, Turney and Littman (2003) use sta­tistical measures to find the association between a given word and a set of positive/negative seed words. In order to get word co-occurrence statistics they use the "near" operator from a commercial search en­gine on a given word and a seed word.</p><p>In more recent work, Takamura et al. (2005) used the spin model to extract word semantic orientation. First, they construct a network of words using def­initions, thesaurus, and co-occurrence statistics. In this network, each word is regarded as an electron, which has a spin and each spin has a direction tak­ing one of two values: up or down. Then, they use the energy point of view to propose that neighboring electrons tend to have the same spin direction, and therefore neighboring words tend to have the same polarity orientations. Finally, they use the mean field method to find the optimal solution for electron spin directions.</p><p>Previous work has also used WordNet, a lexi­cal database of English, to identify word polarity. Specifically, Hu and Liu (2004) use WordNet syn­onyms and antonyms to predict the polarity of any given word with unknown polarity. They label each word with the polarity of its synonyms and the op­posite polarity of its antonyms. They continue in a bootstrapping manner to label all unlabeled in­stances. This work is very similar to (Kamps et al., 2004) in which a network of WordNet synonyms is used to find the shortest path between any given word, and the words "good" and "bad". Kim and Hovy (Kim and Hovy, 2004) used WordNet syn­onyms and antonyms to expand two lists of positive and negative seed words. Similarly, Andreevskaia and Bergler (2006) used WordNet to expand seed lists with fuzzy sentiment categories, in which words could be more central to one category than the other. Finally, Kanayama and Nasukawa (2006) used syn­tactic features and context coherency, defined as the tendency for same polarities to appear successively, to acquire polar atoms.</p><p>All the work mentioned above focus on the task of identifying the polarity of individual words. Our proposed work is identifying attitudes in sentences that appear in online discussions. Perhaps the most similar work to ours is the prior work on subjectivity analysis, which is to identify text that present opin­ions as opposed to objective text that present fac­tual information (Wiebe, 2000). Prior work on sub­jectivity analysis mainly consists of two main cate­gories: The first category is concerned with identify­ing the subjectivity of individual phrases and words regardless of the sentence and context they appear in (Wiebe, 2000; Hatzivassiloglou and Wiebe, 2000; Banea et al., 2008). In the second category, sub­jectivity of a phrase or word is analyzed within its context (Riloff and Wiebe, 2003; Yu and Hatzivas-siloglou, 2003; Nasukawa and Yi, 2003; Popescu and Etzioni, ). A good study of the applications of subjectivity analysis from review mining to email classification is given in (Wiebe, 2000). Somasun-daran et al. (2007) develop genre-speci.c lexicons using interesting function word combinations for de­tecting opinions in meetings. Despite similarities, our work is different from subjectivity analysis be­cause the later only discriminates between opinions and facts.  A discussion sentence may display an opinion about some topic yet no attitude.<page local="3" global="1247"/> The lan­guage constituents considered in opinion detection may be different from those used to detect attitude. Moreover, extracting attitudes from online discus­sions is different from targeting subjective expres­sions (Josef Ruppenhofer and Wiebe, 2008; Kim and Hovy, 2004). The later usually has a limited set of targets that compete for the subjective expres­sions (for example in movie review, targets could be: director, actors, plot, and so forth). We cannot use similar methods because we are working on an open domain where anything could be a target. A very de­tailed survey that covers techniques and approaches in sentiment analysis and opinion mining could be found in (Pang and Lee, 2008).</p><p>There is also some related work on mining on­line discussions. Lin et al (2009) proposes a sparse coding-based model simultaneously model seman­tics and structure of threaded discussions. Shen et al (2006) proposes three clustering methods for exploiting the temporal information in the streams, as well as an algorithm based on linguistic fea­tures to analyze the discourse structure information. Huang et al (2007) used an SVM classifier to extract (thread-title, reply) pairs as chat knowledge from on­line discussion forums to support the construction of a chatbot for a certain domain. Other work has focused on the structure of questions and question-answer pairs in online forums and discussions (Ding et al., 2008; Cong et al., 2008).</p></section><section number="3" title="Problem Definition"><p>Assume we have a set of sentences exchanged be­tween participants in an online discussion. Our ob­jective is to identify sentences that display an atti­tude from the text writer to the text recepient from those that do not. An attitude is the mental posi­tion of one particpant with regard to another partic­ipant. An attitude may not be directly observable, but rather inferred from what particpants say to one another. The attitude could be either positive or neg­ative. Strategies for showing a positive attitude may include agreement, and praise, while strategies for showing a negative attitude may include disagree­ment, insults, and negative slang. After identifying sentences that display an attitude, we also predict the sign (positive or negative) of that attitude.</p></section><section number="4" title="Approach"><p>In this section, we describe a model which, given a sentence, predicts whether it carries an attitude from the text writer toward the text recipient or not. Any given piece of text exchanged between two partici­pants in a discussion could carry an attitude toward the text recipient, an attitude towards the topic, or no attitude at all. As we are only interested in at­titudes between participants, we limit our study to sentences that use second person pronouns. Second person pronouns are usually used in conversational genre to indicate that the text writer is addressing the text recipient. After identifying those sentences, we do some pre-processing to extract the most relevant fragments. We examine these fragments to to iden­tify the polarity of every word in the sentence. Every word could be assigned a semantic orientation. The semantic orientation could be either positive, nega­tive, or neutral. The existence of polarized words in any sentence is an important indicator of whether it carries an attitude or not.</p><p>The next step is to extract several patterns at different levels of generalization representing any given sentence. We use those patterns to build two Markov models for every kind of patterns. The first model characterizes the relation between different tokens for all patterns that correspond to sentences that have an attitude. The second model is similar to the first one, but it uses all patterns that correspond to sentences that do not have an attitude. Given a new sentence, we extract the corresponding patterns and estimate the likelihood of every pattern being generated from the two corresponding models. We then compare the likelihood of the sentence under the two models and use this as a feature to predict the existence of an attitude. A pair of models will be built for every kind of patterns. If we have n dif­ferent patterns, we will have n different likelihood ratios that come from n pairs of models.</p><subsection number="4.1" title="Word Polarity Identification"><p>Identifying the polarity of words is an important step for our method. Our word identification module is similar to the work in (Annon, 2010). We construct a graph where each node represent a word/part-of-speech pair. Two nodes are linked if the words are related. We use WordNet (Miller, 1995) to link related words based on synonyms, hypernyms, and similar to relations.<page local="4" global="1248"/> For words that do not appear in Wordnet, we used Wiktionary, a collaboratively constructed dictionary. We also add some links based on co-occurrence statistics between words as from a large corpus. The resulting graph is a graph G(W, <i>E) </i>where W is a set of word/part-of-speech pairs, and E is the set of edges connecting related words.</p><p>We define a random walk model on the graph, where the set of nodes correspond to the state space of the random walk. Transition probabilities are cal­culated by normalizing the weights of the edges out of every node. Let S + and S— be two sets of ver­tices representing seed words that are already la­beled as either positive or negative respectively. We used the list of labeled seeds from (Hatzivassiloglou and McKeown, 1997) and (Stone et al., 1966). For any given word w, we calculate the mean hitting time between w, and the two seed sets h(w | S+), and h(w|S<b>—</b>). The mean hitting time h(i|k) is defined as the average number of steps a random walker, start­ing in state i = k, will take to enter state k for the first time (Norris, 1997). If h(w|S+) is greater than h(w|S<b>—</b>), the word is classified as negative, oth­erwise it is classified as positive. We also use the method described in (Wilson et al., 2005) to deter­mine the contextual polarity of the identified words. The set of features used to predict contextual polar­ity include word, sentence, polarity, structure, and other features.</p></subsection><subsection number="4.2" title="Identifying Relevant Parts of Sentences"><p>The writing style in online discussion forums is very informal. Some of the sentence are very long, and punctuation marks are not always properly used. To solve this problem, we decided to use the grammat­ical structure of sentences to identify the most rele­vant part of sentences that would be the subject of further analysis. Figure 1 shows a parse tree repre­senting the grammatical structure of a particular sen­tence. If we closely examine the sentence, we will notice that we are only interested in a part of the sentence that includes the second person pronoun "you". We extract this part, by starting at the word of interest , in this case "you", and go up in the hi­erarchy till we hit the first sentence clause. Once, we reach a sentence clause, we extract the corresponding text if it is grammatical, otherwise we go up one more level to the closest sentence clause. We used the Stanford parser to generate the grammatical structure of sentences (Klein and Manning, 2003).</p><figure caption="Figure 1: An example showing how to identify the rele­vant part of a sentence."></figure></subsection><subsection number="4.3" title="Sentences as Patterns"><p>The fragments we extracted earlier are more rele­vant to our task and are more suitable for further analysis. However, these fragments are completely lexicalized and consequently the performance of any analysis based on them will be limited by data spar-sity. We can alleviate this by using more general representations of words. Those general representa­tions can be used a long with words to generate a set of patterns that represent each fragment. Each pat­tern consists of a sequence of tokens. Examples of such patterns could use lexical items, part-of-speech (POS) tags, word polarity tags, and dependency re­lations.</p><p>We use three different patterns to represent each fragments:</p><p>• Lexical patterns: All polarized words are re­places with the corresponding polarity tag, and all other words are left as is.</p><p>• Part-of-speech patterns: All words are replaced with their POS tags. Second person pronouns are left as is. Polarized words are replaced with their polarity tags and their POS tags.</p><p>• Dependency grammar patterns: the shortest path connecting every second person pronoun</p><page local="5" global="1249"/><p>to the closed polarized word is extracted. The second person pronoun, the polarized word tag, and the types of the dependency relations along the path connecting them are used as a pat­tern. It has been shown in previous work on relation extraction that the shortest path be­tween any two entities captures the the in­formation required to assert a relationship be­tween them (Bunescu and Mooney, 2005). Ev­ery polarized word is assigned to the closest second person pronoun in the dependency tree. This is only useful for sentences that have po­larized words.</p><p>Table 1 shows the different kinds of representa­tions for a particular sentence. We use text, part-of-speech tags, polarity tags, and dependency rela­tions. The corresponding patterns for this sentence are shown in Table 2.</p></subsection><subsection number="4.4" title="Building the Models"><p>Given a set of patterns representing a set of sen­tences, we can build a graph G = <i>V,E,w </i>where V is the set of all possible token that may appear in the patterns. E = V x V is the set of possible transitions between any two tokens. w : E — [0..1] is a weighting function that assigns to every pair of states (i, j<i>) </i>a weight w(i, j) representing the proba­bility that we have a transition from state i to state j.</p><p>This graph corresponds to a Markovian model. The set of states are the vocabulary, and the the tran­sition probabilities between states are estimated us­ing Maximum Likelihood estimation as follows:</p><doubt alpha="50.0" length="4" tooSmall="False" monospace="0.0">P="a</doubt><p>where <i>N</i><i>ij</i><i> </i>is the number of times we saw a transition from i to state j, and <i>Ni</i><i> </i>is the total number of times we saw state i in the training data. This is similar to building a language model over the language of the patterns.</p><p>We build two such models for every kind of pat­terns. The first model is built using all sentences that appeared in the training dataset and was labeled as having an attitude, and the second model is built us­ing all sentences in the training dataset that do not have an attitude. If we have n kinds of patterns, we will build one such pair for every kind of patterns. Hence, we will end up with 2n models.</p></subsection><subsection number="4.5" title="Identifying Sentences with Attitude"><p>We split our training data into two splits; the first containing all sentences that have an attitude and the second containing all sentences that do not have an attitude. Given the methodology described in the previous section, we build n pairs of Markov mod­els. Given any sentence, we extract the correspond­ing patterns and estimate the log likelihood that this sequence of tokens was generated from every model.</p><p>Given a model M, and sequence of tokens <i>T </i><i>= </i><i>(T</i><i>i</i><i>,T</i><i>2,</i><i>. ..TS</i><i>n),</i><i> </i>the probability of this token se­quence being generated from M is:</p><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">nn</doubt><doubt alpha="50.0" length="36" tooSmall="False" monospace="0.0">Pm(T) =HP(Ti|Ti,...,Ti_i)=HW(T-i,Ti)</doubt><doubt alpha="28.6" length="7" tooSmall="False" monospace="0.0">i=2 i=2</doubt><p>where n is the number of tokens in the pattern, and W is the probability transition function. The log likelihood is then defined as:</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">n</doubt><doubt alpha="56.5" length="23" tooSmall="False" monospace="0.0">LLm(T) =J2l°gW(Ti_i,Ti)</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">i=2</doubt><p>For every pair of models, we may use the ratio be­tween the two likelihoods as a feature:</p><p><i>f </i><i>=     </i><i><u>LLM</u></i><i><u>att </u></i><i><u>(</u></i><i><u>T</u></i><u>)</u><i>LLM</i><i>„oatt </i><i>(</i><i>T</i>) where T is the token sequence, <i>LLMatt (T) </i>is the log likelihood of the sequence given the attitude model, and <i>LLMnoatt (T</i><i>) </i>is the log likelihood of the pattern given the no-attitude model.</p><p>Given the <i>n </i>kinds of patterns, we can calculate three different features. A standard machine learn­ing classifier is then trained using those features to predict whether a given sentence has an attitude or not.</p></subsection><subsection number="4.6" title="Identifying the Sign of an Attitude"><p>To determine the orientation of an attitude sentence, we tried two different methods. The first method as­sumes that the orientation of an attitude sentence is directly related to the polarity of the words it con­tains. If the sentence has only positive and neutral<page local="6" global="1250"/></p><table caption="Table 1: Tags used for building patterns"></table><p>Text That makes your claims so ignorant</p><p>POS That/DT makes/VBZ your/PRP$ claims/NNS so/RB ignorant/JJ</p><p>Polarity That/O makes/O your/O claims/O so/O ignorant/NEG</p><p>„ , poss   ^ .      nsubj .</p><p>Dependency   your — claims — ignorant</p><table caption="Table 2: Sample patterns"></table><p>Lexical pattern That makes your claims so NEG <u>POS pattern</u>_<u>DT VBZ your_PRP$ NNS RB NEG JJ</u></p><p>Dependency pattern   your poss nsubj NEG words, it is classified as positive. If the sentence has only negative and neutral words, it is classified as negative. If the sentence has both positive and negative words, we calculate the summation of the polarity scores of all positive words and that of all negative words. The polarity score of a word is an indicator of how strong of a polarized word it is. If the former is greater, we classify the sentence as pos-itive,otherwise we classify the sentence as negative.</p><p>The problem with this method is that it assumes that all polarized words in a sentence with an atti­tude target the text recipient. Unfortunately, that is not always correct. For example, the sentence "You are completely unqualified to judge this great per­son" has a positive word "great" and a negative word "unqualified". The first method will not be able to predict whether the sentence is positive or negative. To solve this problem, we use another method that is based on the paths that connect polarized words to second person pronouns in a dependency parse tree. For every positive word <i>w </i>, we identify the shortest path connecting it to every second person pronoun in the sentence then we compute the average length of the shortest path connecting every positive word to the closest second person pronoun. We repeat for negative words and compare the two values. The sentence is classified as positive if the average length of the shortest path connecting positive words to the closest second person pronoun is smaller than the corresponding value for negative words. Otherwise, we classify the sentence as negative.</p><doubt alpha="66.7" length="6" tooSmall="False" monospace="0.0">5 Data</doubt><p>Our data was randomly collected from a set of dis­cussion groups.  We collected a large number of threads from the first quarter of 2009 from a set of Usenet discussion groups. All threads were in En­glish, and had 5 posts or more. We parsed the down­loaded threads to identify the posts and senders. We kept posts that have quoted text and discarded all other posts. The reason behind that is that partici­pants usually quote other participants text when they reply to them. This restriction allows us to iden­tify the target of every post, and raises the proba­bility that the post will display an attitude from its writer to its target. We plan to use more sophsticated methods for reconstructing the reply structure like the one in (Lin et al., 2009). From those posts, we randomly selected approximately 10,000 sentences that use second person pronouns. We explained ear­lier how second person pronouns are used in discus­sions genres to indicate the writer is targeting the text recipient. Given a random sentence selected from some random discussion thread, the probabil­ity that the sentence does not have an attitude is sig­nificantly larger than the probability that it will have an attitude. Hence, restricting our dataset to posts with quoted text and sentences with second person pronouns is very important to make sure that we will have a considerable amount of attitudinal sen­tences. The data was tokenized, sentence-split, part-of-speech tagged with the OpenNLP toolkit. It was parsed with the Stanford dependency parser (Klein and Manning, 2003).</p></subsection><subsection number="5.1" title="Annotation Scheme"><p>The goals of the annotation scheme are to distin­guish sentences that display an attitude from those that do not. Sentences could display either a neg­ative or a positive attitude. Disagreement, insults, and negative slang are indicators of negative attitude.</p><page local="7" global="1251"/><p>Agreement, and praise are indicators of positive at­titude. Our annotators were instructed to read every sentence and assign two labels to it. The first speci­fies whether the sentence displays an attitude or not. The existence of an attitude was judged on a three point scale: attitude, unsure, and no-attitude. The second is the sign of the attitude. If an attitude ex­ists, annotators were asked to specify whether the attitude is positive or negative. To evaluate inter-annotator agreement, we use the <i>agr </i>operator pre­sented in (Wiebe et al., 2005). This metric measures the precision and recall of one annotator using the annotations of another annotator as a gold standard. The process is repeated for all pairs of annotators, and then the harmonic mean of all values is reported. Formally:</p><doubt alpha="42.9" length="7" tooSmall="False" monospace="0.0">|A n B|</doubt><doubt alpha="50.0" length="10" tooSmall="False" monospace="0.0">agr(A|B) =</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(1)</doubt><p>where A, and <i>B </i>are the annotation sets produced by the two reviewers. Table 3 shows the value of the <i>agr </i>operator for all pairs of annotators. The har­monic mean of the <i>agr </i>operator is 80%. The <i>agr </i>operator was used over the Kappa Statistic because the distribution of the data was fairly skewed.</p></subsection></section><section number="6" title="Experiments"><subsection number="6.1" title="Experimental Setup"><p>We performed experiments on the data described in the previous section. The number of sentences with an attitude was around 20% of the entire dataset. The class imbalance caused by the small number of attitude sentences may hurt the performance of the learning algorithm (Provost, 2000). A common way of addressing this problem is to artificially rebal­ance the training data. To do this we down-sample the majority class by randomly selecting, without replacement, a number of sentences without an at­titude that equals the number of sentences with an attitude. That resulted in a balanced subset, approx­imately 4000 sentences, that we used in our experi­ments.</p><p>We used Support Vector Machines (SVM) as a classifier. We optimized SVM separately for every experiment. We used 10-fold cross validation for all tests. We evaluate our results in terms of precision, recall, accuracy, and F1. Statistical significance was tested using a 2-tailed paired t-test. All reported re­sults are statistically significant at the 0.05 level. We compare the proposed method to several other base­lines that will be described in the next subsection. We also perform experiments to measure the perfor­mance if we mix features from the baselines and the proposed method.</p></subsection><subsection number="6.2" title="Baselines"><p>The first baseline is based on the hypothesis that the existence of polarized words is a strong indicator that the sentence has an attitude. As a result, we use the number of polarized word in the sentence, the percentage of polarized words to all other words, and whether the sentences has polarized words with mixed or same sign as features to train an SVM clas­sifier to detect attitude.</p><p>The second baseline is based on the proximity be­tween the polarized words and the second person pronouns. We assume that every polarized word is associated with the closest second person pronoun. Let <i>w </i>be a polarized word and <i>p(w) </i>be the closes second person pronoun, and <i>surf-dist(w,p(w)) </i>be the surface distance between <i>w </i>and <i>p(w)</i>. This base­line uses the minimum, maximum, and average of <i>surf-dist(w,p(w)) </i>for all polarized words as fea­tures to train an SVM classifier to identify sentences with attitude.</p><p>The next baseline uses the dependency tree dis­tance instead of the surface distance. We assume that every polarized word is associated to the second per­son pronoun that is connected to it using the smallest shortest path. The <i>dep-dist(w, p(w)) </i>is calculated similar to the previous baselines but using the de­pendency tree distance. The minimum, maximum, and average of this distance for all polarized words are used as features to train an SVM classifier.</p><table caption="Table 3: Inter-annotator agreement" class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>A</p></td><td class="cell"><p>B</p></td><td class="cell"><p>C</p></td><td class="cell"><p>D</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>A</p></td><td class="cell"><p>-</p></td><td class="cell"><p>82.7</p></td><td class="cell"><p>80.6</p></td><td class="cell"><p>82.1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>B</p></td><td class="cell"><p>81.0</p></td><td class="cell"><p>-</p></td><td class="cell"><p>81.9</p></td><td class="cell"><p>82.9</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>C</p></td><td class="cell"><p>77.8</p></td><td class="cell"><p>78.2</p></td><td class="cell"><p>-</p></td><td class="cell"><p>83.8</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>D</p></td><td class="cell"><p>78.3</p></td><td class="cell"><p>77.7</p></td><td class="cell"><p>78.6</p></td><td class="cell"><p>-</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="8" global="1252"/><p><b>Accuracy Precision Recall</b></p><figure caption="Figure 2: Accuracy, Precision, and Recall for the Pro­posed Approach and the Baselines."></figure><doubt alpha="0.0" length="2" tooSmall="True" monospace="0.0">40</doubt><doubt alpha="0.0" length="18" tooSmall="True" monospace="0.0">30 - -20 - -10 - -</doubt><footnote label="0">0 10 20 30 40 50 60 70 80 90 100</footnote><doubt alpha="100.0" length="6" tooSmall="True" monospace="0.0">Recall</doubt><figure caption="Figure 3: Precision Recall Graph."></figure></subsection><subsection number="6.3" title="Results and Discussion"><p>Figure 2 compares the accuracy, precision, and re­call of the proposed method (ML), the polarity based classifier (POL), the surface distance based classi­fier (SurLDist), and the dependency distance based classifier (DepJDist). The values are selected to opti­mize F1. The figure shows that the surface distance based classifier behaves poorly with low accuracy, precision, and recall. The two other baselines be­have poorly as well in terms of precision and accu­racy, but they do very well in terms of recall. We looked at some of the examples to understand why those two baselines achieve very high recall. It turns out that they tend to predict most sentences that have polarized words as sentences with attitude. This re­sults in many false positives and low true negative rate. Achieving high recall at the expense of losing precision is trivial. On the other hand, we notice that the proposed method results in very close values of precision and recall at the optimum F1 point.</p><doubt alpha="0.0" length="2" tooSmall="True" monospace="0.0">82</doubt><doubt alpha="4.2" length="24" tooSmall="True" monospace="0.0">75 I-±-'-'-'-'-'-'-'-'-1</doubt><doubt alpha="0.0" length="32" tooSmall="True" monospace="0.0">0 10 20 30 40 50 60 70 80 90 100</doubt><doubt alpha="71.4" length="21" tooSmall="True" monospace="0.0">Training Set Size (%)</doubt><figure caption="Figure 4: Accuracy Learning Curve for the Proposed Method."></figure><p>To better compare the performance of the pro­posed method and the baseline, we study the the precision-recall curves for all methods in Figure 3. We notice that the proposed method outperforms all baselines at all operating points. We also notice that the proposed method provides a nice trade-off be­tween precision and recall. This allows us some flex­ibility in choosing the operating point. For example, in some applications we might be interested in very high precision even if we lose recall, while in other applications we might sacrifice precision in order to get high recall. On the other hand, we notice that the baselines always have low precision regardless of recall.</p><p>Table 4 shows the accuracy, precision, recall, and F1 for the proposed method and all baselines. It also shows the performance when we add features from the baselines to the proposed method, or merge some of the baselines. We see that we did not get any im­provement when we added the baseline features to the proposed method. We believe that the proposed method captures all the information captured by the baselines and more.</p><p>Our proposed method uses three different features that correspond to the three types of patterns we use to represent every sentence. To understand the con­tributions of every feature, we measure the perfor­mance of every feature by itself and also all possible combinations of pairs of features. We compare that to the performance we get when using all features in Table 5.<page local="9" global="1253"/> We see that the part-of-speech patterns per­forms better than the text patterns. This makes sense because the former suffers from data sparsity. De­pendency patterns performs best in terms of recall, while part-of-speech patterns outperform all others in terms of precision, and accuracy. All pairs of features outperform any single feature that belong to the corresponding pair in terms of F1. We also notice that using the three features results in better performance when compared to all other combina­tions. This shows that every kind of pattern captures slightly different information when compared to the others. It also shows that merging the three features improves performance.</p><p>One important question is how much data is re­quired to the proposed model. We constructed a learning curve, shown in Figure 4, by fixing the test set size at one tenth of the data, and varying the training set size. We carried out ten-fold cross validation as with our previous experiments. We see that adding more data continues to increase the accu­racy, and that accuracy is quite sensitive to the train­ing data. This suggests that adding more data to this model could lead to even better results.</p><p>We also measured the accuracy of the two meth­ods we proposed for predicting the sign of attitudes. The accuracy of the first model that only uses the count and scores of polarized words was 95%. The accuracy of the second method that used depen­dency distance was 97%.</p></subsection><subsection number="6.4" title="Error Analysis"><p>We had a closer look at the results to find out what are the reasons behind incorrect predictions. We found two main reasons. First, errors in predicting word polarity usually propagates and results in er­rors in attitude prediction. The reasons behind incor­rect word polarity predictions is ambiguity in word senses and infrequent words that have very few con­nection in thesaurus. A possible solution to this type of errors is to improve the word polarity identifica­tion module by including word sense disambigua­tion and adding more links to the words graph using glosses or co-occurrence statistics. The second rea­son is that some sentences are sarcastic in nature. It is so difficult to identify such sentences. Identify­ing sarcasm should be addressed as a separate prob-</p><p>Table 4: Precision, Recall, F1, and Accuracy for the pro­posed method, the baselines, and different combinations of proposed method and the baselines features</p><p>Table 5: Precision, Recall, F1, and Accuracy for different combinations of the proposed method's features.</p><p>lem. A method that utilizes holistic approaches that takes context and previous interactions between dis­cussion participants into consideration could be used to address it.</p></subsection></section><section number="7" title="Conclusions"><p>We have shown that training a supervised Markov model of text, part-of-speech, and dependecy pat­terns allows us to identify sentences with attitudes from sentences without attitude. This model is more accurate than several other baselines that use fea­tures based on the existence of polarized word, and proximity between polarized words and second per­son pronouns both in text and dependecy trees. This method allows to extract signed social networks from multi-party online discussions. This opens the door to research efforts that go beyond standard so­cial network analysis that is based on positve links only.<page local="10" global="1254"/> It also allows us to study dynamics behind in­teractions in online discussions, the relation between text and social interactions, and how groups form and break in online discussions.</p><table class="main" frame="box" rules="all" border="0" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Method</p></td><td class="cell"><p>Accuracy</p></td><td class="cell"><p>Precision</p></td><td class="cell"><p>Recall</p></td><td class="cell"><p>F1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>ML</p></td><td class="cell"><p>80.3</p></td><td class="cell"><p>81.0</p></td><td class="cell"><p>79.4</p></td><td class="cell"><p>80.2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>POL</p></td><td class="cell"><p>73.1</p></td><td class="cell"><p>66.4</p></td><td class="cell"><p>93.9</p></td><td class="cell"><p>77.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>ML+POL</p></td><td class="cell"><p>79.9</p></td><td class="cell"><p>77.9</p></td><td class="cell"><p>83.4</p></td><td class="cell"><p>80.5</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>SurfDist</p></td><td class="cell"><p>70.2</p></td><td class="cell"><p>67.1</p></td><td class="cell"><p>79.2</p></td><td class="cell"><p>72.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>DepDist</p></td><td class="cell"><p>73.1</p></td><td class="cell"><p>66.4</p></td><td class="cell"><p>93.8</p></td><td class="cell"><p>77.8</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>SurfDist+</p></td><td class="cell"><p>73.1</p></td><td class="cell"><p>66.4</p></td><td class="cell"><p>93.8</p></td><td class="cell"><p>77.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>DepDist</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>ML+SurfDist</p></td><td class="cell"><p>73.9</p></td><td class="cell"><p>67.2</p></td><td class="cell"><p>93.6</p></td><td class="cell"><p>78.2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>ML+DepDist</p></td><td class="cell"><p>72.8</p></td><td class="cell"><p>66.1</p></td><td class="cell"><p>93.8</p></td><td class="cell"><p>77.6</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>ML+SurfDist+</p></td><td class="cell"><p>74.0</p></td><td class="cell"><p>67.2</p></td><td class="cell"><p>93.4</p></td><td class="cell"><p>78.2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>DepDist</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>SurfDist+</p></td><td class="cell"><p>73.1</p></td><td class="cell"><p>66.3</p></td><td class="cell"><p>93.8</p></td><td class="cell"><p>77.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>DepDist+POL</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>ML+SurfDist+</p></td><td class="cell"><p>73.0</p></td><td class="cell"><p>66.2</p></td><td class="cell"><p>93.8</p></td><td class="cell"><p>77.6</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>DepDist+POL</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table class="main" frame="box" rules="all" border="0" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Method</p></td><td class="cell"><p>Accuracy</p></td><td class="cell"><p>Precision</p></td><td class="cell"><p>Recall</p></td><td class="cell"><p>F1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>txt</p></td><td class="cell"><p>75.5</p></td><td class="cell"><p>74.1</p></td><td class="cell"><p>78.6</p></td><td class="cell"><p>76.2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>pos</p></td><td class="cell"><p>77.7</p></td><td class="cell"><p>78.2</p></td><td class="cell"><p>76.9</p></td><td class="cell"><p>77.5</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>dep</p></td><td class="cell"><p>74.7</p></td><td class="cell"><p>70.4</p></td><td class="cell"><p>85.1</p></td><td class="cell"><p>77.0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>txt+pos</p></td><td class="cell"><p>77.8</p></td><td class="cell"><p>77.0</p></td><td class="cell"><p>79.4</p></td><td class="cell"><p>78.1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>txt+dep</p></td><td class="cell"><p>79.4</p></td><td class="cell"><p>79.6</p></td><td class="cell"><p>79.2</p></td><td class="cell"><p>79.4</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>pos+dep</p></td><td class="cell"><p>80.4</p></td><td class="cell"><p>79.1</p></td><td class="cell"><p>82.5</p></td><td class="cell"><p>80.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>txt+pos+dep</p></td><td class="cell"><p>80.3</p></td><td class="cell"><p>81.0</p></td><td class="cell"><p>79.4</p></td><td class="cell"><p>80.2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table></section><section title="Acknowledgments"><p>This research was funded by the Office of the Di­rector of National Intelligence (ODNI), Intelligence Advanced Research Projects Activity (IARPA), through the U.S. Army Research Lab. All state­ments of fact, opinion or conclusions contained herein are those of the authors and should not be construed as representing the official views or poli­cies of IARPA, the ODNI or the U.S. Government.</p></section><references><p>Alina Andreevskaia and Sabine Bergler. 2006. Mining wordnet for fuzzy sentiment: Sentiment tag extraction from wordnet glosses. In <i>EACL'06.</i></p><p>Carmen Banea, Rada Mihalcea, and Janyce Wiebe. 2008. A bootstrapping method for building subjec­tivity lexicons for languages with scarce resources. In <i>LREC'08.</i></p><p>Razvan C. Bunescu and Raymond J. Mooney. 2005. A shortest path dependency kernel for relation extrac­tion. In <i>HLT '05, </i>pages 724-731, Morristown, NJ, USA. Association for Computational Linguistics.</p><p>Gao Cong, Long Wang, Chin-Yew Lin, Young-In Song, and Yueheng Sun. 2008. Finding question-answer pairs from online forums. In <i>SIGIR '08, </i>pages 467­474.</p><p>Shilin Ding, Gao Cong, Chin-Yew Lin, and Xiaoyan Zhu. 2008. Using conditional random fields to extract con­texts and answers of questions from online forums. In <i>ACL'08, </i>pages 710-718.</p><p>Vasileios Hatzivassiloglou and Kathleen R. McKeown. 1997. Predicting the semantic orientation of adjec­tives. In <i>EACL'97, </i>pages 174-181.</p><p>Vasileios Hatzivassiloglou and Janyce Wiebe. 2000. Ef­fects of adjective orientation and gradability on sen­tence subjectivity. In <i>COLING, </i>pages 299-305.</p><p>Minqing Hu and Bing Liu. 2004. Mining and summariz­ing customer reviews. In <i>KDD'04, </i>pages 168-177.</p><p>Jizhou Huang, Ming Zhou, and Dan Yang. 2007. Ex­tracting chatbot knowledge from online discussion fo­rums. In <i>IJCAI'07, </i>pages 423-428.</p><p>Swapna Somasundaran Josef Ruppenhofer and Janyce Wiebe. 2008. Finding the sources and targets of subjective expressions. In <i>Proceedings of the Sixth International Language Resources and Evalua­tion (LREC '08).</i></p><p>Jaap Kamps, Maarten Marx, Robert J. Mokken, and Maarten De Rijke. 2004. Using wordnet to measure semantic orientations of adjectives. In <i>National Insti­tute for, </i>pages 1115-1118. Hiroshi Kanayama and Tetsuya Nasukawa. 2006. Fully automatic lexicon expansion for domain-oriented sen­timent analysis. In <i>EMNLP'06, </i>pages 355-363. Soo-Min Kim and Eduard Hovy. 2004. Determining the sentiment of opinions. In <i>COLING, </i>pages 1367-1373. Dan Klein and Christopher D. Manning. 2003. Accurate</p><p>unlexicalized parsing. In <i>ACL'03, </i>pages 423-430. Jerôme Kunegis, Andreas Lommatzsch, and Christian Bauckhage. 2009. The slashdot zoo: mining a so­cial network with negative edges. In <i>WWW'09, </i>pages 741-750, New York, NY, USA. Jure Leskovec, Daniel Huttenlocher, and Jon Kleinberg. 2010. Predicting positive and negative links in online social networks. In <i>WWW ' 10, </i>pages 641-650, New</p><p>York, NY, USA. ACM.</p><p>Chen Lin, Jiang-Ming Yang, Rui Cai, Xin-Jing Wang, and Wei Wang. 2009. Simultaneously modeling se­mantics and structure of threaded discussions: a sparse coding approach and its applications. In <i>SIGIR 09, </i>pages 131-138. George A. Miller. 1995. Wordnet: a lexical database for</p><p>english. <i>Commun. ACM, </i>38(11):39-41. Satoshi Morinaga, Kenji Yamanishi, Kenji Tateishi, and Toshikazu Fukushima. 2002. Mining product reputa­tions on the web. In <i>KDD'02, </i>pages 341-349. Tetsuya Nasukawa and Jeonghee Yi. 2003. Sentiment analysis: capturing favorability using natural language processing. In <i>K-CAP '03: Proceedings of the 2nd international conference on Knowledge capture, </i>pages 70-77.</p><p>J. Norris. 1997. Markov chains. Cambridge University Press.</p><p>Bo Pang and Lillian Lee. 2008. Opinion mining and sentiment analysis. <i>Foundations and Trends in Infor­mation Retrieval, </i>2(1-2):1-135. Ana-Maria Popescu and Oren Etzioni. Extracting prod­uct features and opinions from reviews.   In <i>HLT-</i> <i>EMNLP 05.</i><i></i></p><p>Foster Provost.  2000.  Machine learning from imbal-anced data sets 101. In <i>Proceedings of the AAAAI Work­shop on Imbalanced Data Sets. </i>Ellen Riloff and Janyce Wiebe.    2003. Learning extraction patterns for subjective expressions. In <i>EMNLP </i>'03, pages 105-112. Dou Shen, Qiang Yang, Jian-Tao Sun, and Zheng Chen. 2006.   Thread detection in dynamic text message streams. In <i>SIGIR 06, </i>pages 35-42. Swapna Somasundaran, Josef Ruppenhofer, and Janyce Wiebe.  2007.  Detecting arguing and sentiment in meetings.<page local="11" global="1255"/> In <i>Proceedings ofthe SIGdial Workshop on Discourse and Dialogue.</i></p><p>Philip Stone, Dexter Dunphy, Marchall Smith, and Daniel Ogilvie. 1966. The general inquirer: A computer ap­proach to content analysis. <i>The MIT Press.</i></p><p>Hiroya Takamura, Takashi Inui, and Manabu Okumura.</p><p>2005. Extracting semantic orientations ofwords using spin model. In <i>ACL'</i>05, pages 133-140.</p><p>Matt Thomas, Bo Pang, and Lillian Lee. 2006. Get out the vote: Determining support or opposition from Congressional floor-debate transcripts.   In <i>EMNLP</i> <i>2006, </i>pages 327-335.</p><p>Peter Turney and Michael Littman. 2003. Measuring praise and criticism: Inference of semantic orientation from association. <i>ACM Transactions on Information Systems, </i>21:315-346.</p><p>Janyce Wiebe, Theresa Wilson, and Claire Cardie. 2005. Annotating expressions of opinions and emotions in language.   <i>Language Resources and Evaluation,</i> 1(2):0.</p><p>Janyce Wiebe. 2000. Learning subjective adjectives from corpora. In <i>Proceedings of the Seventeenth National Conference on Artificial Intelligence and Twelfth Conference on Innovative Applications ofAr-tificial Intelligence, </i>pages 735-740.</p><p>Theresa Wilson, Janyce Wiebe, and Paul Hoffmann. 2005. Recognizing contextual polarity in phrase-level sentiment analysis. In <i>HLT/EMNLP'05, </i>Vancouver, Canada.</p><p>Hong Yu and Vasileios Hatzivassiloglou. 2003. Towards answering opinion questions: separating facts from opinions and identifying the polarity of opinion sen­tences. In <i>EMNLP'03, pages </i>129-136.</p></references></body></article>