<?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="514"/><title>A Structural Support Vector Method for Extracting Contexts and Answers of Questions from Online Forums</title><author surname="Yang" givenname="Wen-Yun"><org  name="Shanghai Jiaotong University" country="China" city="Shanghai"/></author><author surname="Cao" givenname="Yunbo"><org  name="Toyo University" country="Japan" city="Saitama"/></author><author surname="Lin" givenname="Chin-Yew"><org  name="Microsoft Research" country="USA" city="Redmond"/></author></firstpageheader><frontmatter><p><b>A Structural Support Vector Method for Extracting Contexts and Answers of Questions from Online Forums</b></p><p><b>Wen-Yun Yangt+       Yunbo Cao n        Chin-Yew Lin *</b></p><p>t Department of Computer Science and Engineering Shanghai Jiao Tong University, Shanghai, China * Microsoft Research Asia, Beijing, China</p><p>wenyun.yang@gmail.com       {yunbo.cao;   cyl}@microsoft.com</p><p><b>Postl: </b>&lt;context id=l&gt; <b>SI: </b><i>Hi I am looking for a pet friendly hotel in Hong Kong because all of my family is going therefor vacation. </i><b>S2: </b><i>my fam­ily has </i><i>2 </i><i>sons and a dog. </i>&lt;/context&gt; &lt;question id=l&gt; <b>S3: </b><i>Is there any recommended hotel near Sheung Wan or Tsing Sha Tsui? </i>&lt;/question&gt; &lt;context id=2, 3&gt; <b>S4: </b><i>We also plan to go shopping in Causeway Bay. </i>&lt;/context&gt; &lt;question id=2&gt; <b>S5: </b><i>What's the traffic situation around those com­mercial areas? </i>&lt;/question&gt; &lt;question id=3&gt; <b>S6: </b><i>Is it necessary to take a taxi? </i>&lt;/question&gt; <b>S7: </b><i>Any information would be appreciated. </i><b>Post2: </b>&lt;answer id=l&gt; <b>S8: </b><i>The Comfort Lodge near Kowloon Park allows pet as I know, and usu­ally fits well within normal budgets. </i><b>S9: </b><i>It is also conveniently located, nearby the Kowloon railway station and subway. </i>&lt;/answer&gt; <b>Post3: </b>&lt;answer id=2, 3&gt; <b>S10: </b><i>It's very crowd in those areas, so I recommend MTR in Causeway Bay because it is cheap to take you around. </i>&lt;/answer&gt;</p></frontmatter><abstract>This paper addresses the issue of extract­ing contexts and answers of questions from post discussion of online forums. We propose a novel and unified model by customizing the structural Support Vector Machine method. Our customization has several attractive properties: (1) it gives a comprehensive graphical representation of thread discussion. (2) It designs special inference algorithms instead of general-purpose ones. (3) It can be readily ex­tended to different task preferences by varying loss functions. Experimental re­sults on a real data set show that our meth­ods are both promising and flexible. </abstract></header><body><section number="1" title="Introduction"><p>Recently, extracting questions, contexts and an­swers from post discussions of online forums in­curs increasing academic attention (Cong et al., 2008; Ding et al., 2008). The extracted knowl­edge can be used either to enrich the knowledge base of community question answering (QA) ser­vices such as Yahoo ! Answers or to augment the knowledge base of chatbot (Huang et al., 2007).</p><p>Figure 1 gives an example of a forum thread with questions, contexts and answers annotated. This thread contains <i>three posts </i>and <i>ten sentences, </i>among which <i>three questions </i>are discussed. The three questions are proposed in three sentences, S3, S5 and S6. The <i>context sentences </i>SI and S2 provide contextual information for question sentence S3. Similarly, the <i>context sentence </i>S4 provides contextual information for question sen­tence S5 and S6. There are three question-context-answer triples in this example, (S3) — (SI, S2) — (S8, S9), (S5) - (S4) - (S10) and (S6) - (S4) -</p><p>* This work was done while the first author visited Mi­crosoft Research Asia.</p><p>Figure 1 : An example thread with three posts and ten sentences (S10). As shown in the example, a forum question usually requires contextual information to com­plement its expression. For example, the ques­tion sentence S3 would be of incomplete meaning without the contexts SI and S2, since the impor­tant keyword <i>pet friendly </i>would be lost.</p><p>The problem of extracting questions, contexts, and answers can be solved in two steps: (1) iden­tify questions and then (2) extract contexts and an­swers for them. Since identifying questions from forum discussions is already well solved in (Cong et al., 2008), in this paper, we are focused on step (2) while assuming questions already identified.</p><p>Previously, Ding et al. (2008) employ general-purpose graphical models without any customiza-tions to the specific extraction problem (step 2). In this paper, we improve the existing models in</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">514</doubt><p><i>Proceedings of the 2009 Conference on Empirical Methods in Natural Language Processing, </i>pages 514—523, Singapore, 6-7 August 2009. ©2009 ACL and AFNLP<page local="2" global="515"/></p><p>three aspects: <i>graphical representation, inference algorithm </i>and <i>loss function.</i></p><p><b>Graphical representation. </b>We propose a more comprehensive and unified graphical representa­tion to model the thread for relational learning. Our graphical representation has two advantages over previous work (Ding et al., 2008): <i>unifying sentence relations </i>and <i>incorporating question in­teractions.</i></p><p>Three types of relation should be considered for context and answer extraction: (a) relations be­tween successive sentences (e.g., <i>context </i>sentence S2 occurs immediately before <i>question </i>sentence S3); (b) relations between <i>context </i>sentences and <i>answer </i>sentences (e.g., <i>context </i>S4 presents the phrase <i>Causeway Bay </i>linking to <i>answer </i>which is absent from <i>question </i>S6); and (c) relations be­tween multiple labels for one sentence (e.g., one <i>question </i>sentence is unlikely to be the <i>answer </i>to another <i>question </i>although one sentence can serve as <i>contexts </i>for more than one <i>questions). </i>Our pro­posed graphical representation improves the mod­eling of the three types of sentence relation (Sec­tion 2.2).</p><p>Certain interactions exist among questions. For example, <i>question </i>sentences S5 and S6 interact by sharing <i>context </i>sentence S4. Our proposed graphi­cal representation can naturally model the interac­tions. Previous work (Ding et al., 2008) performs the extraction of contexts and answers in multiple passes of the thread (with each pass corresponding to one question), which cannot address the interac­tions well. In comparison, our model performs the extraction in one pass of the thread.</p><p><b>Inference algorithm. </b>Inference is usually a time-consuming process for structured prediction. We design special inference algorithms, instead of general-purpose inference algorithms used in pre­vious works (Cong et al., 2008; Ding et al., 2008), by taking advantage of special properties of our task. Specifically, we utilize two special properties of thread structure to reduce the inference (time) cost. First, <i>context </i>sentences and <i>question </i>sen­tences usually occur in the same post while <i>answer </i>sentences can only occur in the following posts. With this properties, we can greatly reduce <i>context </i>(or <i>answer) </i>candidate sets of a question, which results in a significant decrease in inference cost (Section 3). Second, <i>context </i>candidate set is usu­ally much smaller than the number of sentences in a thread. This property enables our proposal to have an exact and efficient inference (Section 4.1). Moreover, an approximate inference algorithm is also given (Section 4.2).</p><p><b>Loss function. </b>In practice, different applica­tion settings usually imply different requirements for system performance. For example, we expect a higher recall for the purpose of archiving ques­tions but a higher precision for the purpose of re­trieving questions. A flexible framework should be able to cope with various requirements. We employ structural Support Vector Machine (SVM) model that could naturally incorporate different loss functions (Section 5).</p><p>We use a real data set to evaluate our approach to extracting contexts and answers of questions. The experimental results show both the effective­ness and the flexibility of our approach.</p><p>In the next section, we formalize the problem of context and answer extraction and introduce the structural model. In Sections 3, 4 and 5 we give the details of customizing structural model for our task. In Section 6, we evaluate our methods. In Section 7, we discuss the related work. Finally, we conclude this paper in Section 8.</p></section><section number="2" title="Problem Statement"><p>We first introduce our notations in Section 2.1 and then in Section 2.2 introduce how we model the problem of extracting contexts and answers for questions with a novel form of graphical represen­tation. In Section 2.3 we introduce the structured model based on the new representation.</p><subsection number="2.1" title="Notations"><p>Assuming that a given thread contains <i>p </i>posts <i>{pi,...</i><i> </i><i>,pp},</i><i> </i>which are authored by a set of users ..., <i>Up}.</i><i> </i>The <i>p</i><i> </i>posts can be further segmented into <i>n</i><i> </i>sentences <b>x = </b><i>{x\,...</i><i> </i><i>,xn}-</i><i></i>Among the <i>n </i>sentences, <i>m question </i>sentences <b>q = </b><i>{xqi</i><i>,..., xqm </i>} have been identified. Our task is to identify the <i>context </i>sentences and the <i>answer </i>sentences for those m question sentences. More formally, we use four types of label <i>{C, A, Q, P} </i>to stand for context, answer, question and plain la­bels. Then, our task is to predict an m x <i>n </i>label matrix <b>y = </b><i>{yij</i><i>)i</i><i>&lt;i</i><i>&lt;m,i</i><i>&lt;j&lt;n, </i>except m elements <i>{Vi</i><i> </i>,&lt;?i,---, <i>ym,qm </i>} which correspond to (known) <i>question </i>labels. The element <i>ijij </i>in label matrix <b>y </b>represents the role that the <i>jth </i>sentence plays for the ith question. We denote the ith row and <i>jth </i>column of the label matrix <b>y </b>by <i>yi. </i>and <i>y.j.</i></p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">515</doubt><page local="3" global="516"/><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">{C,P)</doubt><p>(a) Skip-chain model (b) Complete skip-chain model (d) Label group model</p><doubt alpha="58.3" length="12" tooSmall="False" monospace="0.0">(c) 2D model</doubt><doubt alpha="33.3" length="33" tooSmall="False" monospace="0.0">yn )-1yi2 )-1yi3I-1y«;......-Iyi„</doubt><doubt alpha="32.4" length="34" tooSmall="False" monospace="0.0">y-n )ly22 )ly23 )Iy2A ).......Iy2^</doubt><doubt alpha="37.5" length="8" tooSmall="False" monospace="0.0">Q-Q-©-©Q</doubt><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">(C,P)</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">{Q!</doubt><doubt alpha="45.5" length="11" tooSmall="False" monospace="0.0">{A,P)T(A,P)</doubt><doubt alpha="55.6" length="27" tooSmall="False" monospace="0.0">(H)   CE) GD GD GD GD GD GD</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">0</doubt><figure caption="Figure 2: Structured models"></figure><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">•Iy2,</doubt></subsection><subsection number="2.2" title="Graphical Representation"><p>Recently, Ding et al. (2008) use skip-chain and 2D Conditional Random Fields (CRFs) (Lafferty et al., 2001) to perform the relational learning for context and answer extraction. The skip-chain CRFs (Sutton and McCallum, 2004; Galley, 2006) model the long distance dependency between con­text and answer sentences and the 2D CRFs (Zhu et al., 2005) model the dependency between con­tiguous questions. The graphical representation of those two models are shown in Figures 2(a) and 2(c), respectively. Those two CRFs are both extensions of the linear chain CRFs for the sake of powerful relational learning. However, di­rectly using the skip-chain and 2D CRFs with­out any customization has obvious disadvantages: (a) the skip-chain model does not model the <i>de­pendency between answer sentence and multiple context sentences; </i>and (b) the 2D model does not model the <i>dependency between non-contiguous questions.</i></p><p>To better model the problem of extracting con­texts and answers of questions, we propose two more comprehensive models, <i>complete skip-chain model </i>and <i>label group model </i>to improve the ca­pability of the two previous models. These two models are shown in Figures 2(b) and 2(d).</p><doubt alpha="64.6" length="48" tooSmall="False" monospace="0.0">In Figures 2(a) and 2(b), each label node is an-</doubt><p>notated with its allowed labels and the labels C, A, Q and P stand for context, answer, question and plain sentence labels, respectively. Note that the complete skip-chain model <i>completely </i>links each two context and answer candidates and the label group model combines the labels of one sentence into one <i>label group.</i></p></subsection><subsection number="2.3" title="Structured Model"><p>Following the standard machine learning setup, we denote the input and output spaces by <i>X </i>and <i>y,</i><i> </i>then formulate our task as learning a hypoth­esis function <i>h</i><i> </i><i>:</i><i> </i><i>X</i><i> </i><i>—&gt;</i><i> </i><i>y</i><i> </i>to predict a y when given x. In this setup, x represents a thread of <i>n</i><i> </i>sentences and m identified questions, y represents the m x <i>n</i><i> </i>label matrix to be predicted.</p><p>Given a set of training examples, <i>S</i><i> </i><i>=</i><i> </i>{(XW,yW) G <i>X</i><i> </i>x <i>y</i><i> </i>: <i>i</i><i> </i><i>=</i><i> </i><i>1</i><i>,...,N},</i><i> </i>we restrict ourselves to the supervised learning sce­nario. We focus on hypothesis functions that take the form /z,(x; w) = arg <i>m&amp;xyey </i>JF(x, y ; w) with discriminant function <i>T : X </i>x <i>y —&gt; TZ </i>where JF(x, y;w) = wT^(x, y). As will be introduced in Section 4, we employ structural SVMs (Joachims et al., 2009) to find the optimal parameters w. The structural SVMs have sev­eral competitive properties as CRFs. First, it fol­lows from the maximum margin strategy, which has been shown with competitive or even better performance (Tsochantaridis et al., 2005; Nguyen and Guo, 2007).<page local="4" global="517"/> Second, it allows flexible choices of loss functions to users. Moreover, in general, it has theoretically proved convergence in polyno­mial time (Joachims et al., 2009).</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">516</doubt><p>To use structural SVMs in relational learning, one needs to customize three steps according to specific tasks. The three steps are (a) <i>definition of joint feature mapping </i>for encoding relations, (b) <i>algorithm of finding the most violated constraint (inference) </i>for efficient trainings and (c) <i>definition of loss function </i>for flexible uses.</p><p>In the following Sections 3,4 and 5, we describe the customizations of the three steps for our con­text and answer extraction task, respectively.</p></subsection></section><section number="3" title="Encoding Relations"><p>We use a joint feature mapping to model the rela­tions between sentences in a thread. For context and answer extraction, the joint feature mapping can be defined as follows, where the sub-mappings <b>\I&gt;n(x, </b><b>y),</b><b> ^(x, </b><b>y),</b><b> </b>and <b>^(x, y) </b>encode three types of feature mappings, <i>node features, edge features </i>and <i>label group fea­tures.</i><i> </i>The node features provide the basic infor­mation for the output labels. The edge features consist of the sequential edge features and skip-chain edge features for successive label dependen­cies. The label group features encode the relations within each label group.</p><doubt alpha="33.3" length="6" tooSmall="False" monospace="0.0">*(x,y)</doubt><doubt alpha="40.9" length="22" tooSmall="False" monospace="0.0">*n(x,y)*fc(x,y)*«(x,y)</doubt><p>Before giving the detail definitions of the sub-mappings, we first introduce <i>the context and an­swer candidate sets, </i>which will be used for the definitions and inferences. Each row of the label matrix <b>y </b>corresponds to one question. Assuming that the ith row <b>y^. </b>corresponds to the question with sentence index <i>qi, </i>we thus have two candi­date sets of contexts and answers for this question denoted by <i>C </i>and <i>A, </i>respectively. We denote the post indices and the author indices for the <i>n </i>sen­tences as p = <i>(pi,...</i><i> </i><i>,pn)</i><i> </i>and u = <i>(u\,..., un). </i>Then, we can formally define the two candidate sets for the <b>y^.</b><b> </b>as</p><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">Pc</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">C =</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">A =</doubt><doubt alpha="21.7" length="23" tooSmall="False" monospace="0.0">-,       Pqt   ,&lt;^_Hh \</doubt><p>In Question Post Not Question Sentence J</p><p><i>Pcij &gt; Pqi     </i><i>-,</i><i> ucij </i>7^ <i>uqi </i>After Question Post Not by the Same User</p><p>In the following, we describe formally about the definitions of the three feature sub-mappings.</p><p><b>The node feature mapping *„(x, y) </b>encodes the relations between sentence and label pairs, we define it as follows, where <i>ipn(%j, y if) </i>is a feature mapping for a given sentence and a label. It can be formally defined as follows, where <i>&lt;g&gt;</i><i> </i>denotes a tensor product, <i>&lt;fiqi(xj) </i>and <i>A</i><i>(yij) </i>denote two vectors. <i>4</i><i>&gt;qi{xj) </i>contains ba­sic information for output label. <i>^{y%j) </i>is a 0/1 vector defined as where <i>\c(Uij)</i><i> </i>equal to one if <i>yij </i><i>=</i><i> </i><i>C,</i><i> </i>otherwise zero. The <i>\A{y%j) </i>and <i>\p{yif) </i>are similarly de­fined. Thus, for example, writing out <i>ipn(xj,yij) </i>for <i>yij </i><i>= C </i>one gets, context answer plain</p><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">m n</doubt><doubt alpha="44.0" length="25" tooSmall="False" monospace="0.0">*n(x,y)='Y^2/i&gt;n{Xj,yii),</doubt><doubt alpha="57.1" length="7" tooSmall="False" monospace="0.0">i=l j=l</doubt><doubt alpha="60.7" length="28" tooSmall="False" monospace="0.0">tpn(Xj,yij)=MVij)®&lt;t&gt;qi(Xj),</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(1)</doubt><doubt alpha="52.9" length="34" tooSmall="False" monospace="0.0">MVij) =[*c(Vij),XA(Vij),Xp(Vij)]7\</doubt><doubt alpha="58.3" length="12" tooSmall="False" monospace="0.0">1pn(Xj, yij)</doubt><p>Note that the node feature mapping does not in­corporate the relations between sentences.</p><p><b>The edge feature mapping \J</b>&gt;/j<b>(x, y) </b>is used to incorporate two types of relation, the relation between successive sentences and the relation be­tween context and answer sentences. It can be de­fined as follows, where <b>*/ira(x, </b><b>y)</b><b> </b>and <b>lE'/lc(x, </b><b>y)</b><b> </b>denote the two types of feature mappings corresponding to se­quential edges and skip-chain edges, respectively. Their formal definitions are given as follows,<page local="5" global="518"/></p><doubt alpha="50.0" length="8" tooSmall="False" monospace="0.0">*fc(x,y)</doubt><doubt alpha="55.6" length="18" tooSmall="False" monospace="0.0">*fcn(x, y)Vhc(x,y)</doubt><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">m n—1</doubt><doubt alpha="52.5" length="40" tooSmall="False" monospace="0.0">*to(x,y)=2^^n(xj, xj+i,yij,yiJ+i),i=ij=i</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">517</doubt><p>Table 1 : Feature descriptions and demisions</p></section><section number="1" title="%ki  Vij i Vikji"><p><i>i=\</i><i>   jeckeA</i></p><p>Complete Edges</p><doubt alpha="62.5" length="24" tooSmall="False" monospace="0.0">i&gt;hn(xj,xj+i,yij,yi,j+i)</doubt><doubt alpha="56.9" length="58" tooSmall="False" monospace="0.0">=    MVij, Vi,j+l)®&lt;l&gt;hn(Xj,Xj+i,yij, Vi,j+l),1XkiVijiVik)</doubt><doubt alpha="63.6" length="33" tooSmall="False" monospace="0.0">=A(yij, Vik)®iphc(xj,Xk,Vij, Vik)</doubt><p>where A(j/y, y^) is a 16-dimensional vector. It in­dicates all 4 x 4 pairwise transition patterns of four types of labels, the context, answer, question and plain. Note that apart from previous work (Ding et al., 2008) we use <i>complete skip-chain (context-answer) edges </i>in \J&gt;/ic<b>(x, y).</b></p><p><b>The label group feature mapping ^(x, y) </b>is defined as follows, where <i>ipv(xj,y,j) </i>encodes each label group pat­tern into a vector.</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">n</doubt><doubt alpha="36.4" length="22" tooSmall="False" monospace="0.0">*«(x,y) =^i&gt;v{xj,y.j),</doubt><p>The detail descriptions and vector dimensions of the used features are listed in Table 1.</p></section><section number="4" title="Structural SVMs and Inference"><p>Given a training set <i>S</i><i> </i><i>=</i><i> </i><b>{(x^,yW)</b><b> </b>G <i>X</i><i> </i>x <i>y</i><i> </i><i>:</i><i> </i><i>i</i><i> </i><i>=</i><i> </i>1,..., <i>N},</i><i> </i>we use the structural SVMs (Taskar et al., 2003; Tsochantaridis et al., 2005; Joachims et al., 2009) formulation, as shown in Optimization Problem 1 (OP1), to learn a weight vector <b>w.</b></p><p><b>OP 1 </b><i>(1</i><i>-Slack Structural SVM)</i> where £ is a slack variable, <b>*(x, </b><b>y)</b><b> </b>is the joint feature mapping and <b>A(y,y)</b><b> </b>is the loss func­tion that measures the loss caused by the dif­ference between <b>y </b>and <b>y.</b><b> </b>Though OP1 is al­ready a quadratic optimization problem, directly using off-the-shelf quadratic optimization solver will fail, due to the large number of constraints. Instead, a cutting plane algorithm is used to ef­ficiently solve this problem. For the details of the<page local="6" global="519"/></p><doubt alpha="0.0" length="2" tooSmall="False" monospace="0.0">1,</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">C</doubt><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">mm</doubt><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">w,Ç&gt;0</doubt><doubt alpha="42.1" length="19" tooSmall="False" monospace="0.0">s.t. y(y^,...,yw)ey</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">N</doubt><doubt alpha="47.6" length="21" tooSmall="False" monospace="0.0">V^[f(xW,yW)-f(xW,y«)]</doubt><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">i=l</doubt><doubt alpha="33.3" length="12" tooSmall="False" monospace="0.0">^£A(y«y«)-e,</doubt><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">&gt;</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">518</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></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Descriptions</p></td><td class="cell"><p>Dimensions</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>ipqi(xj) </i>(32 dimensions) in \I<b>&gt;n(x, y)</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>The cosine, WordNet and KL-divergence similarities with the question <i>xqi</i></p></td><td class="cell"><p>3</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>The cosine, WordNet and KL-divergence similarities with the questions other than <i>xqi</i></p></td><td class="cell"><p>3</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>The cosine, WordNet and KL-divergence similarities with previous and next sentences</p></td><td class="cell"><p>6</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Is this sentence <i>Xj</i><i> </i>exactly <i>xqi</i><i> </i>or one of the questions in <i>{xqi,..., </i><i>xqm</i><i> </i><i>}?</i></p></td><td class="cell"><p>2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Is this sentence <i>Xj</i><i> </i>in the three beginning sentences?</p></td><td class="cell"><p>3</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>The relative position of this sentence <i>Xj</i><i> </i>to questions</p></td><td class="cell"><p>4</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Is this sentence <i>Xj</i><i> </i>share the same author with the question sentence <i>xqi</i><i> </i><i>?</i></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>Is this sentence <i>Xj</i><i> </i>in the same post with question sentences?</p></td><td class="cell"><p>2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Is this sentence <i>Xj</i><i> </i>in the same paragraph with question sentences?</p></td><td class="cell"><p>2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>The presence of greeting (e.g., "hi") and acknowledgement words in this sentence <i>Xj</i></p></td><td class="cell"><p>2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>The length of this sentence <i>Xj</i></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>The number of nouns, verbs and pronouns in this sentence <i>Xj</i>, respectively</p></td><td class="cell"><p>3</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>*/l(x, y) </b>(704 dimensions)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>For <b>^//l„(x, y), </b>the above 32 dimension features w.r.t. 4 x 4 = 16 transition patterns</p></td><td class="cell"><p>512</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>For <b>*/lc(x, y), </b>12 types of pairwise or merged similarities w.r.t. 16 transition patterns</p></td><td class="cell"><p>192</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>^(x, y) </b>(32 dimensions)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>The transition patterns for any two non-contiguous labels in a label group</p></td><td class="cell"><p>16</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>The transition patterns for any two contiguous labels in a label group</p></td><td class="cell"><p>16</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="60.0" length="45" tooSmall="True" monospace="0.0">{PPP.PPC, PCP, PCC, CPP, CPC, CCP, CCC) {PPP1</doubt><doubt alpha="25.9" length="54" tooSmall="True" monospace="0.0">{C,P)   jC.P)   jC.P)    (Q)       {P)     (A,P) (A,P)</doubt><p>(a) Original graph (b) Transformed graph (c) Decomposed graph</p><doubt alpha="20.7" length="29" tooSmall="True" monospace="0.0">{Q)       {P)     {A,P&gt; {A,P)</doubt><doubt alpha="60.0" length="5" tooSmall="True" monospace="0.0">{CCC)</doubt><doubt alpha="0.0" length="7" tooSmall="True" monospace="0.0">\ \ \ \</doubt><doubt alpha="50.0" length="6" tooSmall="True" monospace="0.0">' Ni N</doubt><doubt alpha="46.7" length="15" tooSmall="False" monospace="0.0">ö-o-o-ö Ö-O-0-Ö</doubt><doubt alpha="22.7" length="66" tooSmall="True" monospace="0.0">{Ql      {PI     {A, PI  {A, P)      {Q}      {P}     {A, P) {A,P)</doubt><figure caption="Figure 3: The equivalent transform of graphs"></figure><p><b>Algorithm 1 </b>Exact Inference Algorithm <b>for </b><i>Cs </i><b>ç </b><i>d </i><b>do</b> <i>C* = </i>argmaxCsçCi <i>R(CS)</i> structural SVMs, please refer to (Tsochantaridis et al., 2005; Joachims et al., 2009).</p><doubt alpha="59.2" length="49" tooSmall="False" monospace="0.0">Input:(Ci, Ai)for eachqi,w, x, y foriG{1,...,m}do</doubt><doubt alpha="58.6" length="29" tooSmall="False" monospace="0.0">[R{Cs),yl.(Cs)\Viterbi(w,x;C,</doubt><doubt alpha="85.7" length="7" tooSmall="False" monospace="0.0">end for</doubt><doubt alpha="64.3" length="28" tooSmall="False" monospace="0.0">yt=?i.(C*s)end for return y*</doubt><p>The most essential and time-consuming step in structural SVMs is <i>finding the most violated con­straint, </i>which is equivalent to solve</p><doubt alpha="66.7" length="18" tooSmall="False" monospace="0.0">are; maxw \Hx^'yey</doubt><doubt alpha="36.4" length="11" tooSmall="False" monospace="0.0">),y)+A(y«,y</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(2)</doubt><p>Without the ability to efficiently find the most vio­lated constraint, the cutting plane algorithm is not tractable.</p><p>In the next sub-sections, we introduce the al­gorithms for finding the most violated constraint, also called loss-augmented inference. The algo­rithms are essential for the success of customizing structural SVMs to our problem.</p><subsection number="4.1" title="Exact Inference"><p>The exact inference algorithm is designed for a simplified model with two sub-mappings and <i>i&amp;h&gt;</i><i> </i>except \Iv</p><p>One naive approach to finding the most violated constraint for the simplified model is to enumer­ate all the 2lcl+l-/ll cases for each row of the label matrix. However, it would be intractable for large candidate sets.</p><p>An important property is that the context can­didate set is usually much smaller than the whole number of sentences in a thread. This property en­ables us to design efficient and exact inference al­gorithm by transforming from the original graph representation in Figure 2 to the graphs in Fig­ure 3. This graph transform merges all the nodes in the context candidate set <i>C </i>to one node with <i>2^</i><i> </i>possible labels.</p><p>We design an exact inference algorithm in Algo­rithm 1 based on the graph in Figure 3(c). The al­gorithm can be summarized in three steps: (1) enu­merate all the 2 Ie I possible labels<footnote anchor="1"/> for the merged node (line 3). (2) For each given label of the merged node, perform the Viterbi algorithm (Ra-biner, 1989) on the decomposed graph (line 4) and store the Viterbi algorithm outputs in <i>R </i>and <i>fi,. </i>(3) From the <i>2^ </i>Viterbi algorithm outputs, select the one with highest score as the output (lines 6 and 7).</p><p>The use of the Viterbi algorithm is assured by the fact that there exists certain equivalence be­tween the decomposed graph (Figure 3(c)) and a linear chain. By fixing the the label of the merged node, we could remove the dashed edges in the decomposed graph and regard the rest graph as a linear chain, which results in the Viterbi decoding.</p></subsection><subsection number="4.2" title="Approximate Inference"><p>The exact inference cannot handle the complete model with three sub-mappings, <i>tyn,</i><i> </i>and <i>tyv, </i>since the label group defeats the graph trans­form in Figure 3. Thus, we design two ap­proximate algorithms by employing <i>undergener-ating </i>and <i>over generating </i>approaches (Finley and Joachims, 2008).</p><p>First, we develop an <i>undergenerating </i>local greedy search algorithm shown in Algorithm 2. In the algorithm, there are two loops, inner and outer loops. The outer loop terminates when no labels change (steps 3-11). The inner loop enumerates the whole label matrix and greedily determines each label (step 7) by maximizing the Equation (2). Since the whole algorithm terminates only if <b>Algorithm 2 </b>Greedy Inference Algorithm<page local="7" global="520"/></p><footnote label="1">Since the merged node is from context candidate set C,  enumerating its label is equivalent to enumerating subsets C s  of the candidate set C</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">519</doubt><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">m n</doubt><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">yo</doubt><doubt alpha="28.6" length="7" tooSmall="False" monospace="0.0">y' &lt;- y</doubt><doubt alpha="48.5" length="33" tooSmall="False" monospace="0.0">foriG{1,...,m}do forjG{1,...,n}do</doubt><p>arg maxy..</p><doubt alpha="53.3" length="15" tooSmall="False" monospace="0.0">wTf(x,y)+A(y,y)</doubt><doubt alpha="0.0" length="13" tooSmall="False" monospace="0.0">9 10 11 12 13</doubt><p><b>end for end for until y = y'</b> <b>return y*</b> the label matrix does not change during the last outer loop. This indicates that at least a local opti­mal solution is obtained.</p><doubt alpha="28.6" length="7" tooSmall="False" monospace="0.0">y* &lt;- y</doubt><p>Second, an <i>over generating </i>method can be designed by using linear programming relax­ation (Finley and Joachims, 2008). To save the space, we skip the details of this algorithm here.</p></subsection></section><section number="5" title="Loss Functions"><p>Structural SVMs allow users to customize the loss function A : <i>y </i>x <i>y —&gt; TZ </i>according to different system requirements. In this section, we introduce the loss functions used in our work.</p><p><b>Basic loss function. </b>The simplest way to quan­tify the prediction quality is counting the number of wrongly predicted labels. Formally, where /[.] is an indicative function that equals to one if the condition holds and zero otherwise.</p><doubt alpha="33.3" length="21" tooSmall="False" monospace="0.0">Afe(y,y) =Yl      ^ ^</doubt><doubt alpha="66.7" length="6" tooSmall="False" monospace="0.0">i=ij=i</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">(3)</doubt><p><b>Recall-vs-precision loss function. </b>In practice, we may place different emphasis on recall and pre­cision according to application settings. We could include this preference into the model by defining the following loss function,</p><doubt alpha="50.0" length="26" tooSmall="False" monospace="0.0">AP(y, y)   =tyii^P'=Pl 'Cr</doubt><doubt alpha="40.9" length="22" tooSmall="False" monospace="0.0">+I[yl3=P,yl3^P]-cp.(4)</doubt><p>This function penalizes the wrong prediction de­creasing recall and that decreasing precision with two weights <i>cr </i>and <i>cp </i>respectively. Specifically, we denote the loss function with <i>cp/cr = </i>2 and that with <i>cr/cp = </i>2 by Ap and A£, respectively.</p><p>Various types of loss function can be defined in a similar fashion. To save the space, we skip the definitions of other loss functions and only use the above two types of loss functions to show the flex­ibility of our approach.</p></section><section number="6" title="Experiments"><subsection number="6.1" title="Experimental Setup"><p><b>Corpus. </b>We made use of the same data set as introduced in (Cong et al., 2008; Ding et al., 2008). Specifically, the data set includes about 591 threads from the forum TripAdvisor<footnote anchor="2"/>. Each sentence in the threads is tagged with the labels 'question', 'context', 'answer', or 'plain' by two annotators. We removed 76 threads that have no question sentences or more than 40 sentences and 6 questions. The remaining 515 forum threads form our data set.</p><p>Table 2 gives the statistics on the data set. On average, each thread contains 3.95 posts and 2.73 questions, and each question has 1.39 context sen­tences and 3.31 answer sentences. Note that the number of annotations is much larger than the number of sentences because one sentence can be annotated with multiple labels.</p><p><b>Experimental Details. </b>In all the experiments, we made use of linear models for the sake of com­putational efficiency. As a preprocessing step, we normalized the value of each feature value into the interval [0,1] and then followed the heuristic used in SVM-light (Joachims, 1998) to set <i>C </i>to 1 /11 <i>x </i>11<footnote anchor="2"/>, where 11 <i>x \ </i>| is the average length of input samples (in our case, sentences). The tolerance pa­rameter e was set to 0.1 (the value also used in (Cai initialize solution: y and Hofmann, 2004)) in all the runs of the experi­ments.<page local="8" global="521"/></p><footnote label="2">TripAdvisor (http : //www. tripadvisor. com/ ForumHome) is one of the most popular travel forums</footnote><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">520</doubt><doubt alpha="57.1" length="14" tooSmall="False" monospace="0.0">Input: w, x, y</doubt><doubt alpha="100.0" length="6" tooSmall="False" monospace="0.0">repeat</doubt><table caption="Table 2: The data statistics" 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>Items in the data set</p></td><td class="cell"><p>#items</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Thread</p></td><td class="cell"><p>515</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Post</p></td><td class="cell"><p>2,035</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Sentence</p></td><td class="cell"><p>8,500</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>question </i>annotation</p></td><td class="cell"><p>1,407</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>context </i>annotation</p></td><td class="cell"><p>1,962</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>answer </i>annotation</p></td><td class="cell"><p>4,652</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>plain </i>annotation</p></td><td class="cell"><p>18,198</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><p><b>Evaluation. </b>We calculated the standard preci­sion <b>(P), </b>recall <b>(R) </b>and Fi-score (Fi) for both tasks (context extraction and answer extraction). All the experimental results were obtained through 5-fold cross validation.</p></subsection><subsection number="6.2" title="Baseline Methods"><p>We employed binary SVMs (B-SVM), multiclass SVMs (M-SVM), and C4.5 (Quinlan, 1993) as our baseline methods:</p><p><b>B-SVM. </b>We trained two binary SVMs for con­text extraction (context vs. non-context) and an­swer extraction (answer vs. non-answer), respec­tively. We used the feature mapping <i>4</i><i>&gt;qi{xj) </i>de­fined in Equation (1) while training the binary SVM models.</p><p><b>M-SVM. </b>We extended the binary SVMs by training multiclass SVMs for three category labels <i>{context, answer, plain).</i></p><p><b>C4.5. </b>This decision tree algorithm solved the same classification problem as binary SVMs and made use of the same set of features.</p></subsection><subsection number="6.3" title="Modeling Sentence Relations and Question Interactions"><p>We demonstrate in Table 3 that our approach can make use of the three types of relation among sen­tences well to boost the performance.</p><p>In Table 3, S-SVM represents the structural SVMs only using the node features \I&gt;n(x, <b>y).</b><b> </b>The suffixes <i>H,</i><i> </i><i>C,</i><i> </i>and <i>V</i><i> </i>denote the models using <i>horizontal sequential edges, complete skip-chain edges </i>and <i>vertical label groups, </i>respectively. The suffixes <i>C* </i>and <i>V* </i>denote the models using <i>in­complete skip-chain edges </i>and <i>vertical sequential edges </i>proposed in (Ding et al., 2008), as shown in Figures 2(a) and 2(c). All the structural SVMs were trained using basic loss function A5 in Equa­tion (3). From Table 3, we can observe the follow­ing advantages of our approaches.</p><p><b>Overall improvement. </b>Our structural approach steadily improves the extraction as more types of relation (corresponding to more types of edge) are included. The best results obtained by using the three types of relation together improve the base­line methods binary SVMs by about 6% and 20% in terms of Fi values for context extraction and answer extraction, respectively.</p><p><b>The usefulness of relations. </b>The relations encoded by horizontal sequential edges and label groups are useful for both context extraction and answer extraction. The relation encoded by complete skip-chain edges is useful for answer extraction. The complete skip-chain edges not only avoid preprocessing but also boost the per­formance when compared with the preprocessed skip-chain edges. The label groups improve the vertical sequential edges.</p><p><b>Interactions among questions. </b>The interac­tions encoded by label groups are especially use­ful. We conducted significance tests (sign test) on the experimental results. The test result shows that S-SVM-HCV outperforms all the other methods without vertical edges statistically significantly (p-value &lt; 0.01). Our proposed graphical represen­tation in Figure 2(d) eases us to model the complex interactions. In comparison, the 2D model in Fig­ure 2(c) used in previous work (Ding et al., 2008) can only model the interaction between adjacent questions.</p></subsection><subsection number="6.4" title="Loss Function Results"><p>We report in Table 4 the comparison between structural SVMs using different loss functions. Note that Ap prefers precision and A^ prefers re­call. From Table 4, we can observe that the ex­perimental results also exhibit this kind of system preference.<page local="9" global="522"/> Moreover, we further demonstrate the capability of the loss function <i>Ap </i>in Figure 4. The curves are achieved by varying the ratio between two parameters <i>cp/cr </i>in Equation (4). The curves confirm our intuition: when log(cp/cr) becomes larger, the precisions increase but the recalls de­crease and vice versa.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">521</doubt><table caption="Table 3: The effectiveness of our approach" 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>Method</p></td><td class="cell"><p>A6</p></td><td class="cell"><p><b>P(%)</b></p></td><td class="cell"><p><b>R (%)</b></p></td><td class="cell"><p>Fi (%)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Context Extraction</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>C4.5</p></td><td class="cell"><p><b>—</b></p></td><td class="cell"><p>74.2</p></td><td class="cell"><p>68.7</p></td><td class="cell"><p>71.2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>B-SVM</p></td><td class="cell"><p><b>—</b></p></td><td class="cell"><p>78.3</p></td><td class="cell"><p>72.2</p></td><td class="cell"><p>74.9</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>M-SVM</p></td><td class="cell"><p><b>—</b></p></td><td class="cell"><p>68.0</p></td><td class="cell"><p>77.6</p></td><td class="cell"><p>72.1</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S-SVM</p></td><td class="cell"><p>8.86</p></td><td class="cell"><p>75.6</p></td><td class="cell"><p>71.7</p></td><td class="cell"><p>73.4</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S-SVM-H</p></td><td class="cell"><p>8.60</p></td><td class="cell"><p>77.5</p></td><td class="cell"><p>75.5</p></td><td class="cell"><p>76.3</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S-SVM-HC*</p></td><td class="cell"><p>8.65</p></td><td class="cell"><p>77.9</p></td><td class="cell"><p>74.1</p></td><td class="cell"><p>75.8</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S-SVM-HC</p></td><td class="cell"><p>8.62</p></td><td class="cell"><p>77.5</p></td><td class="cell"><p>75.2</p></td><td class="cell"><p>76.2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S-SVM-HCV*</p></td><td class="cell"><p>8.08</p></td><td class="cell"><p>79.5</p></td><td class="cell"><p>79.6</p></td><td class="cell"><p>79.5</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S-SVM-HCV</p></td><td class="cell"><p><b>7.98</b></p></td><td class="cell"><p>79.7</p></td><td class="cell"><p>80.2</p></td><td class="cell"><p><b>79.9</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Answer Extraction</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>C4.5</p></td><td class="cell"><p><b>—</b></p></td><td class="cell"><p>61.3</p></td><td class="cell"><p>45.2</p></td><td class="cell"><p>51.8</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>B-SVM</p></td><td class="cell"><p><b>—</b></p></td><td class="cell"><p>69.7</p></td><td class="cell"><p>42.0</p></td><td class="cell"><p>51.8</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>M-SVM</p></td><td class="cell"><p><b>—</b></p></td><td class="cell"><p>63.2</p></td><td class="cell"><p>51.5</p></td><td class="cell"><p>55.8</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S-SVM</p></td><td class="cell"><p>8.86</p></td><td class="cell"><p>67.0</p></td><td class="cell"><p>48.0</p></td><td class="cell"><p>55.6</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S-SVM-H</p></td><td class="cell"><p>8.60</p></td><td class="cell"><p>66.9</p></td><td class="cell"><p>49.7</p></td><td class="cell"><p>56.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S-SVM-HC*</p></td><td class="cell"><p>8.65</p></td><td class="cell"><p>66.5</p></td><td class="cell"><p>49.4</p></td><td class="cell"><p>56.4</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S-SVM-HC</p></td><td class="cell"><p>8.62</p></td><td class="cell"><p>65.7</p></td><td class="cell"><p>51.5</p></td><td class="cell"><p>57.4</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S-SVM-HCV*</p></td><td class="cell"><p>8.08</p></td><td class="cell"><p>65.5</p></td><td class="cell"><p>58.7</p></td><td class="cell"><p>61.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S-SVM-HCV</p></td><td class="cell"><p><b>7.98</b></p></td><td class="cell"><p>65.1</p></td><td class="cell"><p>61.2</p></td><td class="cell"><p><b>63.0</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><td class="cell"></td><td class="cell"></td></tr></table></subsection></section><section number="7" title="Related work"><p>Previous work on extracting questions, answers and contexts is most related with our work. Cong et al. (2008) proposed a supervised approach for question detection and an unsupervised approach for answer detection without considering contexts. Ding et al. (2008) used CRFs to detect contexts and answers of questions from forum threads.</p><p>Some researches on summarizing discussion threads and emails are related to our work, too. Zhou and Hovy (2005) segmented internet re­lay chat, clustered segments into sub-topics, and identified responding segments of the first seg­ment in each sub-topic by assuming the first seg­ment to be focus. In (Nenkova and Bagga, 2003; Wan and McKeown, 2004; Rambow et al., 2004), email summaries were organized by extracting overview sentences as discussion issues. The work (Shrestha and McKeown, 2004) used RIP­PER as a classifier to detect interrogative questions and their answers then used the resulting question and answer pairs as summaries. We also note the existing work on extracting knowledge from dis­cussion threads. Huang et al. (2007) used SVMs to extract input-reply pairs from forums for chat­bot knowledge. Feng et al. (2006) implemented a discussion-bot which used cosine similarity to match students' query with reply posts from an an­notated corpus of archived threaded discussions.</p><p>Moreover, extensive researches have been done within the area of question answering (Burger et</p><doubt alpha="100.0" length="7" tooSmall="False" monospace="0.0">Context</doubt><doubt alpha="53.3" length="15" tooSmall="False" monospace="0.0">c0.9 --A-Answer</doubt><doubt alpha="0.0" length="31" tooSmall="False" monospace="0.0">-1.5        -1 -0.5 0 0.5 1 1.5</doubt><p>Log loss ratio</p><figure caption="Figure 4: Balancing between precision and recall"></figure><p>al., 2006; Jeon et al., 2005; Harabagiu and Hickl, 2006; Cui et al., 2005; Dang et al., 2006). They mainly focused on using sophisticated linguistic analysis to construct answer from a large docu­ment collection.</p></section><section number="8" title="Conclusion and Future Work"><p>We have proposed a new form of graphical rep­resentation for modeling the problem of extract­ing contexts and answers of questions from online forums and then customized structural SVM ap­proach to solve it.</p><p>The proposed graphical representation is able to naturally express three types of relation among sentences: relation between successive sentences, relation between context sentences and answer sentences, and relation between multiple labels for one sentence. The representation also enables us to address interactions among questions. We also developed the inference algorithms for the struc­tural SVM model by exploiting the special struc­ture of thread discussions.</p><p>Experimental results on a real data set show that our approach significantly improves the baseline methods by effectively utilizing various types of relation among sentences.</p><p>Our future work includes: (a) to summa­rize threads and represent the forum threads in question-context-answer triple, which will change the organization of online forums; and (b) to en­hance QA services (e.g., Yahoo! Answers) by the contents extracted from online forums.</p><p><b>Acknowledgement</b></p><p>The authors would like to thank the anonymous re­viewers for their comments to improve this paper.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">522</doubt><table caption="Table 4: The use of different loss functions" 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>Method</p></td><td class="cell"><p>P(%) R(%) Fi(%)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Context Extraction</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S-SVM-HCV-a6</p></td><td class="cell"><p>79.7     80.2 79.9</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S-SVM-HCV-a^</p></td><td class="cell"><p><b>82.0     </b>70.3 75.6</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>s-svm-hcv-a;</p></td><td class="cell"><p>75.7     <b>84.2 </b>79.7</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Answer Extraction</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S-SVM-HCV-a6</p></td><td class="cell"><p>65.1     61.2 63.0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S-SVM-HCV-a^</p></td><td class="cell"><p><b>71.8     </b>52.2 60.2</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>s-svm-hcv-a;</p></td><td class="cell"><p>61.8     <b>66.1 </b>63.7</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></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p></p></td><td class="cell"><p>□ Context -A-Answer</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"><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"><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="10" global="523"/></section><references><p>John Burger, Claire Cardie, Vinay Chaudhri, Robert Gaizauskas, Sanda Harabagiu, David Israel, Chris­tian Jacquemin, Chin-Yew Lin, Steve Maiorano, George Miller, Dan Moldovan, Bill Ogden, John Prager, Ellen Riloff, Amit Singhal, Rohini Shrihari, Tomek Strzalkowski, Ellen Voorhees, and Ralph Weishedel. 2006. Issues, tasks and program struc­tures to roadmap research in question and answering (qna). <i>ARAD: Advanced Research and Development Activity (US).</i></p><p>Lijuan Cai and Thomas Hofmann. 2004. Hierarchi­cal document categorization with support vector ma­chines. In <i>Proceedings ofCIKM, </i>pages 78-87.</p><p>Gao Cong, Long Wang, Chin-Yew Lin, and Young-In Song. 2008. Finding question-answer pairs from online forums. In <i>Proceedings ofSIGIR, </i>pages 467-474.</p><p>Hang Cui, Renxu Sun, Keya Li, Min-Yen Kan, and Tat-Seng Chua. 2005. Question answering passage re­trieval using dependency relations. In <i>Proceedings ofSIGIR, </i>pages 400-407.</p><p>Hoa Dang, Jimmy Lin, and Diane Kelly. 2006. Overview of the tree 2006 question answering track. In <i>Proceedings ofTREC, </i>pages 99-116.</p><p>Shilin Ding, Gao Cong, Chin-Yew Lin, and Xiaoyan Zhu. 2008. Using conditional random field to ex­tract contexts and answers of questions from online forums. In <i>Proceedings of ACL, </i>pages 710-718.</p><p>Donghui Feng, Erin Shaw, Jihie Kim, and Eduard H. Hovy. 2006. An intelligent discussion-bot for an­swering student queries in threaded discussions. In <i>Proceedings of IUI, </i>pages 171-177.</p><p>Thomas Finley and Thorsten Joachims. 2008. Training structural SVMs when exact inference is intractable. In <i>Proceedings oflCML, </i>pages 304-311.</p><p>Michel Galley. 2006. A skip-chain conditional random field for ranking meeting utterances by importance.</p><p>In <i>Proceedings of the 2006 Conference on Empiri­cal Methods in Natural Language Processing, </i>pages 364-372.</p><p>Sanda M. Harabagiu and Andrew Hickl. 2006. Meth­ods for using textual entailment in open-domain question answering. In <i>Proceedings of ACL, </i>pages 905-912.</p><p>Jizhou Huang, Ming Zhou, and Dan Yang. 2007. Ex­tracting chatbot knowledge from online discussion forums. In <i>Proceedings ofUCAI, </i>pages 423^128.</p><p>Jiwoon Jeon, W. Bruce Croft, and Joon Ho Lee. 2005. Finding similar questions in large question and an­swer archives. In <i>Proceedings ofCIKM, </i>pages 84-90.</p><p>Thorsten Joachims, Thomas Finley, and Chun-Nam Yu. 2009. Cutting-plane training of structural SVMs. <i>Machine Learning.</i></p><p>Thorsten Joachims. 1998. Text categorization with support vector machines: Learning with many rele­vant features. In <i>Proceedings ofECML, </i>pages 137— 142.</p><p>John Lafferty, Andrew McCallum, and Fernando Pereira. 2001. Conditional random fields: Prob­abilistic models for segmenting and labeling se­quence data. In <i>Proceedings oflCML, </i>pages 282-289.</p><p>Ani Nenkova and Amit Bagga. 2003. Facilitating email thread access by extractive summary genera­tion. In <i>Proceedings ofRANLP, </i>pages 287-296.</p><p>Nam Nguyen and Yunsong Guo. 2007. Comparisons of sequence labeling algorithms and extensions. In <i>Proceedings oflCML, </i>pages 681-688.</p><p>John Quinlan. 1993. <i>C4.5: programs for machine learning. </i>Morgan Kaufmann Publisher Incorpora­tion.</p><p>Lawrence Rabiner. 1989. A tutorial on hidden markov models and selected applications in speech recogni­tion. In <i>Proceedings of IEEE, </i>pages 257-286.</p><p>Owen Rambow, Lokesh Shrestha, John Chen, and Chirsty Lauridsen. 2004. Summarizing email threads. In <i>Proceedings of HLT-NAACL, </i>pages 105-108.</p><p>Lokesh Shrestha and Kathleen McKeown. 2004. De­tection of question-answer pairs in email conversa­tions. In <i>Proceedings ofCOLING, </i>pages 889-895.</p><p>Charles Sutton and Andrew McCallum. 2004. Collec­tive segmentation and labeling of distant entities in information extraction. Technical Report 04-49.</p><p>Benjamin Taskar, Carlos Guestrin, and Daphne Koller. 2003. Max-margin markov networks. <i>In Advances in Neural Information Processing Systems 16. </i>MIT Press.</p><p>Ioannis Tsochantaridis, Thorsten Joachims, Thomas Hofmann, and Yasemin Altun. 2005. Large margin methods for structured and interdependent output variables. <i>Journal of Machine Learning Research, </i>6:1453-1484.</p><p>Stephen Wan and Kathy McKeown. 2004. Generating overview summaries of ongoing email thread discus­sions. In <i>Proceedings ofCOLING, </i>pages 549-555.</p><p>Liang Zhou and Eduard Hovy. 2005. Digesting vir­tual "geek" culture: The summarization of technical internet relay chats. In <i>Proceedings of ACL, </i>pages 298-305.</p><p>Jun Zhu, Zaiqing Nie, Ji-Rong Wen, Bo Zhang, and Wei-Ying Ma. 2005. 2d conditional random fields for web information extraction. In <i>Proceedings of ICML, </i>pages 1044-1051.</p><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">523</doubt></references></body></article>