<?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"/><title>Assigning Polarity Scores to Reviews Using Machine Learning Techniques</title><pubinfo>R. Dale et al. (Eds.): IJCNLP 2005, LNAI 3651, pp. 314-325,2005. © Springer-Verlag Berlin Heidelberg 2005</pubinfo><author surname="Okanohara" givenname="Daisuke"><org  name="University of Tokyo" country="Japan" city="Tokyo"/></author><author surname="Tsujii" givenname="Jun'ichi"><org  name="University of Manchester" country="United Kingdom" city="Manchester"/></author></firstpageheader><frontmatter><p><b>Assigning Polarity Scores to Reviews Using Machine Learning Techniques</b></p><p>Daisuke Okanohara<footnote anchor="1"/> and Jun'ichi Tsujii<footnote anchor="1"/>'<footnote anchor="2"/>'<footnote anchor="3"/></p><p><footnote anchor="1"/> Department of Computer Science, University of Tokyo, Hongo, 7-3-1, Bunkyo-ku, Tokyo 113-0013 CREST, JST, Honcho, 4-1-8, Kawaguchi-shi, Saitama 332-0012 <footnote anchor="3"/> School of Informatics, University of Manchester, POBox 88, Sackville St, Manchester, M60 1QD, UK <b>{hillbig, tsujii}@is.s.u-tokyo.ac.jp</b></p></frontmatter><abstract><b>Abstract. </b>We propose a novel type of document classification task that quantifies how much a given document (review) appreciates the target object using not binary polarity <i>(good </i>or <i>bad</i>) but a continuous mea­sure called <i>sentiment polarity score </i>(sp-score). An sp-score gives a very concise summary of a review and provides more information than binary classification. The difficulty of this task lies in the quantification of po­larity. In this paper we use support vector regression (SVR) to tackle the problem. Experiments on book reviews with five-point scales show that SVR outperforms a multi-class classification method using support vector machines and the results are close to human performance. </abstract></header><body><section number="1" title="Introduction"><p>In recent years, discussion groups, online shops, and blog systems on the Internet have gained popularity and the number of documents, such as reviews, is growing dramatically. <i>Sentiment classification </i>refers to classifying reviews not by their topics but by the polarity of their sentiment (e.g, positive or negative). It is useful for recommendation systems, fine-grained information retrieval systems, and business applications that collect opinions about a commercial product.</p><p>Recently, sentiment classification has been actively studied and experimental results have shown that machine learning approaches perform well [13,11,10,20]. We argue, however, that we can estimate the polarity of a review more finely. For example, both reviews A and B in Table 1would be classified simply as <i>positive </i>in binary classification. Obviously, this classification loses the information about the difference in the degree of polarity apparent in the review text.</p><p>We propose a novel type of document classification task where we evaluate reviews with scores like five stars. We call this score the <i>sentiment polarity score </i>(sp-score). If, for example, the range of the score is from one to five, we could give five to review A and four to review B. This task, namely, ordered multi-class classification, is considered as an extension of binary sentiment classification.</p><p>In this paper, we describe a machine learning method for this task. Our system uses support vector regression (SVR) [21] to determine the sp-scores of<page local="2"/></p><p><b>Table 1. </b>Examples of book reviews</p><p>T<b>able 2. </b>Corpus A: reviews for Harry Potter series book. Corpus B: reviews for all kinds of books. The column of <i>word </i>shows the average number of words in a review, and the column of <i>sentences </i>shows the average number of sentences in a review.</p><p>reviews. This method enables us to annotate sp-scores for arbitrary reviews such as comments in bulletin board systems or blog systems. We explore several types of features beyond a bag-of-words to capture key phrases to determine sp-scores: n-grams and references (the words around the reviewed object).</p><p>We conducted experiments with book reviews from amazon.com<i> </i>each of which had a five-point scale rating along with text. We compared pairwise sup­port vector machines (pSVMs) and SVR and found that SVR outperformed better than pSVMs by about 30% in terms of the squared error, which is close to human performance.</p></section><section number="2" title="Related Work"><p>Recent studies on sentiment classification focused on machine learning ap­proaches. Pang [13] represents a review as a feature vector and estimates the polarity with SVM, which is almost the same method as those for topic classifi­cation [1]. This paper basically follows this work, but we extend this task to a multi-order classification task.</p><p>There have been many attempts to analyze reviews deeply to improve ac­curacy. Mullen [10] used features from various information sources such as ref­erences to the "work" or "artist", which were annotated by hand, and showed that these features have the potential to improve the accuracy. We use reference features, which are the words around the fixed review target word (book), while Mullen annotated the references by hand.</p><table 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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Example of Review</p></td><td class="cell"><p>binary</p></td><td class="cell"><p>sp-score (1,...,5)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Review A</p></td><td class="cell"><p>I believe this is very good and a "must read" I can't wait to read the next book in the series.</p></td><td class="cell"><p>plus</p></td><td class="cell"><p>5</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Review B</p></td><td class="cell"><p>This book is not so bad.</p><p>You may find some interesting points in the book.</p></td><td class="cell"><p>plus</p></td><td class="cell"><p>4</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></tr></table><table 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></tr><tr class="row"><td class="cell"></td><td class="cell"><p>sp-score</p></td><td class="cell"><p>Corpus A</p></td><td class="cell"><p>Corpus B</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>review words sentences</p></td><td class="cell"><p>review words sentences</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1</p></td><td class="cell"><p>330 160.0</p></td><td class="cell"><p>9.1</p></td><td class="cell"><p>250   91.9 5.1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>2</p></td><td class="cell"><p>330 196.0</p></td><td class="cell"><p>11.0</p></td><td class="cell"><p>250 105.2 5.2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>3</p></td><td class="cell"><p>330 169.1</p></td><td class="cell"><p>9.2</p></td><td class="cell"><p>250 118.6 6.0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>4</p></td><td class="cell"><p>330 150.2</p></td><td class="cell"><p>8.6</p></td><td class="cell"><p>250 123.2 6.1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>5</p></td><td class="cell"><p>330 153.8</p></td><td class="cell"><p>8.9</p></td><td class="cell"><p>250 124.8 6.1</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></tr></table><page local="3"/><p>Turney [20] used <i>semantic orientation, </i>which measures the distance from phrases to "excellent" or "poor" by using search engine results and gives the word polarity. Kudo [8] developed decision stumps, which can capture substructures embedded in text (such as word-based dependency), and suggested that subtree features are important for opinion/modality classification.</p><p>Independently of and in parallel with our work, two other papers consider the degree of polarity for sentiment classification. Koppel [6] exploited a neu­tral class and applied a regression method as ours. Pang [12] applied a metric labeling method for the task. Our work is different from their works in several respects. We exploited square errors instead of precision for the evaluation and used five distinct scores in our experiments while Koppel used three and Pang used three/four distinct scores in their experiments.</p></section><section number="3" title="Analyzing Reviews with Polarity Scores"><p>In this section we present a novel task setting where we predict the degree of sentiment polarity of a review. We first present the definition of sp-scores and the task of assigning them to review documents. We then explain an evaluation data set. Using this data set, we examined the human performance for this task to clarify the difficulty of quantifying polarity.</p><subsection number="3.1" title="Sentiment Polarity Scores"><p>We extend the sentiment classification task to the more challenging task of as­signing rating scores to reviews. We call this score the sp-score. Examples of sp-scores include <i>five-star </i>and <i>scores out of 100. </i>Let sp-scores take discrete val­ues1 in a closed interval <i>[min...max]. </i>The task is to assign correct sp-scores to unseen reviews as accurately as possible. Let <i>y </i>be the predicted sp-score and <i>y </i>be the sp-score assigned by the reviewer. We measure the performance of an estimator with the mean square error:</p><doubt alpha="46.2" length="13" tooSmall="False" monospace="0.0">ïY:=M-vi)\(i)</doubt><p>where (x1 ,yi.),<i>(xn,yn)</i><i> </i>is the test set of reviews. This measure gives a large penalty for large mistakes, while ordered multi-class classification gives equal penalties to any types of mistakes.</p></subsection><subsection number="3.2" title="Evaluation Data"><p>We used book reviews on <i>amazon.com </i>for evaluation data23. Each review has stars assigned by the reviewer. The number of stars ranges from one to five:</p><footnote label="1">We could allow sp-scores to have continuous values. However, in this paper we assume sp-scores take only discrete values since the evaluation data set was annotated by only discrete values.</footnote><footnote label="2"> http://www.amazon.com</footnote><footnote label="3">These data were gathered from google cache using google API.</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">316</doubt><page local="4"/><p>one indicates the worst and five indicates the best. We converted the number of stars into sp-scores {1, 2, 3, 4, 5} 4. Although each review may include several paragraphs, we did not exploit paragraph information.</p><p>From these data, we made two data sets. The first was a set of reviews for books in the <i>Harry Potter </i>series (Corpus A). The second was a set of reviews for books of arbitrary kinds (Corpus B). It was easier to predict sp-scores for Corpus A than Corpus B because Corpus A books have a smaller vocabulary and each review was about twice as large. To create a data set with a uniform score distri­bution (the effect of skewed class distributions is out of the scope of this paper), we selected 330 reviews per sp-score for Corpus A and 280 reviews per sp-score for Corpus B 5. Table 2 shows the number of words and sentences in the cor­pora. There is no significant difference in the average number of words/sentences among different sp-scores.</p><p>T<b>able 3. </b>Human performance of sp-score estimation. Test data: 100 reviews of Corpus A with 1,2,3,4,5 sp-score.</p><p>T<b>able 4. </b>Results of sp-score estimation: Human 1 (left) and Human 2 (right)</p><p>3<b>.3   Preliminary Experiments: Human Performance for Assigning Sp-scores</b></p><p>We treat the sp-scores assigned by the reviewers as correct answers. However, the content of a review and its sp-score may not be related. Moreover, sp-scores may vary depending on the reviewers. We examined the universality of the sp-score.</p><footnote label="4">One must be aware that different scales may reflect the different reactions than just scales as Keller indicated [ 17 ].</footnote><footnote label="5">We actually corrected 25000 reviews. However, we used only 2900 reviews since the number of reviews with 1 star is very small. We examined the effect of the number of training data is discussed in 5.3.</footnote><table 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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Square error</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Human 1</p></td><td class="cell"><p>0.77</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Human 2</p></td><td class="cell"><p>0.79</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Human average</p></td><td class="cell"><p>0.78</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>cf. Random</p></td><td class="cell"><p>3.20</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>A113</p></td><td class="cell"><p>2.00</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></tr></table><table 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><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>Assigned</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>Assigned</p></td><td class="cell"><p></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>1   2  3  4 5</p></td><td class="cell"><p>Total</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>1   2  3 4 5</p></td><td class="cell"><p>total</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Correct</p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>Correct</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>1</p></td><td class="cell"><p>12  7  0  1 0</p></td><td class="cell"><p>20</p></td><td class="cell"><p></p></td><td class="cell"><p>1</p></td><td class="cell"><p>16   3  0 1 0</p></td><td class="cell"><p>20</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>2</p></td><td class="cell"><p>7  8  4  1 0</p></td><td class="cell"><p>20</p></td><td class="cell"><p></p></td><td class="cell"><p>2</p></td><td class="cell"><p>11   5  31 0</p></td><td class="cell"><p>20</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>3</p></td><td class="cell"><p>1   1 13  5 0</p></td><td class="cell"><p>20</p></td><td class="cell"><p></p></td><td class="cell"><p>3</p></td><td class="cell"><p>2  5  7 4 2</p></td><td class="cell"><p>20</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>4</p></td><td class="cell"><p>0  0  4 10 6</p></td><td class="cell"><p>20</p></td><td class="cell"><p></p></td><td class="cell"><p>4</p></td><td class="cell"><p>0  1   2 1 16</p></td><td class="cell"><p>20</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>5</p></td><td class="cell"><p>0  1   2  7 10</p></td><td class="cell"><p>20</p></td><td class="cell"><p></p></td><td class="cell"><p>5</p></td><td class="cell"><p>0  0  0 2 18</p></td><td class="cell"><p>20</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Total</p></td><td class="cell"><p>20 17 23 24 16</p></td><td class="cell"><p>100</p></td><td class="cell"><p></p></td><td class="cell"><p>Total</p></td><td class="cell"><p>29 14 12 9 36</p></td><td class="cell"><p>100</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><td class="cell"></td><td class="cell"></td></tr></table><page local="5"/><p>We asked two researchers of computational linguistics independently to assign an sp-score to each review from Corpus A. We first had them learn the relation­ship between reviews and sp-scores using 20 reviews. We then gave them 100 reviews with uniform sp-score distribution as test data. Table 3 shows the results in terms of the square error. The <i>Random </i>row shows the performance achieved by random assignment, and the <i>All3 </i>row shows the performance achieved by assigning 3 to all the reviews. These results suggest that sp-scores would be estimated with 0.78 square error from only the contents of reviews.</p><p>Table 4 shows the distribution of the estimated sp-scores and correct sp-scores. In the table we can observe the difficulty of this task: the precise quantifi­cation of sp-scores. For example, human B tended to overestimate the sp-score as 1 or 5. We should note that if we consider this task as binary classifica­tion by treating the reviews whose sp-scores are 4 and 5 as positive examples and those with 1 and 2 as negative examples (ignoring the reviews whose sp-scores are 3), the classification precisions by humans A and B are 95% and 96% respectively.</p></subsection></section><section number="4" title="Assigning Sp-scores to Reviews"><p>This section describes a machine learning approach to predict the sp-scores of review documents. Our method consists of the following two steps: extraction of feature vectors from reviews and estimation of sp-scores by the feature vectors. The first step basically uses existing techniques for document classification. On the other hand, the prediction of sp-scores is different from previous studies because we consider ordered multi-class classification, that is, each sp-score has its own class and the classes are ordered. Unlike usual multi-class classification, large mistakes in terms of the order should have large penalties. In this paper, we discuss two methods of estimating sp-scores: pSVMs and SVR.</p><subsection number="4.1" title="Review Representation"><p>We represent a review as a feature vector. Although this representation ignores the syntactic structure, word positions, and the order of words, it is known to work reasonably well for many tasks such as information retrieval and document classification. We use <i>binary, tf, </i>and <i>tf-idf </i>as feature weighting methods [15]. The feature vectors are normalized to have L<footnote anchor="2"/> norm 1.</p></subsection><subsection number="4.2" title="Support Vector Regression"><p>Support vector regression (SVR) is a method of regression that shares the un­derlying idea with SVM [3,16]. SVR predicts the sp-score of a review by the following regression:</p><p><i>f </i>: <i>Rn » </i><i>R,y</i><i> </i>= <i>f</i>(x) = <b><i>(w </i></b><i>• </i><b><i>x) </i></b>+ <i>b.</i></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(2)</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">318</doubt><page local="6" global="319"/><p>SVR uses an <i>e-insensitive loss function. </i>This loss function means that all errors inside the <i>e </i>cube are ignored. This allows SVR to use few support vectors and gives generalization ability. Given a training set, <b>(xi</b>,yi),<b><i>(x</i></b><i>n,yn),</i><i> </i>parame­ters <b><i>w </i></b>and <i>b </i>are determined by:</p><doubt alpha="40.0" length="100" tooSmall="False" monospace="0.0">minimize\{w ■ w)+ CYn=i(ù + £*)subject to((w•Xi)+ b)- yi&lt; e+yi-((w • Xi)+ b)&lt; e+ &amp;]&gt;0i = 1,...,n.(3)</doubt><p>The factor <i>C&gt;</i><i> </i>0 is a parameter that controls the trade-off between training error minimization and margin maximization. The loss in training data increases as <i>C </i>becomes smaller, and the generalization is lost as <i>C </i>becomes larger. More­over, we can apply a kernel-trick to SVR as in the case with SVMs by using a kernel function.</p><p>This approach captures the order of classes and does not suffer from data sparseness. We could use conventional linear regression instead of SVR [4]. But we use SVR because it can exploit the kernel-trick and avoid over-training. Another good characteristic of SVR is that we can identify the features con­tributing to determining the sp-scores by examining the coefficients <b>(w </b>in (2)), while pSVMs does not give such information because multiple classifiers are in­volved in determining final results. A problem in this approach is that SVR cannot learn non-linear regression. For example, when given training data are (x =1,y = 1), (x = 2,y = 2), (x = 3,y = 8), SVR cannot perform regression correctly without adjusting the feature values.</p></subsection><subsection number="4.3" title="Pairwise Support Vector Machines"><p>We apply a multi-class classification approach to estimating sp-scores. pSVMs [7] considers each sp-score as a unique class and ignores the order among the classes. Given reviews with sp-scores {1, 2, ..,m},we construct <i>m</i><i> • </i><i>(m</i><i> — </i>1)/2 SVM classifiers for all the pairs of the possible values of sp-scores. The classifier for a sp-score pair <i>(avsb)</i><i> </i>assigns the sp-score to a review with <i>a</i><i> </i>or b.The class label of a document is determined by majority voting of the classifiers. Ties in the voting are broken by choosing the class that is closest to the neutral sp-score (i.e, (1 + m)/2).</p><p>This approach ignores the fact that sp-scores are ordered, which causes the following two problems. First, it allows large mistakes. Second, when the number of possible values of the sp-score is large (e.g, <i>n&gt;</i><i> </i>100), this approach suffers from the data sparseness problem. Because pSVMs cannot employ examples that have close sp-scores (e.g, sp-score = 50) for the classification of other sp-scores (e.g, the classifier for a sp-score pair (51vs100)).</p></subsection><subsection number="4.4" title="Features Beyond Bag-of-Words"><p>Previous studies [9,2] suggested that complex features do not work as expected because data become sparse when such features are used and a bag-of-words<page local="7" global="320"/></p><p><b>Table 5. </b>Feature list for experiments</p><p>approach is enough to capture the information in most reviews. Nevertheless, we observed that reviews include many chunks of words such as "very good" or "must buy" that are useful for estimating the degree of polarity. We confirmed this observation by using n-grams. Since the words around the review target might be expected to influence the whole sp-score more than other words, we use these words as features. We call these features <i>reference. </i>Weassumethereview target is only the word "book", and we use "inbook" and "aroundbook" features. The "inbook" features are the words appear in the sentences which include the word "book". The "around book" are the words around the word "book" within two words. Table 5 summarizes the feature list for the experiments.</p></subsection></section><section number="5" title="Experiments"><p>We performed two series of experiments. First, we compared pSVMs and SVR. Second, we examined the performance of various features and weighting methods.</p><p>We used Corpus A/B introduced in Sec. 3.2 for experiment data. We removed all HTML tags and punctuation marks beforehand. We also applied the Porter stemming method [14] to the reviews.</p><p>We divided these data into ten disjoint subsets, maintaining the uniform class distribution. All the results reported below are the average of ten-fold cross-validation. In SVMs and SVR, we used <i>SVMlight</i>6 with the quadratic polynomial kernel <i>K</i>(x, <i>z)</i><i> </i><i>=</i><i> </i><i>((x</i><i> </i><i>•</i><i> </i><i>z)</i><i> </i>+ 1)<footnote anchor="2"/> and set the control parameter <i>C</i><i> </i>to 100 in all the experiments.</p><subsection number="5.1" title="Comparison of pSVMs and SVR"><p>We compared pSVMs and SVR to see differences in the properties of the regres­sion approach compared with those of the classification approach. Both pSVMs and SVR used unigram/tf-idf to represent reviews. Table 6 shows the square error results for SVM, SVR and a simple regression (least square error) method for Corpus A/B. These results indicate that SVR outperformed SVM in terms of the square error and suggests that regression methods avoid large mistakes by taking account of the fact that sp-scores are ordered, while pSVMs does not. We also note that the result of a simple regression method is close to the result of SVR with a linear kernel.</p><footnote label="6"> http://svmlight.joachims.org/</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">320</doubt><table 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></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Features</p></td><td class="cell"><p>Description</p></td><td class="cell"><p>Example in Fig.lreview 1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>unigram</i></p><p><i>bigram</i></p><p><i>trigram</i></p><p><i>inbook</i></p><p><i>aroundbook</i></p></td><td class="cell"><p>single word</p><p>pair of two adjacent words adjacent three words words in a sentence including "book" words near "book" within two words.</p></td><td class="cell"><p>(I) (believe) .. (series)</p><p>(I believe) ... (the series)</p><p>(I believe this) ... (in the series)</p><p>(I) (can't) ... (series)</p><p>(the) (next) (in) (the)</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></tr></table><page local="8" global="321"/><p>Assigning Polarity Scores to Reviews 321 <b>Table 6. </b>Comparison of multi-class SVM and SVR. Both use unigram/tf-idf.</p><p>Figure 1 shows the distribution of estimation results for humans (top left: human 1, top right: human 2), pSVMs (below left), and SVR (below right). The horizontal axis shows the estimated sp-scores and the vertical axis shows the correct sp-scores. Color density indicates the number of reviews. These figures suggest that pSVMs and SVR could capture the gradualness of sp-scores better than humans could. They also show that pSVMs cannot predict neutral sp-scores well, while SVR can do so well.</p></subsection><subsection number="5.2" title="Comparison of Different Features"><p>We compared the different features presented in Section 4.4 and feature weight­ing methods. First we compared different weighting methods. We used only unigram features for this comparison. We then compared different features. We used only tf-idf weighting methods for this comparison.</p><p>Table 7 summarizes the comparison results of different feature weighting methods. The results show that <i>tf-idf </i>performed well on both test corpora. We should note that simple representation methods, such as <i>binary </i>or <i>tf</i>,give comparable results to tf-idf, which indicates that we can add more complex features without considering the scale of feature values. For example, when we add word-based dependency features, we have some difficulty in adjusting these feature values to those of unigrams. But we could use these features together in binary weighting methods.</p><p>Table 8 summarizes the comparison results for different features. For Corpus A, <i>unigram + bigram </i>and <i>unigram + trigram </i>achieved high performance. The per­formance of <i>unigram + inbook </i>was not good, which is contrary to our intuition that the words that appear around the target object are more important than others. For Corpus B, the results was different, that is, n-gram features could not predict the sp-scores well. This is because the variety of words/phrases was much larger than in Corpus A and n-gram features may have suffered from the data sparseness problem. We should note that these feature settings are too simple, and we cannot accept the result of reference or target object <i>(inbook</i>/ <i>aroundbook</i>) directly.</p><p>Note that the data used in the preliminary experiments described in Section 3.3 are a part of Corpus A. Therefore we can compare the results for humans with those for Corpus A in this experiment. The best result by the machine learning approach (0.89) was close to the human results (0.78).</p><p>To analyze the influence of n-gram features, we used the linear kernel <i>k(x,</i><i> </i>z):= <i>(x</i><i> </i><i>•</i><i> </i><i>z)</i><i> </i>in SVR training. We used tf-idf as feature weighting. We then<page local="9" global="322"/></p><table 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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Square error</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Methods</p></td><td class="cell"><p>Corpus A Corpus B</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>pSVMs</p><p>simple regression</p><p>SVR (linear kernel)</p><p>SVR (polynomial kernel ((a; • <i>z)</i><i> </i>+ l)<footnote anchor="2"/>)</p></td><td class="cell"><p>1.32 2.13 1.05 1.49 1.01 1.46 <b>0.94 1.38</b></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></tr></table><doubt alpha="0.0" length="10" tooSmall="False" monospace="0.0">1234512345</doubt><p>estimated sp-score estimated sp-score</p><p>estimated sp-score</p><p>F<b>ig. 1. </b>Distribution of estimation results. Color density indicates the number of re­views. Top left: Human A, top right: Human B, below left: pSVMs, below right: SVR.</p><p>examined each coefficient of regression. Since we used the linear kernel, the co­efficient value of SVR showed the polarity of a single feature, that is, this value expressed how much the occurrence of a feature affected the sp-score. Tables 9shows the coefficients resulting from the training of SVR. These results show that neutral polarity words themselves, such as "all" and "age", will affect the overall sp-scores of reviews with other neutral polarity words, such as, "all ag (age)", "can't wait", "on (one) star", and "not interest".</p></subsection></section><section number="5" title=".3   Learning Curve"><p>We generated learning curves to examine the effect of the size of training data on the performance. Figure2 shows the results of a classification task using unigram <i>tf-idf </i>to represent reviews. The results suggest that the performance can still be improved by increasing the training data.</p><page local="10" global="323"/><p>T<b>able 7. </b>Comparison results of different feature weighting methods. We used unigrams as features of reviews.</p><p>T<b>able 8. </b>Comparison results of different features. For comparison of different features we tf-idf as weighting methods.</p><p>T<b>able 9. </b>List of bigram features that have ten best/worst polarity values estimated by SVR in Corpus A/B. The column of <i>pol </i>expresses the estimated sp-score of a feature, i.e., only this feature is fired in a feature vector. (word stemming was applied)</p><p><b>6Conclusion</b></p><p>In this paper, we described a novel task setting in which we predicted sp-scores - degree of polarity - of reviews. We proposed a machine learning method using SVR to predict sp-scores.</p><p>We compared two methods for estimating sp-scores: pSVMs and SVR. Exper­imental results with book reviews showed that SVR performed better in terms of the square error than pSVMs by about 30%. This result agrees with our<page local="11" global="324"/></p><table 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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Square</p></td><td class="cell"><p>error</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Weighting methods (unigram)</p></td><td class="cell"><p>Corpus A Corpus B</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>tf</p></td><td class="cell"><p>1.03</p></td><td class="cell"><p>1.49</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>tf-idf</p></td><td class="cell"><p><b>0.94</b></p></td><td class="cell"><p><b>1.38</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>binary</p></td><td class="cell"><p>1.04</p></td><td class="cell"><p>1.47</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></tr></table><table 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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Square error</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Feature (tf-idf)</p></td><td class="cell"><p>Corpus A Corpus B</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>unigram (baseline) unigram + bigram unigram + trigram unigram + inbook unigram + aroundbook</p></td><td class="cell"><p>0.94 1.38 <b>0.89 </b>1.41 0.90 1.42 0.97 <b>1.36 </b>0.93 1.37</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></tr></table><table 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><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Corpus A (best)</p></td><td class="cell"><p>Corpus B (best) |</p></td><td class="cell"><p>[Corpus A (worst)</p></td><td class="cell"><p>Corpus B (worst)</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>bigram</p></td><td class="cell"><p>pol</p></td><td class="cell"><p>bigram</p></td><td class="cell"><p>pol</p></td><td class="cell"><p>bigram</p></td><td class="cell"><p>pol</p></td><td class="cell"><p>bigram</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1.73</p></td><td class="cell"><p>best book</p></td><td class="cell"><p>1.64</p></td><td class="cell"><p>the best</p></td><td class="cell"><p>-1.61</p></td><td class="cell"><p>at all</p></td><td class="cell"><p>-1.19</p></td><td class="cell"><p>veri disappoint</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1.69</p></td><td class="cell"><p>is a</p></td><td class="cell"><p>1.60</p></td><td class="cell"><p>read it</p></td><td class="cell"><p>-1.50</p></td><td class="cell"><p>wast of</p></td><td class="cell"><p>-1.13</p></td><td class="cell"><p>wast of</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1.49</p></td><td class="cell"><p>read it</p></td><td class="cell"><p>1.37</p></td><td class="cell"><p>a great</p></td><td class="cell"><p>-1.38</p></td><td class="cell"><p>potter book</p></td><td class="cell"><p>-0.98</p></td><td class="cell"><p>the worst</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1.44</p></td><td class="cell"><p>all ag</p></td><td class="cell"><p>1.34</p></td><td class="cell"><p>on of</p></td><td class="cell"><p>-1.36</p></td><td class="cell"><p>out of</p></td><td class="cell"><p>-0.97</p></td><td class="cell"><p>is veri</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1.30</p></td><td class="cell"><p>can't wait</p></td><td class="cell"><p>1.31</p></td><td class="cell"><p>fast food</p></td><td class="cell"><p>-1.28</p></td><td class="cell"><p>not interest</p></td><td class="cell"><p>-0.96</p></td><td class="cell"><p><b>! I</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1.20</p></td><td class="cell"><p>it is</p></td><td class="cell"><p>1.22</p></td><td class="cell"><p>harri potter</p></td><td class="cell"><p>-1.18</p></td><td class="cell"><p>on star</p></td><td class="cell"><p>-0.85</p></td><td class="cell"><p>i am</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1.14</p></td><td class="cell"><p>the sorcer's</p></td><td class="cell"><p>1.19</p></td><td class="cell"><p>highli recommend</p></td><td class="cell"><p>-1.14</p></td><td class="cell"><p>the worst</p></td><td class="cell"><p>-0.81</p></td><td class="cell"><p>the exampl</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1.14</p></td><td class="cell"><p>great !</p></td><td class="cell"><p>1.14</p></td><td class="cell"><p>an excel</p></td><td class="cell"><p>-1.13</p></td><td class="cell"><p>first four</p></td><td class="cell"><p>-0.79</p></td><td class="cell"><p>bui it</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1.13</p></td><td class="cell"><p>sorcer's stone</p></td><td class="cell"><p>1.12</p></td><td class="cell"><p>to read</p></td><td class="cell"><p>-1.11</p></td><td class="cell"><p>a wast</p></td><td class="cell"><p>-0.76</p></td><td class="cell"><p>veri littl</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>1.11</p></td><td class="cell"><p>come out</p></td><td class="cell"><p>1.01</p></td><td class="cell"><p>in the</p></td><td class="cell"><p>-1.08</p></td><td class="cell"><p>no on</p></td><td class="cell"><p>-0.74</p></td><td class="cell"><p>onli to</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><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">3</doubt><doubt alpha="0.0" length="18" tooSmall="False" monospace="0.0">50 100 150 200 250</doubt><p>A number of training reviews per sp-score</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">300</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">350</doubt><p>F<b>ig. 2. </b>Learning curve for our task setting for Corpus A and Corpus B. We used SVR as the classifier and unigram/<i>tf-idf </i>to represent of reviews.</p><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">0</doubt><p>intuition that pSVMs does not consider the order of sp-scores, while SVR cap­tures the order of sp-scores and avoids high penalty mistakes. With SVR, sp-scores can be estimated with a square error of 0.89, which is very close to the square error achieved by human (0.78).</p><p>We examined the effectiveness of features beyond a bag-of-words and refer­ence features (the words around the reviewed objects.) The results suggest that n-gram features and reference features contribute to improve the accuracy.</p><p>As the next step in our research, we plan to exploit parsing results such as predicate argument structures for detecting precise reference information. We will also capture other types of polarity than attitude, such as modality and writing position [8], and we will consider estimating these types of polarity.</p><p>We plan to develop a classifier specialized for ordered multi-class classifica­tion using recent studies on machine learning for structured output space [19,18]or ordinal regression [5] because our experiments suggest that both pSVMs and SVR have advantages and disadvantages. We will develop a more efficient clas­sifier that outperforms pSVMs and SVR by combining these ideas.</p></section><references><p>1. T . Joachims. <i>Learning to Classify Text Using Support Vector Machines. </i>Kluwer, 2002.</p><p>2. C. Apte, F. Damerau, and S. Weiss. Automated learning of decision rules for text categorization. <i>Information Systems, </i>12(3):233-251, 1994.</p><p>3. N. Cristianini and J. S. Taylor. <i>An Introduction to Support Vector Machines and other Kernel-based Learning Methods. </i>Cambridge University Press, 2000.</p><p>4. T. Hastie, R. Tibshirani, and J. Friedman. <i>The Elements of Statistical Learning.</i></p><p>Springer, 2001.</p><p>5. Ralf Herbrich, Thore Graepel, and Klaus Obermayer. Large margin rank bound­aries for ordinal regression. In <i>Advances in Large Margin Classifiers, </i>pages 115-132. MIT press, 2000.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">324</doubt><page local="12" global="325"/><p>6. Moshe Koppel and Jonathan Schler. The importance of neutral examples for learn­ing sentiment. In <i>In Workshop on the Analysis ofInformal and Formal Information Exchange during Negotiations (FINEXIN), </i>2005.</p><p>7. U. Kresel.  <i>Pairwise Classification and Support Vector Machines Methods. </i>MIT</p><p>Press, 1999.</p><p>8. T. Kudo and Y. Matsumoto. A boosting algorithm for classification of semi-structured text. In <i>Proceedings of the 2004 Conference on Empirical Methods in</i></p><p><i>Natural Language Processing (EMNLP), </i>pages 301-308, 2004.</p><p>9. D. Lewis. An evaluation of phrasal and clustered representations on a text cate­gorization task. In <i>Proceedings of SIGIR-92, 15th ACM International Conference on Research and Development in Information Retrieval, </i>pages 37-50, 1992.</p><p>10. A. Mullen and N. Collier. Sentiment analysis using Support Vector Machines with diverse information sources. In <i>Proceedings ofthe 42nd Meeting ofthe Association for Computational Linguistics (ACL), </i>2004.</p><p>11. B. Pang and L. Lee. A sentimental education: Sentiment analysis using subjectivity summarization based on minimum cuts. In <i>Proceedings ofthe 42nd Meeting ofthe Association for Computational Linguistics (ACL), </i>pages 271-278, 2004.</p><p>12. B. Pang and L. Lee. Seeing stars: Exploiting class relationships for sentiment categorization with respect to rating scales. In <i>Proceedings of the 43nd Meeting of the Association for Computational Linguistics (ACL), </i>2005.</p><p>13. B. Pang, L. Lee, and S. Vaithyanathan. Thumbs up? sentiment classification using machine learning techniques. In <i>Proceedings of the 2002 Conference on Empirical Methods in Natural Language Processing (EMNLP), </i>pages 79-86, 2002.</p><doubt alpha="62.2" length="82" tooSmall="False" monospace="0.0">14. M.F. Porter. An algorithm for suffix stripping, program.Program,14(3):130-137,</doubt><p>1980.</p><p>15. F. Sebastiani. Machine learning in automated text categorization. <i>ACM Computing Surveys, </i>34(1):1-47, 2002.</p><p>16. A. Smola and B. Sch. A tutorial on Support Vector Regression. Technical report,</p><p>NeuroCOLT2 Technical Report NC2-TR-1998-030, 1998.</p><p>17. Antonella Sorace and Frank Keller.    Gradience in linguistic data. <i>Lingua,</i> 115(11):1497-1524, 2005.</p><p>18. B. Taskar. <i>Learning Structured Prediction Models: A Large Margin Approach. </i>PhD thesis, Stanford University, 2004.</p><p>19. I. Tsochantaridis, T. Hofmann, T. Joachims, and Y. Altun. Support vector machine learning for interdependent and structured output spaces. In <i>Machine Learning, Proceedings of the Twenty-first International Conference (ICML), </i>2004.</p><p>20. P. D. Turney. Thumbs up or thumbs down? semantic orientation applied to un-supervised classification of reviews. In <i>Proceedings of the 40th Meeting of the Association for Computational Linguistics (ACL), </i>pages 417-424, 2002.</p><p>21. V. Vapnik. <i>The Nature ofStatistical Learning Theory. </i>Springer, 1995.</p></references></body></article>