<?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="1075"/><title>Building Lexicon for Sentiment Analysis from Massive Collection of HTML Documents</title><pubinfo>Proceedings of the 2007 Joint Conference on Empirical Methods in Natural Language Processing and Computational Natural Language Learning,pp. 1075-1083, Prague, June 2DD7. ©2007 Association for Computational Linguistics</pubinfo><author surname="Kaji" givenname="Nobuhiro"><org  name="University of Tokyo" country="Japan" city="Tokyo"/></author><author surname="Kitsuregawa" givenname="Masaru"><org  name="University of Tokyo" country="Japan" city="Tokyo"/></author></firstpageheader><frontmatter><p><b>Building Lexicon for Sentiment Analysis from Massive Collection of HTML</b></p><p><b>Documents</b></p><p><b>Nobuhiro Kaji </b>and <b>Masaru Kitsuregawa</b></p><p>Institute of Industrial Science, University of Tokyo 4-6-1 Komaba, Meguro-ku, Tokyo 153-8505 Japan {kaji,kitsure}@tkl.iis.u-tokyo.ac.jp</p></frontmatter><abstract>Recognizing polarity requires a list of po­lar words and phrases. For the purpose of building such lexicon automatically, a lot of studies have investigated (semi-) unsuper-vised method of learning polarity of words and phrases. In this paper, we explore to use structural clues that can extract polar sentences from Japanese HTML documents, and build lexicon from the extracted po­lar sentences. The key idea is to develop the structural clues so that it achieves ex­tremely high precision at the cost of recall. In order to compensate for the low recall, we used massive collection of HTML docu­ments. Thus, we could prepare enough polar sentence corpus. </abstract></header><body><section number="1" title="Introduction"><p>Sentiment analysis is a recent attempt to deal with evaluative aspects of text. In sentiment analysis, one fundamental problem is to recognize whether given text expresses positive or negative evaluation. Such property of text is called polarity. Recognizing po­larity requires a list of polar words and phrases such as 'good', 'bad' and 'high performance' etc. For the purpose ofbuilding such lexicon automatically, a lot of studies have investigated (semi-) unsupervised approach.</p><p>So far, two kinds of approaches have been pro­posed to this problem. One is based on a the­saurus. This method utilizes synonyms or glosses of a thesaurus in order to determine polarity of words (Kamps et al., 2004; Hu and Liu, 2004; Kim and Hovy, 2004; Esuli and Sebastiani, 2005). The sec­ond approach exploits raw corpus. Polarity is de­cided by using co-occurrence in a corpus. This is based on a hypothesis that polar phrases conveying the same polarity co-occur with each other. Typ­ically, a small set of seed polar phrases are pre­pared, and new polar phrases are detected based on the strength of co-occurrence with the seeds (Hatzi-vassiloglous and McKeown, 1997; Turney, 2002; Kanayama and Nasukawa, 2006).</p><p>As for the second approach, it depends on the definition of co-occurrence whether the hypothe­sis is appropriate or not. In Turney's work, the co-occurrence is considered as the appearance in the same window (Turney, 2002). Although this idea is simple and feasible, there is a room for im­provement. According to Kanayama's investiga­tion, the hypothesis is appropriate in only 60% of cases if co-occurrence is defined as the appearance in the same window<footnote anchor="1"/>. In Kanayama's method, the co-occurrence is considered as the appearance in intra- or inter-sentential context (Kanayama and Na-sukawa, 2006). They reported that the precision was boosted to 72.2%, but it is still not enough. There­fore, we think that the above hypothesis is often in­appropriate in practice, and this fact is the biggest obstacle to learning lexicon from corpus.</p><p>In this paper, we explore to use structural clues that can extract polar sentences from Japanese HTML documents, and build lexicon from the ex-<page local="2" global="1076"/></p><footnote label="1">To be exact, the precision depends on window size and ranges from 59.7 to 64.1%. See Table 4 in (Kanayama and Na­sukawa, 2006) for the detail.</footnote><p><b>Polarity</b></p><p><b>HTML documents</b> <b><u>Polar sentence corpus</u></b></p><p><b>Polar sentences</b> <b>Frankly, stuffs are excellent.</b><b> The view of Mt. Fuji is excellent, positive Lecturer's quality is high. High quality web site. The quality of the contents is high.</b></p><p><b><u>Counts of candidates </u></b><b><u>Positive Negative Candidate</u></b></p><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">3</doubt><doubt alpha="66.7" length="6" tooSmall="False" monospace="0.0">step 2</doubt><p><b>The cost is too high, negative The cost of management is high.</b></p><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">1</doubt><doubt alpha="66.7" length="6" tooSmall="False" monospace="0.0">step 3</doubt><doubt alpha="100.0" length="7" tooSmall="False" monospace="0.0">Lexicon</doubt><p><i>kono </i>this</p><p><i>software-no </i>software-POST</p><p><b>\ I </b><i>riten-ha</i></p><p>advantage-POST <i>hayaku     ugoku koto-desu</i> tracted polar sentences. An overview of the pro­posed method is represented in Figure 1. First, po­lar sentences are extracted from HTML documents by using structural clues (step 1). The set of po­lar sentences is called polar sentence corpus. Next, from the polar sentence corpus, candidates of po­lar phrases are extracted together with their counts in positive and negative sentences (step 2). Finally, polar phrases are selected from the candidates and added to our lexicon (step 3).</p><doubt alpha="33.3" length="9" tooSmall="False" monospace="0.0">I 1   I\t</doubt><doubt alpha="85.7" length="7" tooSmall="False" monospace="0.0">to-POST</doubt><figure caption="Figure 2: Language structure."></figure><p>The key idea is to develop the structural clues so that it achieves extremely high precision at the cost of recall. As we will see in Section 2.3, the precision was extremely high. It was around 92% even if am­biguous cases were considered as incorrect. In order to compensate for the low recall, we used massive collection of HTML documents. Thus, we could build enough polar sentence corpus. To be specific, we extracted 500,000 polar sentences from one bil­lion HTML documents.</p><p>The contribution of this paper is to empirically show the effectiveness of an approach that makes use of the strength of massive data. Nowadays, ter­abyte is not surprisingly large, and larger corpus would be obtained in the future. Therefore, we think this kind of research direction is important.</p></section><section number="2" title="Extracting Polar Sentences"><p>Our method begins by automatically constructing polar sentence corpus with structural clues (step 1).</p><p>The basic idea is exploiting certain language and layout structures as clues to extract polar sentences. The clues were carefully chosen so that it achieves high precision. The original idea was represented in our previous paper (Kaji and Kitsuregawa, 2006).</p><subsection number="2.1" title="Language structure"><p>Some polar sentences are described by using char­acteristic language structures. Figure 2 illustrates such Japanese polar sentence attached with English translations. Japanese are written in italics and '­denotes that the word is followed by postposi­tional particles. For example, <i>software-no </i>means that <i>software </i>is followed by postpositional particle</p><p><i>no </i>. The arrow represents dependency relationship. Translations are shown below the Japanese sentence.</p><p>-POST means postpositional particle.</p><p>What characterizes this sentence is the singly un­derlined phrase. In this phrase, <i>' riten </i>(advantage)' is followed by postpositional particle ' <i>-ha </i>' , which is Japanese topic marker. And hence, we can recognize that something positive is the topic of the sentence. This kind of linguistic structure can be recognized by lexico-syntactic pattern. Hereafter, such words like <i>riten </i>(advantage) are called cue words.</p><p>quickly run</p><p>The advantage of this software is to run quickly.</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></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>1</b></p></td><td class="cell"><p><b>0</b></p></td><td class="cell"><p><b>stuff-excellent</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>2</b></p></td><td class="cell"><p><b>0</b></p></td><td class="cell"><p><b>view-excellent</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>129</b></p></td><td class="cell"><p><b>11</b></p></td><td class="cell"><p><b>excellent</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>18</b></p></td><td class="cell"><p><b>0</b></p></td><td class="cell"><p><b>quality-high</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>0</b></p></td><td class="cell"><p><b>309</b></p></td><td class="cell"><p><b>cost-high</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>1885</b></p></td><td class="cell"><p><b>7542</b></p></td><td class="cell"><p><b>high</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><td class="cell"></td></tr></table><table caption="Figure 1: Overview of the proposed method." class="main" frame="box" rules="all" border="1" regular="True"><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><b>Polarity</b></p></td><td class="cell"><p><b>Polar phrase</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>positive</b></p></td><td class="cell"><p><b>excellent</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>positive</b></p></td><td class="cell"><p><b>quality-high</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>negative</b></p></td><td class="cell"><p><b>cost-high</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><page local="3" global="1077"/><p>In order to handle the language structures, we uti­lized lexico-syntactic patterns as illustrated below.</p><p><i>riten-ha </i>advantage-POST <i>koto-desu </i>to-POST</p><doubt alpha="71.4" length="7" tooSmall="False" monospace="0.0">(polar)</doubt><p>A sub-tree that matches (polar) is extracted as po­lar sentence. It is obvious whether the polar sen­tence is positive or negative one. In case of Figure 2, the doubly underlined part is extracted as polar sentence<footnote anchor="2"/>.</p><p>Besides <i>'riten </i>(advantage)', other cue words were also used. A list of cue words (and phrases) were manually created. For example, we used pros or good point for positive sentences, and cons , bad point or disadvantage for negative ones. This list is also used when dealing with layout structures.</p></subsection><subsection number="2.2" title="Layout structure"><p>Two kinds of layout structures are utilized as clues. The first clue is the itemization. In Figure 3, the itemizations have headers and they are cue words ( pros and cons ). Note that we illustrated trans­lations for the sake of readability. By using the cue words, we can recognize that polar sentences are de­scribed in these itemizations.</p><p>The other clue is table structure. In Figure 4, a car review is summarized in the table format. The left column acts as a header and there are cue words ( plus and minus ) in that column.</p><doubt alpha="80.0" length="5" tooSmall="False" monospace="0.0">Pros:</doubt><p>The sound is natural.</p><p>• Music is easy to find.</p><p>• Can enjoy creating my favorite play-lists.</p><doubt alpha="80.0" length="5" tooSmall="False" monospace="0.0">Cons:</doubt><p>• The remote controller does not have an LCD dis­play.</p><p>• The body gets scratched and fingerprinted easily.</p><p>The battery drains quickly when using the back­light.</p><figure caption="Figure 3: Itemization structure."></figure><footnote label="2">To be exact, the doubly underlined part is polar clause. However, it is called polar sentence because of the consistency with polar sentences extracted by using layout structures.</footnote><p>It is easy to extract polar sentences from the item-ization. Such itemizations as illustrated in Figure 3 can be detected by using the list of cue words and HTML tags such as h1 and ul etc. Three positive and negative sentences are extracted respec­tively from Figure 3.</p><p>As for table structures, two kinds of tables are considered (Figure 5). In the Figure, + and — rep­resent positive and negative polar sentences, and and represent cue words. Type A is a table in which the leftmost column acts as a header. Figure 4 is categorized into this type. Type B is a table in which the first row acts as a header.</p><doubt alpha="83.3" length="6" tooSmall="False" monospace="0.0">Type A</doubt><doubt alpha="83.3" length="6" tooSmall="False" monospace="0.0">Type B</doubt><p>In order to extract polar sentences, first of all, it is necessary to determine the type of the table. The table is categorized into type A ifthere are cue words in the leftmost column. The table is categorized into type B if it is not type A and there are cue words in the first row. After the type of the table is decided, we can extract polar sentences from the cells that correspond to    and   in the Figure 5.</p></subsection><subsection number="2.3" title="Result of corpus construction"><p>The method was applied to one billion HTML doc­uments. In order to get dependency tree, we used KNP<footnote anchor="3"/>. As the result, 509,471 unique polar sentences were obtained. 220,716 are positive and the others are negative<footnote anchor="4"/>. Table 1 illustrates some translations of the polar sentences.</p><p>Shttp://nlp.kuee.kyoto-u.ac.jp/nl-resource/knp.html <footnote anchor="4"/>The    polar    sentence    corpus    is available http://www.tkl.iis.u-tokyo.ac.jp/~kaji/acp/.</p><doubt alpha="100.0" length="4" tooSmall="False" monospace="0.0">from</doubt><table caption="Figure 4: Table structure." 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>Mileage(urban)</p></td><td class="cell"><p>7.0km/litter</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Mileage(highway)</p></td><td class="cell"><p>9.0km/litter</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Plus</p></td><td class="cell"><p>This is a four door car, but it's so cool.</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Minus</p></td><td class="cell"><p>The seat is ragged and the light is dark.</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></tr><tr class="row"><td class="cell"></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><i>C+</i></p></td><td class="cell"><p><i>+</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b><i>C-</i></b></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></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 caption="Figure 5: Two types of table structures." 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></p></td><td class="cell"><p><b><i>C-</i></b></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><i>+</i></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></tr></table><page local="4" global="1078"/><table caption="Table 1: Examples of polar sentences."></table><p>Polarity Polar sentence</p><p>It becomes easy to compute cost, positive    It's easy and can save time.</p><p>The soup is rich and flavorful.</p><p>Cannot use mails in HTML format. negative    The lecture is really boring.</p><p>There is no impressive music.</p><p>In order to investigate the quality of the corpus, two human judges (judge A/B) assessed 500 polar sentences in the corpus. According to the judge A, the precision was 91.4%. 459 out of 500 polar sentences were regarded as valid ones. According to the judge B, the precision was 92.0% (460/500). The agreement between the two judges was 93.5% (Kappa value was 0.90), and thus we can conclude that the polar sentence corpus has enough quality (Kaji and Kitsuregawa, 2006).</p><p>After error analysis, we found that most of the er­rors are caused by the lack of context. The following is a typical example.</p><p>There is much information.</p><p>This sentence is categorized into positive one in the corpus, and it was regarded as invalid by both judges because the polarity of this sentence is ambiguous without context.</p><p>As we described in Section 1, the hypothesis of co-occurrence based method is often inappropriate. (Kanayama and Nasukawa, 2006) reported that it was appropriate in 72.2% of cases. On the other hand, by using extremely precise clues, we could build polar sentence corpus that have high preci­sion (around 92%). Although the recall of structural clues is low, we could build large corpus by using massive collection of HTML documents. Of course, we cannot directly compare these two percentages. We think, however, the high precision of 92% im­plies the strength of our approach.</p></subsection></section><section number="3" title="Acquisition of Polar Phrases"><p>The next step is to acquire polar phrases from the polar sentence corpus (step 2 and 3 in Figure 1).</p><subsection number="3.1" title="Counting candidates"><p>From the corpus, candidates of polar phrases are ex­tracted together with their counts (step 2).</p><p>As is often pointed out, adjectives are often used to express evaluative content. Considering that po­larity of isolate adjective is sometimes ambiguous (e.g. high), not only adjectives but also adjective phrases (noun + postpositional particle + adjective) are treated as candidates. Adjective phrases are ex­tracted by the dependency parser. To handle nega­tion, an adjective with negation words such as 'not' is annotated by &lt;negation&gt; tag. For the sake of readability, we simply represent adjective phrases in the form of 'noun-adjective' by omiting postposi­tional particle, as in the Figure 1.</p><p>For each candidate, we count the frequency in positive and negative sentences separately. Intu­itively, we can expect that positive phrases often ap­pear in positive sentences, and vice versa. However, there are exceptional cases as follows.</p><p>Although the price is high, its shape is beautiful.</p><p>Although this sentence as a whole expresses posi­tive evaluation and it is positive sentence, negative phrase 'price is high' appears in it. To handle this, we hypothesized that positive/negative phrases tend to appear in main clause of positive/negative sen­tences, and we exploited only main clauses to count the frequency.</p></subsection><subsection number="3.2" title="Selecting polar phrases"><p>For each candidate, we determine numerical value indicating the strength of polarity, which is referred as polarity value. On the basis of this value, we se­lect polar phrases from the candidates and add them to our lexicon (step 3).</p><p>For each candidate , we can create a contingency table as follows.</p><table caption="Table 2: Contingency table"></table><p>is the frequency of in positive sentences. is that of all candidates but . and are similarly decided.</p><p>From this contingency table, 's polarity value is determined. Two ideas are examined for comparison.<page local="5" global="1079"/> One is based on chi-square value and the other is based on Pointwise Mutual Information (PMI).</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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p><i>pos</i></p></td><td class="cell"><p><i>neg</i></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><i>f(c,pos)</i></p></td><td class="cell"><p><i>f </i><i>(c, neg)</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>-iC</b></p></td><td class="cell"><p><i>f </i><i>he, </i><i>pos)</i></p></td><td class="cell"><p><i>f</i><i>'he, </i><i>neg)</i></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><p><b>Chi-square based polarity value </b>The chi-square value is a statistical measure used to test the null hy­pothesis that, in our case, the probability of a candi­date in positive sentences is equal to the probability in negative sentences. Given Table 2, the chi-square value is calculated as follows.</p><doubt alpha="44.4" length="9" tooSmall="False" monospace="0.0">x2(c)=E E</doubt><doubt alpha="47.6" length="21" tooSmall="False" monospace="0.0">x£{c,-^c) y£(pos,neg)</doubt><doubt alpha="34.8" length="23" tooSmall="False" monospace="0.0">{f{x,y) - f(x,y)Y/(»&gt;y)</doubt><p>Here, is the expected value of under the null hypothesis.</p><p>Although indicates the strength of bias toward positive or negative sentences, its di­rection is not clear. We determined polarity value so that it is greater than zero if appears in posi­tive sentences more frequently than in negative sen­tences and otherwise it is less than zero.</p><doubt alpha="66.7" length="6" tooSmall="False" monospace="0.0">PVx2(c</doubt><p>is 's probability in positive sentences, and is that in negative sentences. They are es­timated by using Table 2.</p><doubt alpha="58.8" length="17" tooSmall="False" monospace="0.0">P(c\pos) P(c\neg)</doubt><doubt alpha="62.5" length="8" tooSmall="False" monospace="0.0">f(o,pos)</doubt><doubt alpha="47.6" length="42" tooSmall="False" monospace="0.0">f(c,pos)+ f'(-.c,pos)f(c,neg) + f(-&gt;c,neg)</doubt><p><b>PMI based polarity value </b>Using PMI, the strength of association between and positive sen­tences (and negative sentences) is defined as follows (Church and Hanks, 1989).</p><p><b><i>PMI</i></b><b><i>(c,pos) </i></b><b><i>PMI</i></b><b><i>(c, </i></b><i>neg)</i> log2log2</p><doubt alpha="57.9" length="19" tooSmall="False" monospace="0.0">P(c,pos) P(c)P(pos)</doubt><doubt alpha="55.0" length="20" tooSmall="False" monospace="0.0">P(c, neg) P(c)P(neg)</doubt><p>PMI based polarity value is defined as their differ­ence. This idea is the same as (Turney, 2002).</p><doubt alpha="62.5" length="16" tooSmall="False" monospace="0.0">P(c, neg)IP(neg)</doubt><doubt alpha="62.5" length="8" tooSmall="False" monospace="0.0">P(c\pos)</doubt><doubt alpha="62.5" length="8" tooSmall="False" monospace="0.0">P(c\neg)</doubt><p>and are estimated in the same way as shown above. is (log of) the ratio of 's probability in positive sentences to that in negative sentences. This formalization follows our intuition. Similar to , is greater than zero if , otherwise it is less than zero.</p><p><b>Selecting polar phrases </b>By using polarity value and threshold , it is decided whether a candidate   is polar phrase or not. If , the candidate is regarded as positive phrase. Similarly, if , it is regarded as negative phrase. Oth­erwise, it is regarded as neutral. Only positive and negative phrases are added to our lexicon. By chang­ing , the trade-off between precision and recall can be adjusted. In order to avoid data sparseness prob­lem, if both and are less than three, such candidates were ignored.</p></subsection></section><section number="4" title="Related Work"><p>As described in Section 1, there have been two ap­proaches to (semi-) unsupervised learning of polar­ity. This Section introduces the two approaches and other related work.</p><subsection number="4.1" title="Thesaurus based approach"><p>Kamps et al. built lexical network by linking syn­onyms provided by a thesaurus, and polarity was de­fined by the distance from seed words ('good' and 'bad') in the network (Kamps et al., 2004). This method relies on a hypothesis that synonyms have the same polarity. Hu and Liu used similar lexi­cal network, but they considered not only synonyms but antonyms (Hu and Liu, 2004). Kim and Hovy proposed two probabilistic models to estimate the strength of polarity (Kim and Hovy, 2004). In their models, synonyms are used as features. Esuli et al. utilized glosses of words to determine polarity (Esuli and Sebastiani, 2005; Esuli and Sebastiani, 2006).</p><p>Compared with our approach, the drawback of us­ing thesaurus is the lack of scalability. It is diffi­cult to handle such words that are not contained in a thesaurus (e.g. newly-coined words or colloquial words). In addition, phrases cannot be handled be­cause the entry of usual thesaurus is not phrase but word.</p><doubt alpha="50.0" length="26" tooSmall="False" monospace="0.0">X2(c)\iP(c\neg) &lt; P(c\pos)</doubt><p>^X<footnote anchor="2"/>(c) otherwise<page local="6" global="1080"/></p><doubt alpha="60.6" length="33" tooSmall="False" monospace="0.0">PVpmi(c)   =PMI(c,pos)—PMI(c,neg)</doubt><doubt alpha="52.9" length="17" tooSmall="False" monospace="0.0">P(c, pos) /P(pos)</doubt></subsection><subsection number="4.2" title="Corpus based approach"><p>Another approach is based on an idea that polar phrases conveying the same polarity co-occur with each other in corpus.</p><p>(Turney, 2002) is one of the most famous work that discussed learning polarity from corpus. Turney determined polarity value<footnote anchor="5"/> based on co-occurrence with seed words ('excellent' and 'poor'). The co­occurrence is measured by the number of hits re­turned by a search engine. The polarity value pro­posed by (Turney, 2002) is as follows.</p><p>j     hits(c NEAR excellent)hits(poor) hits(c NEAR poor) hits (excellent)</p><p>means the number of hits returned by a search engine when query    is issued. means NEAR operator, which enables to retrieve only such documents that contain two queries within ten words.</p><p>Hatzivassiloglou and McKeown constructed lex­ical network and determine polarity of adjectives (Hatzivassiloglous and McKeown, 1997). Although this is similar to thesaurus based approach, they built the network from intra-sentential co-occurrence. Takamura et al. built lexical network from not only such co-occurrence but other resources including thesaurus (Takamura et al., 2005). They used spin model to predict polarity of words.</p><p>Popescu and Etzioni applied relaxation labeling to polarity identification (Popescu and Etzioni, 2005). This method iteratively assigns polarity to words by using various features including intra-sentential co­occurrence and synonyms ofa thesaurus.</p><p>Kanayama and Nasukawa used both intra- and inter-sentential co-occurrence to learn polarity of words and phrases (Kanayama and Nasukawa, 2006). Their method covers wider range of co­occurrence than other work such as (Hatzivas-siloglous and McKeown, 1997). An interesting point of this work is that they discussed building do­main oriented lexicon. This is contrastive to other work including ours that addresses to build domain independent lexicon.</p><p>In summary, the strength of our approach is to ex­ploit extremely precise structural clues, and to use massive collection of HTML documents to compen­sate for the low recall. Although Turney's method also uses massive collection of HTML documents, his method does not make much of precision com­pared with our method. As we will see in Section 5, our experimental result revealed that our method overwhelms Turney's method.</p><footnote label="5">Semantic Orientation in (Turney, 2002).</footnote></subsection><subsection number="4.3" title="Other related work"><p>In some review sites, pros and cons are stated using such layout that we introduced in Section 2. Some work examined the importance of such layout (Liu et al., 2005; Kim and Hovy, 2006). However, they re­garded layout structures as clues specific to a certain review site. They did not propose to use layout struc­ture to extract polar sentences from arbitrary HTML documents.</p><p>Some studies addressed supervised approach to learning polarity of phrases (Wilson et al., 2005; Takamura et al., 2006). These are different from ours in a sense that they require manually tagged data.</p><p>Kobayashi et al. proposed a framework to reduce the cost of manually building lexicon (Kobayashi et al., 2004). In the experiment, they compared the framework with fully manual method and investi­gated the effectiveness.</p></subsection></section><section number="5" title="Experiment"><p>A test set consisting of 405 adjective phrases were created. From the test set, we extract polar phrases by looking up our lexicon. The result was evaluated through precision and recall<footnote anchor="6"/>.</p><subsection number="5.1" title="Setting"><p>The test set was created in the following manner. 500 adjective phrases were randomly extracted from the Web text. Note that there is no overlap between our polar sentence corpus and this text. After remov­ing parsing error and duplicates, 405 unique adjec­tive phrases were obtained. Each phase was man­ually annotated with polarity tag (positive, negative and neutral), and we obtained 158 positive phrases, 150 negative phrases and 97 neutral phrases. In or­der to check the reliability of annotation, another human judge annotated the same data.<page local="7" global="1081"/> The Kappa value between the two judges was 0.73, and we think the annotation is reliable.</p><footnote label="6">The lexicon is available from http://www.tkl.iis.u- tokyo.ac.jp/~kaji/polardic/ .</footnote><table caption="Table 3: The experimental result (chi-square)."></table><p>From the test set, we extracted polar phrases by looking up our lexicon. As for adjectives in the lex­icon, partial match is allowed. For example, if the lexicon contains an adjective excellent , it matches every adjective phrase that includes excellent such as view-excellent etc.</p><p>As a baseline, we built lexicon similarly by using polarity value of (Turney, 2002). As seed words, we used <i>'saikou </i>(best)' and ''<i>saitei </i>(worst)'. Some seeds were tested and these words achieved the best result. As a search engine, we tested Google and our local engine, which indexes 150 millions Japanese docu­ments. Its size is compatible to (Turney and Littman, 2002). Since Google does not support NEAR, we used AND. Our local engine supports NEAR.</p></subsection><subsection number="5.2" title="Results and discussion"><p>We evaluated the result of polar phrase extraction. By changing the threshold 0, we investigated recall-precision curve (Figure 6 and 7). The detail is rep­resented in Table 3 and 4. The second/third row represents precision and recall of positive/negative phrases. The fourth row is the size of the lexicon.</p><p>The Figures show that both ofthe proposed meth­ods outperform the baselines. The best F-measure was achieved by PMI (0=1.0). Although Turney ' s method may be improved with minor configurations (e.g. using other seeds etc.), we think this results indicate the feasibility of the proposed method. Al-</p><p><b>- Proposed (chi-square)</b> <b>- Proposed (PMI)</b> <b>- Turney (Google) <u>-Turney (local)</u></b></p><figure caption="Figure 6: Recall-precision curve (positive phrases)"></figure><p>though the size of lexicon is not surprisingly large, it would be possible to make the lexicon larger by us­ing more HTML documents. In addition, notice that we focus on only adjectives and adjective phrases.</p><p>Comparing the two proposed methods, PMI is al­ways better than chi-square. Especially, chi-square suffers from low recall, because the size of lexicon is extremely small. For example, when the thresh­old is 60, the precision is 80% and the recall is 48% for negative phrases. On the other hand, PMI would achieve the same precision when recall is around 80% (0 is between 0.5 and 1.0).</p><p>Turney s method did not work well although they reported 80% accuracy in (Turney and Littman, 2002). This is probably because our experimental setting is different. Turney examined binary classi­fication of positive and negative words, and we dis­cussed extracting positive and negative phrases from the set of positive, negative and neutral phrases.</p><doubt alpha="25.0" length="4" tooSmall="False" monospace="0.0">1G81</doubt><table caption="Table 5: The effect of data size (PMI, (9=1.0)." 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><i>e</i></p></td><td class="cell"><p>0              10             20 30</p></td><td class="cell"><p>40</p></td><td class="cell"><p>50</p></td><td class="cell"><p>60</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Precision/Recall Positive Negative</p></td><td class="cell"><p>76.4/92.4    84.0/86.7    84.1/83.5 86.2/79.1 68.5/84.0    65.5/63.3    64.3/60.0 62.7/57.3</p></td><td class="cell"><p>88.7/74.7 81.1/51.3</p></td><td class="cell"><p>86.7/65.8 80.0/48.0</p></td><td class="cell"><p>86.7/65.8 80.0/48.0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p># of polar words and phrases</p></td><td class="cell"><p>9,670         2,056         1,047 698</p></td><td class="cell"><p>533</p></td><td class="cell"><p>423</p></td><td class="cell"><p>335</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Table 4: The experimental result (PMI).</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>e</i></p></td><td class="cell"><p>0             0.5            1.0 1.5</p></td><td class="cell"><p>2.0</p></td><td class="cell"><p>2.5</p></td><td class="cell"><p>3.0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Precision/Recall Positive Negative</p></td><td class="cell"><p>76.4/92.4    79.6/91.1    86.1/89.9 87.2/86.1 68.5/84.0    75.8/81.3    82.3/77.3 84.8/74.7</p></td><td class="cell"><p>90.9/82.3 85.8/72.7</p></td><td class="cell"><p>92.4/76.6 86.8/70.0</p></td><td class="cell"><p>92.9/65.8 87.9/62.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p># of polar words and phrases</p></td><td class="cell"><p>9,670         9,320         9,039 8,804</p></td><td class="cell"><p>8,570</p></td><td class="cell"><p>8,398</p></td><td class="cell"><p>8,166</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="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></tr><tr class="row"><td class="cell"></td><td class="cell"><p>size</p></td><td class="cell"><p>1/20</p></td><td class="cell"><p>1/15</p></td><td class="cell"><p>1/10</p></td><td class="cell"><p>1/5</p></td><td class="cell"><p>1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Precision/Recall Positive Negative</p></td><td class="cell"><p>87.0/63.9 76.9/55.8</p></td><td class="cell"><p>84.6/65.8 86.2/50.0</p></td><td class="cell"><p>85.1/75.9 82.1/58.0</p></td><td class="cell"><p>85.4/84.8 80.3/62.7</p></td><td class="cell"><p>86.1/89.9 82.3/77.3</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></tr></table><page local="8" global="1082"/><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">100</doubt><doubt alpha="0.0" length="17" tooSmall="False" monospace="0.0">0 20 40 60 80 100</doubt><doubt alpha="100.0" length="6" tooSmall="False" monospace="0.0">Recall</doubt><figure caption="Figure 7: Recall-precision curve (negative phrases)"></figure><p>Error analysis revealed that most of the errors are related to neutral phrases. For example, PMI (0=1.0) extracted 48 incorrect polar phrases, and 37 of them were neutral phrases. We think one reason is that we did not use neutral corpus. It is one future work to exploit neutral corpus. The importance of neutral category is also discussed in other literatures (Esuli and Sebastiani, 2006).</p><p>To further assess our method, we did two addi­tional experiments. In the first experiment, to inves­tigate the effect of data size, the same experiment was conducted using 1/n (n=1,5,10,15,20) of the en­tire polar sentence corpus (Table 5). PMI (0=1.0) was also used. As the size of corpus increases, the performance becomes higher. Especially, the re­call is improved dramatically. Therefore, the recall would be further improved using more corpus.</p><p>In the other experiment, the lexicon was evalu­ated directly so that we can examine polar words and phrases that are not in the test set. We think it is diffi­cult to fully assess low frequency words in the previ­ous setting. Two human judges assessed 200 unique polar words and phrases in the lexicon (PMI, =1.0). The average precision was 71.3% (Kappa value was 0.66). The precision is lower than the result in Table 4. This result indicates that it is difficult to handle low frequency words.</p><p>The Table 6 illustrates examples of polar phrases and their polarity values. We can see that both phrases and colloquial words such as 'uncool' are appropriately learned. They are difficult to handle for thesaurus based approach, because such words are not usually in thesaurus.</p><p>It is important to discuss how general our framework is. Although the lexico-syntactic patterns shown in Section 2 are specific to Japanese, we think that the idea of exploiting language structure is applicable to other languages including English. Roughly speaking, the pattern we exploited can be translated into 'the advantage/weakness of some­thing is to ... ' in English. It is worth pointing out that lexico-syntactic patterns have been widely used in English lexical acquisition (Hearst, 1992). Obvi­ously, other parts of the proposed method does not depend on Japanese.</p><table caption="Table 6: Examples"></table></subsection></section><section number="6" title="Conclusion"><p>In this paper, we explore to use structural clues that can extract polar sentences from Japanese HTML documents, and build lexicon from the extracted po­lar sentences. The key idea is to develop the struc­tural clues so that it achieves extremely high preci­sion at the cost of recall. In order to compensate for the low recall, we used massive collection ofHTML documents. Thus, we could prepare enough polar sentence corpus. Experimental result demonstrated the feasibility of our approach.</p><p><b>Acknowledgement </b>This work was supported by the <i>Comprehensive Development of e-Society Foun­dation Software </i>program of the Ministry of Edu­cation, Culture, Sports, Science and Technology, Japan. We would like to thank Assistant Researcher Takayuki Tamura for his development of the Web crawler.</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></tr><tr class="row"><td class="cell"></td><td class="cell"><p>polar phrase</p></td><td class="cell"><p>pv;2(c)</p></td><td class="cell"><p><b><i>PVpmi(c)</i></b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>kenkyoda </i>(modest)</p></td><td class="cell"><p>38.3</p></td><td class="cell"><p>12.1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>exiting </i>(exiting)</p></td><td class="cell"><p>13.5</p></td><td class="cell"><p>10.4</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>more-sukunai </i>(leak-small)</p></td><td class="cell"><p>9.2</p></td><td class="cell"><p>9.8</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>dasai </i>(uncool)</p></td><td class="cell"><p>-2.9</p></td><td class="cell"><p>-3.3</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>yakkaida </i>(annoying)</p></td><td class="cell"><p>-11.9</p></td><td class="cell"><p>-3.9</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>shomo-hayai </i>(consumption-quick)</p></td><td class="cell"><p>-17.7</p></td><td class="cell"><p>-4.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></tr></table></section><references><p>Kenneth Ward Church and Patric Hanks. 1989. Word association norms, mutual information, and lexicogra­phy. In <i>Proceedings of ACL, </i>pages 76-83.</p><p>Andrea Esuli and Fabrizio Sebastiani. 2005. Determin­ing the semantic orientation of terms throush gloss classification. In <i>Proceedings of CIKM, </i>pages 617­624.</p><page local="9" global="1083"/><p>Andrea Esuli and Fabrizio Sebastiani. 2006. Determin­ing term subjectivity and term orientation for opinion mining. In <i>Proceedings ofEACL, </i>pages 193-200.</p><p>Vasileios Hatzivassiloglous and Kathleen R. McKeown. 1997. Predicting the semantic orientation of adjec­tives. In <i>Proceedings ofACL, </i>pages 174-181.</p><p>Marti Hearst. 1992. Automatic acquisition ofhyponyms from large text corpora. In <i>Proceedings ofCOLING,</i> pages 539-545.</p><p>Minqing Hu and Bing Liu. 2004. Mining and summariz­ing customer reviews. In <i>Proceedings ofKDD, </i>pages 168-177.</p><p>Nobuhiro Kaji and Masaru Kitsuregawa. 2006. Au­tomatic construction of polarity-tagged corpus from html documents. In <i>Proceedings ofCOLING/ACL, poster sessions, </i>pages 452-459.</p><p>Jaap Kamps, Maarten Marx, Robert J. Mokken, and Maarten de Rijke. 2004. Using wordnet to measure semantic orientations of adjectives. In <i>Proceedings of LREC.</i></p><p>Hiroshi Kanayama and Tetsuya Nasukawa. 2006. Fully automatic lexicon expansion for domain-oriented sen­timent analysis.   In <i>Proceedings ofENMLP, </i>pages 355-363.</p><p>Soo-Min Kim and Eduard Hovy. 2004. Determining the sentiment of opinions. In <i>Proceedings ofCOLING, </i>pages 1367-1373.</p><p>Soo-Min Kim and Eduard Hovy. 2006. Automatic iden­tification of pro and con reasons in online reviews. In <i>Proceedings ofCOLING/ACL Poster Sessions, </i>pages 483-490.</p><p>Nozomi Kobayashi, Kentaro Inui, Yuji Matsumoto, Kenji Tateishi, and Toshikazu Fukushima. 2004. Collecting evaluative expressions for opinion extraction. In <i>Pro­ceedings ofIJCNLP, </i>pages 584-589.</p><p>Bing Liu, Minqing Hu, and Junsheng Cheng. 2005. Opinion observer: Analyzing and comparing opinions on the web. In <i>Proceedings ofWWW.</i></p><p>Ana-Maria Popescu and Oren Etzioni. 2005. Extracting product features and opinions from reviews. In <i>Pro­ceedings ofHLT/EMNLP.</i></p><p>Hiroya Takamura, Takashi Inui, and Manabu Okumura.</p><p>2005. Extracting semantic orientation of words using spin model. In <i>Proceedings of ACL, </i>pages 133-140.</p><p>2006. Latent variable mdels for semantic orientations ofphrases. In <i>Proceedings ofEACL, </i>pages 201-208.</p><p>Peter D. Turney and Michael L. Littman. 2002. Unsuper-vised learning of semantic orientation from a hundred­billion-word corpus. Technical report, National Re­search Council Canada.</p><p>Peter D. Turney. 2002. Thumbs up or thumbs down ? semantic orientation applied to unsupervised classifi­cation of reviews. In <i>Proceedings of ACL, </i>pages 417­424.</p><p>Theresa Wilson, Janyce Wiebe, and Paul Hoffmann. 2005. Recognizing contextual polarity in phrase-level sentiment analysis. In <i>Proceedings ofHLT/EMNLP.</i></p></references></body></article>