<?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="23"/><title>Utilizing Extra-Sentential Context for Parsing</title><pubinfo>Proceedings of the 2010 Conference on Empirical Methods in Natural Language Processing,pages 23-33, MIT, Massachusetts, USA, 9-11 October 2010. ©2010 Association for Computational Linguistics</pubinfo><author surname="Cheung" givenname="Jackie Chi Kit"><org  name="University of Toronto" country="Canada" city="Toronto"/></author><author surname="Penn" givenname="Gerald"><org  name="University of Toronto" country="Canada" city="Toronto"/></author></firstpageheader><frontmatter><p><b>Utilizing Extra-sentential Context for Parsing</b></p><p><b>Jackie Chi Kit Cheung and Gerald Penn</b></p><p>Department of Computer Science</p><p>University of Toronto Toronto, ON, M5S 3G4, Canada {jcheung,gpenn}@cs.toronto.edu</p></frontmatter><abstract>Syntactic consistency is the preference to reuse a syntactic construction shortly after its appearance in a discourse. We present an anal­ysis of the WSJ portion of the Penn Tree-bank, and show that syntactic consistency is pervasive across productions with various left-hand side nonterminals. Then, we implement a reranking constituent parser that makes use of extra-sentential context in its feature set. Using a linear-chain conditional random field, we improve parsing accuracy over the gen­erative baseline parser on the Penn Treebank WSJ corpus, rivalling a similar model that does not make use of context. We show that the context-aware and the context-ignorant rerankers perform well on different subsets of the evaluation data, suggesting a combined ap­proach would provide further improvement. We also compare parses made by models, and suggest that context can be useful for parsing by capturing structural dependencies between sentences as opposed to lexically governed de­pendencies. </abstract></header><body><section number="1" title="Introduction"><p>Recent corpus linguistics work has produced ev­idence of syntactic consistency, the preference to reuse a syntactic construction shortly after its ap­pearance in a discourse (Gries, 2005; Dubey et al., 2005; Reitter, 2008). In addition, experimental stud­ies have confirmed the existence of syntactic prim­ing, the psycholinguistic phenomenon of syntactic consistency<footnote anchor="1"/>. Both types of studies, however, have</p><p>'Whether or not corpus-based studies of consistency have any bearing on syntactic priming as a reality in the human mind</p><p>limited the constructions that are examined to partic­ular syntactic constructions and alternations. For in­stance, Bock (1986) and Gries (2005) examine spe­cific constructions such as the passive voice, dative alternation and particle placement in phrasal verbs, and Dubey et al. (2005) deal with the internal struc­ture of noun phrases. In this work, we extend these results and present an analysis of the distribution of all syntactic productions in the Penn Treebank WSJ corpus. We provide evidence that syntactic consis­tency is a widespread phenomenon across produc­tions of various types of <i>LHS </i>nonterminals, includ­ing all of the commonly occurring ones.</p><p>Despite this growing evidence that the probability of syntactic constructions is not independent of the extra-sentential context, current high-performance statistical parsers (e.g. (Petrov and Klein, 2007; Mc-Closky et al., 2006; Finkel et al., 2008)) rely solely on intra-sentential features, considering the partic­ular grammatical constructions and lexical items within the sentence being parsed. We address this by implementing a reranking parser which takes ad­vantage of features based on the context surrounding the sentence. The reranker outperforms the genera­tive baseline parser, and rivals a similar model that does not make use of context. We show that the context-aware and the context-ignorant models per­form well on different subsets of the evaluation data, suggesting a feature set that combines the two mod­els would provide further improvement. Analysis of the rerankings made provides cases where contex­tual information has clearly improved parsing per­is a subject of debate. See (Pickering and Branigan, 1999) and (Gries, 2005) for opposing viewpoints.</p><page local="2" global="24"/><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">p</doubt><p>prior denominator prior numerator pos_adapt denominator pos_adapt numerator</p><p>Figure 1 : Visual representation of calculation of prior and positive adaptation probabilities. <b>t </b>represents the pres­ence of a construction in the target set. <b>p </b>represents the presence of the construction in the prime set.</p><doubt alpha="20.0" length="5" tooSmall="True" monospace="0.0">K 0.6</doubt><doubt alpha="0.0" length="5" tooSmall="False" monospace="0.0">•20.5</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">c</doubt><doubt alpha="50.0" length="2" tooSmall="True" monospace="0.0">s-</doubt><doubt alpha="0.0" length="4" tooSmall="True" monospace="0.0">&amp;0.4</doubt><doubt alpha="50.0" length="2" tooSmall="False" monospace="0.0">&lt;u</doubt><doubt alpha="25.0" length="4" tooSmall="False" monospace="0.0">ö0.3</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">o</doubt><doubt alpha="20.0" length="5" tooSmall="True" monospace="0.0">g 0.2</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">c &amp;</doubt><doubt alpha="40.0" length="5" tooSmall="True" monospace="0.0">nS0.1</doubt><p>1 23456789 10 <i>less frequent &lt;</i>— Production-type deciles —<i>ymore frequent</i></p><p>Figure 2: Production-types (singletons removed) catego­rized into deciles by frequency and the proportion of the production-types in that bin that is consistent to a signifi­cant degree.</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">t</doubt><p>formance, indicating the potential of extra-sentential contextual information to aid parsing, especially for structural dependencies between sentences, such as parallelism effects.</p></section><section number="2" title="Syntactic Consistency in the Penn"><p><b>Treebank WSJ</b></p><p>Syntactic consistency has been examined by Dubey et al. (2005) for several English corpora, including the WSJ, Brown, and Switchboard corpora. They have provided evidence that syntactic consistency exists not only within coordinate structures, but also in a variety of other contexts, such as within sen­tences, between sentences, within documents, and between speaker turns in the Switchboard corpus. However, their analysis rests on a selected number of constructions concerning the internal structure of noun phrases. We extend their result here to arbi­trary syntactic productions.</p><p>There have also been studies into syntactic con­sistency that consider all syntactic productions in dialogue corpora (Reitter, 2008; Buch and Pietsch, 2010). These studies find an inverse correlation be­tween the probability of the appearance of a syntactic structure and the distance since its last occur­rence, which indicates syntactic consistency. These studies, however, do not provide consistency results on subsets of production-types, such as by produc­tion LHS as our study does, so the implications that can be drawn from them for improving parsing are less apparent.</p><p>We adopt the measure used by Dubey et al. (2005) to quantify syntactic consistency, <i>adaptation prob­ability. </i>This measure originates in work on lexical priming (Church, 2000), and quantifies the probabil­ity of a target word or construction w appearing in a "primed" context. Specifically, four frequencies are calculated, based on whether the target construction appears in the previous context (the prime set), and whether the construction appears after this context (the target set):</p><p># of times <i>w </i>in prime set only # of times <i>w </i>in target set only # of times <i>w </i>in neither set # of times <i>w </i>in both sets</p><doubt alpha="80.0" length="5" tooSmall="False" monospace="0.0">fpMw)</doubt><p>We also define N to be the sum of the four fre-<page local="3" global="25"/></p><doubt alpha="44.4" length="9" tooSmall="False" monospace="0.0">f-P,-t{w)</doubt><doubt alpha="57.1" length="7" tooSmall="False" monospace="0.0">fP,t{w)</doubt><p>Table 1 : Weighted average by production frequency among non-singleton production-types of prior and positive adap­tation probabilities, and the ratio between them. The columns on the right show the number of production-types for which the positive adaptation probability is significantly greater than, not different from, or less than the prior probability. We exclude LHSs with a weighted average prior of less than 0.005, due to the small sample size.</p><p>quencies. Then, we define the <i>prior </i>and the <i>positive adaptation </i>probability of a construction as follows (See also Figure 1):</p><doubt alpha="61.9" length="21" tooSmall="False" monospace="0.0">prior(w)=fp,t{w)+NMW)</doubt><doubt alpha="45.8" length="24" tooSmall="False" monospace="0.0">poS-adapt(W)=—-;-r---;-r</doubt><p><i>fv</i><i>Àw) </i><i>+ </i><i>fv</i><i>Mw)</i></p><p>A positive adaptation probability that is greater than the prior probability would be interpreted as evidence for syntactic consistency for that construc­tion. We conduct %<footnote anchor="2"/> tests for statistical signif­icance testing. We analyze the Penn Treebank WSJ corpus according this schema for all produc­tions that occur in sections 2 to 22. These are the standard training and development sets for train­ing parsers. We did not analyze section 23 in or­der not to use its characteristics in designing our reranking parser so that we can use this section as our evaluation test set. Our analysis focuses on the consistency of rules between sentences, so we take the previous sentence within the same article as the prime set, and the current sentence as the target set in calculating the probabilities given above. The raw data from which we produced our analysis are available at http : //www. cs . toronto. edu/</p><p>~j cheung/wsj_parallelism_data.txt.</p><p>We first present results for consistency in all the production-types<footnote anchor="2"/>, grouped by the <i>LHS </i>of the pro­duction. Table 1 shows the weighted average prior and positive adaptation probabilities for productions by <i>LHS, </i>where the weighting is done by the num­ber of occurrence of that production. Production-types that only occur once are removed. It also shows the number of production-types in which the positive adaptation probability is statistically signif­icantly greater than, not significantly different from, and significantly lower than the prior probability.</p><p>Quite remarkably, very few production-types are significantly less likely to reoccur compared to the prior probability. Also note the wide variety of LHSs for which there is a large number of production-types that are consistent to a significant degree. While a large number of production-types appears not to be significantly more likely to occur in a primed context, this is due to the large number of production-types which only appear a few times. Frequently occurring production-types mostly ex­hibit syntactic consistency.</p><p>We show this in Figure 2, in which we put non-singleton production-types into ten bins by fre<b>Ten most frequent production-types</b><page local="4" global="26"/></p><footnote label="2">That is, all occurrences of a production with a particular LHS and RHS.</footnote><table class="main" frame="box" rules="all" border="0" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>LHS</i></p></td><td class="cell"><p><i>prior</i></p></td><td class="cell"><p><i>pos-üdapt</i></p></td><td class="cell"><p>ratio</p></td><td class="cell"><p><i>+ &gt; prior </i>sig.</p></td><td class="cell"><p>insig.</p></td><td class="cell"><p><i>+ &lt; prior </i>sig.</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>ADJP</p></td><td class="cell"><p>0.03</p></td><td class="cell"><p>0.05</p></td><td class="cell"><p>1.96</p></td><td class="cell"><p>26</p></td><td class="cell"><p>251</p></td><td class="cell"><p>0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>ADVP</p></td><td class="cell"><p>0.21</p></td><td class="cell"><p>0.24</p></td><td class="cell"><p>1.15</p></td><td class="cell"><p>26</p></td><td class="cell"><p>122</p></td><td class="cell"><p>0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NP</p></td><td class="cell"><p>0.17</p></td><td class="cell"><p>0.22</p></td><td class="cell"><p>1.27</p></td><td class="cell"><p>281</p></td><td class="cell"><p>2284</p></td><td class="cell"><p>0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>PP</p></td><td class="cell"><p>0.56</p></td><td class="cell"><p>0.58</p></td><td class="cell"><p>1.04</p></td><td class="cell"><p>32</p></td><td class="cell"><p>125</p></td><td class="cell"><p>0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>PRN</p></td><td class="cell"><p>0.01</p></td><td class="cell"><p>0.03</p></td><td class="cell"><p>4.60</p></td><td class="cell"><p>12</p></td><td class="cell"><p>82</p></td><td class="cell"><p>0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>PRT</p></td><td class="cell"><p>0.06</p></td><td class="cell"><p>0.08</p></td><td class="cell"><p>1.40</p></td><td class="cell"><p>3</p></td><td class="cell"><p>3</p></td><td class="cell"><p>0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>QP</p></td><td class="cell"><p>0.03</p></td><td class="cell"><p>0.18</p></td><td class="cell"><p>5.41</p></td><td class="cell"><p>24</p></td><td class="cell"><p>147</p></td><td class="cell"><p>0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S</p></td><td class="cell"><p>0.30</p></td><td class="cell"><p>0.34</p></td><td class="cell"><p>1.13</p></td><td class="cell"><p>42</p></td><td class="cell"><p>689</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>SBAR</p></td><td class="cell"><p>0.15</p></td><td class="cell"><p>0.20</p></td><td class="cell"><p>1.31</p></td><td class="cell"><p>13</p></td><td class="cell"><p>68</p></td><td class="cell"><p>0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>SINV</p></td><td class="cell"><p>0.01</p></td><td class="cell"><p>0.01</p></td><td class="cell"><p>1.00</p></td><td class="cell"><p>3</p></td><td class="cell"><p>77</p></td><td class="cell"><p>0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>VP</p></td><td class="cell"><p>0.08</p></td><td class="cell"><p>0.12</p></td><td class="cell"><p>1.56</p></td><td class="cell"><p>148</p></td><td class="cell"><p>1459</p></td><td class="cell"><p>0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>WHADVP</p></td><td class="cell"><p>0.04</p></td><td class="cell"><p>0.08</p></td><td class="cell"><p>1.84</p></td><td class="cell"><p>2</p></td><td class="cell"><p>8</p></td><td class="cell"><p>0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>WHNP</p></td><td class="cell"><p>0.07</p></td><td class="cell"><p>0.10</p></td><td class="cell"><p>1.39</p></td><td class="cell"><p>3</p></td><td class="cell"><p>47</p></td><td class="cell"><p>0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>WHPP</p></td><td class="cell"><p>0.01</p></td><td class="cell"><p>0.02</p></td><td class="cell"><p>2.65</p></td><td class="cell"><p>1</p></td><td class="cell"><p>1</p></td><td class="cell"><p>0</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>Table 2: Some instances of consistency effects of productions. All productions' <i>pos_adapt </i>probability is significantly greater than its <i>prior </i>probability at <i>p &lt; </i>10-6.</p><p>quency and calculated the proportion ofproduction-types in that bin for which the positive adaptation probability is significantly greater than the prior. It is clear that the most frequently occurring production-types are also the ones most likely to exhibit evi­dence of syntactic consistency.</p><p>Table 2 shows the breakdown of the prior and positive adaptation calculation components for the ten most frequent production-types and the ten most consistent (by the ratio <i>pos-adapt </i>/ <i>prior) </i>produc­tions among the top decile ofproduction-types. Note that all of these production-types are consistent to a statistically significant degree. Interestingly, many of the most consistent production-types have NP as the <i>LHS, </i>but overall, productions with many differ­ent <i>LHS </i>parents exhibit consistency.</p></section><section number="3" title="A Context-Aware Reranker"><p>Having established evidence for widespread syntac­tic consistency in the WSJ corpus, we now investi­gate incorporating extra-sentential context into a sta­tistical parser. The first decision to make is whether to incorporate the context into a generative or a dis­criminative parsing model.</p><p>Employing a generative model would allow us to train the parser in one step, and one such parser which incorporates the previous context has been implemented by Dubey et al. (2006). They imple­ment a PCFG, learning the production probabilities by a variant of standard PCFG-MLE probability es­timation that conditions on whether a rule has re­cently occurred in the context or not:</p><doubt alpha="66.7" length="33" tooSmall="False" monospace="0.0">vfnuQiTUQ v■    \c(LHS—RHS,Prime)</doubt><doubt alpha="52.2" length="23" tooSmall="False" monospace="0.0">P (RHS\LHS,Prime)=-,---</doubt><p><i>c(LHS, Prime)</i></p><p><i>LHS </i>and <i>RHS </i>represent the left-hand side and right-hand side of a production, respectively.<page local="5" global="27"/> <i>Prime </i>is a binary variable which is True if and only if the current production has occurred in the prime set (the previous sentence). <i>c </i>represents the frequency count.</p><table class="main" frame="box" rules="all" border="0" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>production</p></td><td class="cell"><p><i>f</i><i>-p,t</i></p></td><td class="cell"><p><i>fp,t</i></p></td><td class="cell"><p><i>fp,-t</i></p></td><td class="cell"><p><i>prior</i></p></td><td class="cell"><p><i>pos-adapt</i></p></td><td class="cell"><p>ratio</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>PP — IN NP</p></td><td class="cell"><p></p></td><td class="cell"><p>5624</p></td><td class="cell"><p>26224</p></td><td class="cell"><p>5793</p></td><td class="cell"><p>0.80</p></td><td class="cell"><p>0.82</p></td><td class="cell"><p>1.02</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NP — NP PP</p></td><td class="cell"><p></p></td><td class="cell"><p>9033</p></td><td class="cell"><p>12451</p></td><td class="cell"><p>9388</p></td><td class="cell"><p>0.54</p></td><td class="cell"><p>0.57</p></td><td class="cell"><p>1.05</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NP - DT NN</p></td><td class="cell"><p></p></td><td class="cell"><p>9198</p></td><td class="cell"><p>10585</p></td><td class="cell"><p>9172</p></td><td class="cell"><p>0.50</p></td><td class="cell"><p>0.54</p></td><td class="cell"><p>1.07</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S - NP VP</p></td><td class="cell"><p></p></td><td class="cell"><p>8745</p></td><td class="cell"><p>9897</p></td><td class="cell"><p>9033</p></td><td class="cell"><p>0.47</p></td><td class="cell"><p>0.52</p></td><td class="cell"><p>1.11</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S - NP VP .</p></td><td class="cell"><p></p></td><td class="cell"><p>8576</p></td><td class="cell"><p>8501</p></td><td class="cell"><p>8888</p></td><td class="cell"><p>0.43</p></td><td class="cell"><p>0.49</p></td><td class="cell"><p>1.13</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>S - VP</p></td><td class="cell"><p></p></td><td class="cell"><p>8717</p></td><td class="cell"><p>7867</p></td><td class="cell"><p>9042</p></td><td class="cell"><p>0.42</p></td><td class="cell"><p>0.47</p></td><td class="cell"><p>1.11</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NP — PRP</p></td><td class="cell"><p></p></td><td class="cell"><p>7208</p></td><td class="cell"><p>5309</p></td><td class="cell"><p>7285</p></td><td class="cell"><p>0.32</p></td><td class="cell"><p>0.42</p></td><td class="cell"><p>1.33</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>ADVP — RB</p></td><td class="cell"><p></p></td><td class="cell"><p>7986</p></td><td class="cell"><p>3949</p></td><td class="cell"><p>7905</p></td><td class="cell"><p>0.30</p></td><td class="cell"><p>0.33</p></td><td class="cell"><p>1.10</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NP — NN</p></td><td class="cell"><p></p></td><td class="cell"><p>7630</p></td><td class="cell"><p>3390</p></td><td class="cell"><p>7568</p></td><td class="cell"><p>0.28</p></td><td class="cell"><p>0.31</p></td><td class="cell"><p>1.11</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>VP — TO VP</p></td><td class="cell"><p></p></td><td class="cell"><p>7039</p></td><td class="cell"><p>3552</p></td><td class="cell"><p>7250</p></td><td class="cell"><p>0.27</p></td><td class="cell"><p>0.33</p></td><td class="cell"><p>1.23</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>Ten most consistent among 10% most frequent production-types</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>production</p></td><td class="cell"><p><i>f-p,t</i></p></td><td class="cell"><p><i>fp,t</i></p></td><td class="cell"><p><i>fp,-t</i></p></td><td class="cell"><p><i>prior</i></p></td><td class="cell"><p><i>pos-adapt</i></p></td><td class="cell"><p>ratio</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>QP — # CD CD</p></td><td class="cell"><p></p></td><td class="cell"><p>51</p></td><td class="cell"><p>18</p></td><td class="cell"><p>45</p></td><td class="cell"><p>0.00</p></td><td class="cell"><p>0.29</p></td><td class="cell"><p>163.85</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NP — JJ NNPS</p></td><td class="cell"><p></p></td><td class="cell"><p>52</p></td><td class="cell"><p>7</p></td><td class="cell"><p>53</p></td><td class="cell"><p>0.00</p></td><td class="cell"><p>0.12</p></td><td class="cell"><p>78.25</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NP — NP , ADVP</p></td><td class="cell"><p></p></td><td class="cell"><p>109</p></td><td class="cell"><p>24</p></td><td class="cell"><p>99</p></td><td class="cell"><p>0.00</p></td><td class="cell"><p>0.20</p></td><td class="cell"><p>58.05</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NP — DT JJ CD NN</p></td><td class="cell"><p></p></td><td class="cell"><p>63</p></td><td class="cell"><p>6</p></td><td class="cell"><p>67</p></td><td class="cell"><p>0.00</p></td><td class="cell"><p>0.08</p></td><td class="cell"><p>47.14</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>PP — IN NP NP</p></td><td class="cell"><p></p></td><td class="cell"><p>83</p></td><td class="cell"><p>10</p></td><td class="cell"><p>87</p></td><td class="cell"><p>0.00</p></td><td class="cell"><p>0.10</p></td><td class="cell"><p>43.86</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>QP — IN $ CD</p></td><td class="cell"><p></p></td><td class="cell"><p>51</p></td><td class="cell"><p>3</p></td><td class="cell"><p>49</p></td><td class="cell"><p>0.00</p></td><td class="cell"><p>0.06</p></td><td class="cell"><p>42.28</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NP — NP : NP .</p></td><td class="cell"><p></p></td><td class="cell"><p>237</p></td><td class="cell"><p>128</p></td><td class="cell"><p>216</p></td><td class="cell"><p>0.01</p></td><td class="cell"><p>0.37</p></td><td class="cell"><p>40.34</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>INTJ — UH</p></td><td class="cell"><p></p></td><td class="cell"><p>59</p></td><td class="cell"><p>4</p></td><td class="cell"><p>60</p></td><td class="cell"><p>0.00</p></td><td class="cell"><p>0.06</p></td><td class="cell"><p>39.26</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>ADVP — IN NP</p></td><td class="cell"><p></p></td><td class="cell"><p>108</p></td><td class="cell"><p>11</p></td><td class="cell"><p>83</p></td><td class="cell"><p>0.00</p></td><td class="cell"><p>0.12</p></td><td class="cell"><p>38.91</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NP — CD CD</p></td><td class="cell"><p></p></td><td class="cell"><p>133</p></td><td class="cell"><p>21</p></td><td class="cell"><p>128</p></td><td class="cell"><p>0.00</p></td><td class="cell"><p>0.14</p></td><td class="cell"><p>36.21</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><p>The drawback of such a system is that it doubles the state space of the model, and hence likely in­creases the amount of data needed to train the parser to a comparable level of performance as a more com­pact model, or would require elaborate smoothing. Dubey et al. (2006) find that this system performs worse than the baseline PCFG-MLE model, drop­ping F1 from 73.3% to 71.6%<footnote anchor="3"/>.</p><p>We instead opt to incorporate the extra-sentential context into a discriminative reranking parser, which naturally allows additional features to be incorpo­rated into the statistical model. Many discriminative models of constituent parsing have been proposed in recent literature. They can be divided into two broad categories-those that rerank the N-best outputs of a generative parser, and those that make all parsing de­cisions using the discriminative model. We choose to implement an N-best reranking parser so that we can utilize state-of-the-art generative parsers to en­sure a good selection of candidate parses to feed into our reranking module. Also, fully discrimina­tive models tend to suffer from efficiency problems, though recent models have started to overcome this problem (Finkel et al., 2008).</p><p>Our approach is similar to N-best reranking parsers such as Charniak and Johnson (2005) and Collins and Koo (2005), which implement a va­riety of features to capture within-sentence lexical and structural dependencies. It is also similar to work which focuses on coordinate noun phrase pars­ing (e.g. (Hogan, 2007; Kübler et al., 2009)) in that we also attempt to exploit syntactic parallelism, but in a between-sentence setting rather than in a within-sentence setting that only considers coordination.</p><p>As evidence of the potential of an N-best rerank-ing approach with respect to extra-sentential con­text, we considered the 50-best parses in the devel­opment set produced by the generative parser, and categorized each into one of nine bins depending on whether this candidate parse exhibits more, less,</p><footnote label="3">A similar model which conditions on whether productions have previously occurred within the same sentence, however, improves F1 to 73.6%.</footnote><p>Table 3: Correlation between rule overlap and F1 com­pared to the generative baseline for the 50-best parses in the development set.</p><p>or the same amount of rule overlap with the previ­ous correct parse than the generative baseline, and whether the candidate parse has a better, worse, or the same F1 measure than the generative baseline (Table 3). We find that a larger percentage of candi­date parses which share more productions with the previous parse are better than the generative base­line parse than for the other categories, and this dif­ference is statistically significant (%<footnote anchor="2"/> test).</p><subsection number="3.1" title="Conditional Random Fields"><p>For our statistical reranker, we implement a linear-chain conditional random field (CRF). CRFs are a very flexible class of graphical models which have been used for various sequence and relational la­belling tasks (Lafferty et al., 2001). They have been used for tree labelling, in XML tree labelling (Jousse et al., 2006) and semantic role labelling tasks (Cohn and Blunsom, 2005). They have also been used for shallow parsing (Sha and Pereira, 2003), and full constituent parsing (Finkel et al., 2008; Tsuruoka et al., 2009). We exploit the flexibility of CRFs by in­corporating features that depend on extra-sentential context.</p><p>In a linear-chain CRF, the conditional probabil­ity of a sequence of labels <b>y </b>= <i>y</i><i>{t=1...T</i>} given a se­quence of observed output <b>x </b>= X{t=1_T} and weight vector <b>0 </b>= <i>0{k=1 </i><i>K}</i><i> </i>is given as follows:</p><doubt alpha="57.1" length="35" tooSmall="False" monospace="0.0">P(y\x)= Zexp(Z^Z^°kfk(Vt-i'Vtix,t))</doubt><doubt alpha="60.0" length="5" tooSmall="False" monospace="0.0">t=i k</doubt><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><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>Overlap</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>less</i></p></td><td class="cell"><p><i>equal</i></p></td><td class="cell"><p><i>more</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>worse F1</p></td><td class="cell"><p>32519</p></td><td class="cell"><p>7224</p></td><td class="cell"><p>17280</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>(81.8%)</p></td><td class="cell"><p>(69.3%)</p></td><td class="cell"><p>(75.4%)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>equal F1</p></td><td class="cell"><p>1023 (2.6%)</p></td><td class="cell"><p>1674 (16.1%)</p></td><td class="cell"><p>540 (2.4%)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>better F1</p></td><td class="cell"><p>6224</p></td><td class="cell"><p>1527</p></td><td class="cell"><p>5106</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>(15.7%)</b></p></td><td class="cell"><p><b>(14.6%)</b></p></td><td class="cell"><p><b>(22.3%)</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></tr></table><page local="6" global="28"/><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">0</doubt><p>where Z is the partition function. The feature func­tions <i>f</i><i>k </i><i>(yt-</i><i> </i><i>1,yt,</i><i> </i><b><i>x</i></b><i>,t)</i><i> </i>can depend on two neighbour­ing parses, the sentences in the sequence, and the position of the sentence in the sequence. Since our feature functions do not depend on the words or the time-step within the sequence, however, we will write <i>f</i><i>k</i><i>(v</i><i>t-i</i><i>,V</i><i>t) </i>from now on.</p><p>We treat each document in the corpus as one CRF sequence, and each sentence as one time-step in the sequence. The label sequence then is the se­quence of parses, and the outputs are the sentences in the document. Since there is a large number of parses possible for each sentence and correspond­ingly many possible states for each label variable, we restrict the possible label state-space by extract­ing the N-best parses from a generative parser, and rerank over the sequences of candidate parses thus provided. We use the generative parser of Petrov and Klein (2007), a state-splitting parser that uses an EM algorithm to find splits in the nonterminal sym­bols to maximize training data likelihood. We use the 20-best parses, with an oracle F1 of 94.96% on section 23.</p><p>To learn the weight vector, we employ a stochastic gradient ascent method on the conditional log like­lihood, which has been shown to perform well for parsing tasks (Finkel et al., 2008). In standard gra­dient ascent, the conditional log likelihood with a L2 regularization term for a Gaussian prior for a train­ing corpus of <i>N </i>sequences is</p><doubt alpha="25.0" length="4" tooSmall="False" monospace="0.0">L(0)</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">N</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">E</doubt><doubt alpha="42.9" length="7" tooSmall="False" monospace="0.0">i=1 t,k</doubt><doubt alpha="50.0" length="10" tooSmall="False" monospace="0.0">; log Z(i)</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">i=1</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">2a2</doubt><p>And the partial derivatives with respect to the weights are</p><doubt alpha="100.0" length="3" tooSmall="False" monospace="0.0">dLn</doubt><doubt alpha="52.6" length="19" tooSmall="False" monospace="0.0">of=E£fk(y{t-1,yt(i)</doubt><doubt alpha="40.0" length="5" tooSmall="False" monospace="0.0">i=1 t</doubt><doubt alpha="47.4" length="19" tooSmall="False" monospace="0.0">fk(v,v')P(V,V\x(i))</doubt><doubt alpha="50.0" length="8" tooSmall="False" monospace="0.0">i=1ty,y'</doubt><doubt alpha="50.0" length="2" tooSmall="False" monospace="0.0">a2</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">k</doubt><p>The first term is the feature counts in the train­ing data, and the second term is the feature expecta­tions according to the current weight vector. The third term corresponds to the penalty to non-zero weight values imposed by regularization. The prob­abilities in the second term can be efficiently calcu­lated by the CRF-version of the forward-backward algorithm.</p><p>In standard gradient ascent, we update the weight vector after iterating through the whole training cor­pus. Because this is computationally expensive, we instead use stochastic gradient ascent, which ap­proximates the true gradient by the gradient calcu­lated from a single sample from the training corpus. We thus do not have to sum over the training set in the above expressions. We also employ a learning rate multiplier on the gradient. Thus, the weight up­date for the ith encountered training sequence during training is + <i>ai</i><i>VL </i><i>stochastic(0)</i><i>T </i>X <i>N</i></p><doubt alpha="75.0" length="4" tooSmall="False" monospace="0.0">ai=n</doubt><doubt alpha="66.7" length="6" tooSmall="False" monospace="0.0">tx N+i</doubt><p>The learning rate function is modelled on the one used by Finkel et al. (2008). It is designed such that <i>a</i><i>i </i>is halved after <i>T </i>passes through the training set.</p><p>We train the model by iterating through the train­ing set in a randomly permuted order, updating the weight vector after each sequence. The parameters <i>n, </i><i>t</i>, and <i>a </i>are tuned to the development set. The fi­nal settings we use are <i>n = </i>0.08, <i>t </i>= 5, and <i>a = </i>50. We use sections 2-21 of the Penn Treebank WSJ for training, 22 for development, and 23 for testing. We conduct 20-fold cross validation to generate the N-best parses for the training set, as is standard for N-best rerankers.</p><p>To rerank, we do inference with the linear-chain CRF for the most likely sequence of parses using the Viterbi algorithm.</p></subsection><subsection number="3.2" title="Feature Functions"><p>We experiment with various feature functions that depend on the syntactic and lexical parallelism be­tween <i>yt-1 </i>and yt. We use the occurrence of a rule in <i>yt </i>that occurred in <i>yt-1 </i>as a feature. Based on the results of the corpus analysis, the first representation<page local="7" global="29"/></p><doubt alpha="41.8" length="55" tooSmall="False" monospace="0.0">(S, edge, NNS, -), (S, NNS, VBD, -), (S, VBD, edge, +),</doubt><p>(NP, edge, NNS, -), (NP, NNS, edge, -), (VP, edge, VBD, Table 4: Development set (section 22) results of various +X (VP +) models that we trained. Italicized are the models we use</p><p>for the test set.</p><figure caption="Figure 3: Example of features extracted from a parse se­quence specified down to the POS level."></figure><p>we tried was to simply enumerate the (non-lexical) productions in <i>V</i><i>t </i>along with whether that production is found in yt-1. However, we found that our most successful feature function is to consider overlaps in partial structures of productions.</p><p>Specifically, we decompose a tree into all of the nonlexical vertically and horizontally markovized subtrees. Each of the subtrees in <i>V</i><i>t </i>marked by whether that same subtree occurs in the previous tree is a feature. The simple production represen­tation corresponds to a vertical markovization of 1 and a horizontal markovization of infinite. We found that a vertical markovization of 1 and a horizontal markovization of 2 produced the best results on our data. We will call this model the phrasal model.</p><p>This schema so far only considers local substruc­tures of parse trees, without being informed by the lexical information found in the leaves of the tree. We try another schema which considers the POS tag sequences found in each subtree. A feature then is the node label of the root of the subtree with the POS tag sequence it dominates, again decomposed into sequences of length 2 by markovization. We will call this model the lexical model.</p><p>To extract features from this sequence, we con­sider the substructures in the second parse, and mark whether they are found in the first parse as well. We add edge markers to mark the beginning and end of constituents. See Figure 3 for an example of features extracted by the two models.</p><p>We will consider various ways of combining the two schemata above in the next section. In addition, we also add a feature corresponding to the scaled log probability of a parse tree derived from the genera­tive parsing baseline. Scaling is necessary because of the large differences in the magnitude of the log probability for different sentences. The scaling for­mula that we found to work best is to scale the max­imum log probability among the N-best candidate parses to be 1.0 and the minimum to be 0.0.</p></subsection><subsection number="3.3" title="Results"><p>We train the two models which make use of extra-sentential context described in the previous section, and use the model to parse the development and test set. We also trained a model which combines both sets of features, but we found that we get better performance by training the two models separately, then averaging the models by computing the respec­tive averages of their features' weights. Thus, we use the model-averaged version of the models that consider context in the test set experiments. The generative parser forms the first baseline method to which we compare our results. We also train a reranker which makes use ofthe same features as we described above, but without marking whether each substructure occurs in the previous sentence. This is thus a reranking method which does not make use of the previous context. Again, we tried model aver­aging, but this produces less accurate parses on the<page local="8" global="30"/></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>(1)  (S (NP (DT NN)) (VP (VBD)))</p></td><td class="cell"><p><b>Method</b></p></td><td class="cell"><p>F1 (%)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Model-averaged</i></p></td><td class="cell"><p>90.47</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>(2)  (S (NP (NNS)) (VP (VBD)))</p></td><td class="cell"><p><i>Combined, jointly trained —Context</i></p></td><td class="cell"><p>90.33</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Phrasal features:</p></td><td class="cell"><p>Combined, jointly trained</p></td><td class="cell"><p>90.31</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Template: (parent, child</i><i>L, </i><i>child</i><i>n, </i><i>repeated)</i></p></td><td class="cell"><p>Model-averaged —Context</p></td><td class="cell"><p>90.22</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>(S, edge, NP, +), (S, NP, VP, +), (S, VP, edge, +), (NP, edge,</p></td><td class="cell"><p>lexical —Context</p></td><td class="cell"><p>90.21</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>NNS, -), (NP, NNS, edge, -), (VP, edge, VBD, +), (VP, VBD,</p></td><td class="cell"><p>lexical</p></td><td class="cell"><p>90.20</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>edge, +)</p></td><td class="cell"><p>phrasal</p></td><td class="cell"><p>90.12</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Lexical features:</p></td><td class="cell"><p>phrasal —Context</p></td><td class="cell"><p>89.74</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Template: (parent, </i><i>POSl </i><i>, </i><i>POSr, </i><i>repeated)</i></p></td><td class="cell"><p><i>Generative</i></p></td><td class="cell"><p>89.70</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>Table 5 : Parsing results on the development set (section 22) of the Penn Treebank WSJ (%, except for CB). <i>Generative </i>is the generative baseline of Petrov and Klein (2007), <i>--Context </i>is the best performing reranking model using previous context (model-averaged phrasal and lexical), <i>—Context </i>is the best performing reranking model not using previous context (jointly trained phrasal and lexical).</p><p>development set, so we use the jointly trained model on the test set. We will refer to this model as the context-ignorant or —Context model, as opposed to the previous context-aware or -Context model. The results of these experiments on the development set are shown in Table 4.</p><p>PARSEVAL results<footnote anchor="4"/> on the development and test set are presented in Tables 5 and 6. We see that the reranked models outperform the generative base­line model in terms of F1, and that the reranked model that uses extra-sentential context outperforms the version that does not use extra-sentential context in the development set, but not in the test set. Us­ing Bikel's randomized parsing evaluation compara­tor<footnote anchor="5"/>, we find that both reranking models outperform the baseline generative model to statistical signifi­cance for recall and precision. The context-ignorant reranker outperforms the context-aware reranker on recall <i>(p</i><i> </i><i>&lt;</i><i> </i>0.01), but not on precision <i>(p</i><i> </i><i>=</i><i> </i>0.42). However, the context-aware model has the highest exact match scores in both the development and the test set.</p><p>The F1 result suggests two possibilities-either the context-aware model captures the same information as the context-ignorant model, but less effectively, or the two models capture different information about the parses. Two pieces of evidence point to the latter possibility. First, if the context-aware model were truly inferior, then we would expect it to out­perform the context-ignorant model on almost no sentences. Otherwise, we would expect them to do well on different sentences. Table 7 shows that the context-aware model outperforms the context-ignorant model on nearly as many trees in the test section as the reverse. Second, if we hypotheti-cally had an oracle that could determine whether the context-ignorant or the context-aware model would be more accurate on a sentence and ifthe two models were complementary to each other, we would expect to achieve a gain in F1 over the generative baseline which is roughly the sum of the gain achieved by each model separately. This is indeed the case, as on sections 22 and 23 respectively, roughly twice the improvement that the individual models obtain.</p><footnote label="4">This evaluation ignores punctuation and corresponds to the new. prm parameter setting on evalb.</footnote><footnote label="5">http://www.cis.upenn.edu/~dbikel/ software.html</footnote><doubt alpha="46.6" length="73" tooSmall="False" monospace="0.0">Sec.—Context better   same   -Context better~^22157135718623I258_1904_254</doubt><table caption="Table 7: Context-aware vs. context-ignorant reranking results, by sentential F1."></table><doubt alpha="53.2" length="47" tooSmall="False" monospace="0.0">we are able to achieve F1s of 91.23% and 90.89%</doubt><p>To put our results in perspective, we now compare the magnitude ofthe improvementinF1 ourcontext-<page local="9" global="31"/></p><table class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>LP</p></td><td class="cell"><p>LR</p></td><td class="cell"><p>F1</p></td><td class="cell"><p>Exact</p></td><td class="cell"><p><i>CB</i></p></td><td class="cell"><p>0CB</p></td><td class="cell"><p>LP</p></td><td class="cell"><p>LR</p></td><td class="cell"><p>F1</p></td><td class="cell"><p>Exact</p></td><td class="cell"><p>CB</p></td><td class="cell"><p>0CB</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>development set - length &lt; 40</p></td><td class="cell"><p>development set - all sentences</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Generative</i></p></td><td class="cell"><p>90.33</p></td><td class="cell"><p>90.20</p></td><td class="cell"><p>90.27</p></td><td class="cell"><p>39.92</p></td><td class="cell"><p>0.68</p></td><td class="cell"><p>71.99</p></td><td class="cell"><p>89.64</p></td><td class="cell"><p>89.75</p></td><td class="cell"><p>89.70</p></td><td class="cell"><p>37.76</p></td><td class="cell"><p>0.82</p></td><td class="cell"><p>68.65</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>-—Context</i></p></td><td class="cell"><p><b>91.25</b></p></td><td class="cell"><p>90.71</p></td><td class="cell"><p><b>90.98</b></p></td><td class="cell"><p><b>41.25</b></p></td><td class="cell"><p><b>0.61</b></p></td><td class="cell"><p><b>73.45</b></p></td><td class="cell"><p><b>90.62</b></p></td><td class="cell"><p>90.33</p></td><td class="cell"><p><b>90.47</b></p></td><td class="cell"><p><b>38.88</b></p></td><td class="cell"><p><b>0.74</b></p></td><td class="cell"><p><b>70.47</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>—Context</i></p></td><td class="cell"><p>90.85</p></td><td class="cell"><p><b>90.78</b></p></td><td class="cell"><p>90.82</p></td><td class="cell"><p>40.62</p></td><td class="cell"><p>0.62</p></td><td class="cell"><p>73.00</p></td><td class="cell"><p>90.28</p></td><td class="cell"><p><b>90.38</b></p></td><td class="cell"><p>90.22</p></td><td class="cell"><p>38.24</p></td><td class="cell"><p><b>0.74</b></p></td><td class="cell"><p>70.00</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><table caption="Table 6: Parsing results on the test set (section 23) of the Penn Treebank WSJ (%, except forCB)" class="main" frame="box" rules="all" border="1" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><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>LP</p></td><td class="cell"><p>LR</p></td><td class="cell"><p>F1</p></td><td class="cell"><p>Exact</p></td><td class="cell"><p>CB</p></td><td class="cell"><p>0CB</p></td><td class="cell"><p>LP</p></td><td class="cell"><p>LR</p></td><td class="cell"><p>F1</p></td><td class="cell"><p>Exact</p></td><td class="cell"><p>CB</p></td><td class="cell"><p>0CB</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>test set - length &lt; 40</p></td><td class="cell"><p>test set - all sentences</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Generative</i></p></td><td class="cell"><p>90.04</p></td><td class="cell"><p>89.84</p></td><td class="cell"><p>89.94</p></td><td class="cell"><p>38.31</p></td><td class="cell"><p>0.80</p></td><td class="cell"><p>68.33</p></td><td class="cell"><p>89.60</p></td><td class="cell"><p>89.35</p></td><td class="cell"><p>89.47</p></td><td class="cell"><p>36.05</p></td><td class="cell"><p>0.94</p></td><td class="cell"><p>65.81</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>- Context</i></p></td><td class="cell"><p>90.63</p></td><td class="cell"><p>90.11</p></td><td class="cell"><p>90.37</p></td><td class="cell"><p><b>39.02</b></p></td><td class="cell"><p>0.73</p></td><td class="cell"><p>69.40</p></td><td class="cell"><p>90.17</p></td><td class="cell"><p>89.64</p></td><td class="cell"><p>89.91</p></td><td class="cell"><p><b>36.84</b></p></td><td class="cell"><p>0.87</p></td><td class="cell"><p>67.09</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>— <i>Context</i></p></td><td class="cell"><p><b>90.64</b></p></td><td class="cell"><p><b>90.43</b></p></td><td class="cell"><p><b>90.54</b></p></td><td class="cell"><p>38.62</p></td><td class="cell"><p><b>0.72</b></p></td><td class="cell"><p><b>69.84</b></p></td><td class="cell"><p><b>90.20</b></p></td><td class="cell"><p><b>89.97</b></p></td><td class="cell"><p><b>90.08</b></p></td><td class="cell"><p>36.47</p></td><td class="cell"><p><b>0.85</b></p></td><td class="cell"><p><b>67.55</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><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><p>Table 8: A comparison of parsers specialized to exploit intra- or extra-sentential syntactic parallelism on section 23 in terms of the generative baseline they compare them­selves against, the best F1 their non-baseline models achieve, and the absolute and relative improvements.</p><p>aware model achieves over the generative baseline to that of other systems specialized to exploit intra-or extra-sentential parallelism. We achieve a greater improvement despite the fact that our generative baseline provides a higher level of performance, and is presumably thus more difficult to improve upon (Table 8). These systems do not compare themselves against a reranked model that does not use paral­lelism as we do in this work.</p><p>During inference, the Viterbi algorithm recov­ers the most probable sequence of parses, and this means that we are relying on the generative parser to provide the context (i.e. the previous parses) when analyzing any given sentence. We do another type of oracle analysis in which we provide the parser with the correct, manually annotated parse tree of the previous sentence when extracting features for the current sentence during training and parsing. This "perfect context" model achieves F1s of 90.42% and 90.00% on sections 22 and 23 respectively, which is comparable to the best results of our reranking mod­els. This indicates that the lack of perfect contextual information is not a major obstacle to further im­proving parsing performance.</p></subsection><subsection number="3.4" title="Analysis"><p>We now analyze several specific cases in the devel­opment set in which the reranker makes correct use of contextual information. They concretely illustrate how context can improve parsing performance, and confirm our initial intuition that extra-sentential con­text can be useful for parsing. The sentence in (3) and (4) is one such case.</p><p>(3)  <i>Generative/Context-ignorant: </i>(S (S A BMA spokesman said "runaway medical costs" have made health insurance "a significant challenge) ," and (S margins also have been pinched ... ) (. .))</p><p>(4) <i>Context-aware: </i>(S (NP A BMA spokesman) (VP said "runaway medical costs" have made health insurance "a significant challenge," and margins also have been pinched ... ) (. .))</p><p>The baseline and the context-ignorant models parse the sentence as a conjunction of two S clauses, misanalyzing the scope of what is said by the BMA spokesman to the first part of the conjunct. By an­alyzing the features and feature weight values ex­tracted from the parse sequence, we determined that the context-aware reranker is able to correct the analysis of the scoping due to a parallelism in the syntactic structure. Specifically, the substructure <i>S — VP. </i>is present in both this sentence and the previous sentence of the reranked sequence, which also contains a reporting verb.</p><doubt alpha="64.0" length="139" tooSmall="False" monospace="0.0">(5) (S (NP BMA Corp., Kansas City, Mo.,) (VP said it's weighing "strategic alternatives" ... and is contacting possible buyers ... ) (. .))</doubt><p>As a second example, consider the following sen­tence.</p><p>(6) <i>Generative/Context-ignorant: </i>To achieve maximum liquidity and minimize price volatility, (NP either all markets) (VP should be open to trading or none).</p><p>(7) <i>Context-aware: </i>To achieve maximum liquidity and minimize price volatility, (CC either) (S (NP all markets) should be open to trading or none).</p><p>The original generative and context-ignorant parses posit that "either all markets" is a noun phrase, which is incorrect. Syntactic parallelism cor­rects this for two reasons. First, the reranker prefers a determiner to start an NP in a consistent context, as both surround sentences also contain this sub­structure. Also, the previous sentence also contains a conjunction CC followed by a S node under a S node, which the reranker prefers.</p><p>While these examples show contextual features to be useful for parsing coordinations, we also found context-awareness to be useful for other types of structural ambiguity such as PP attachment ambi­guity.<page local="10" global="32"/> Notice that the method we employ to cor­rect coordination errors is different from previous approaches which usually rely on lexical or syntac­tic similarity between conjuncts rather than between sentences. Our approach can thus broaden the range of sentences that can be usefully reranked. For ex­ample, there is little similarity between conjuncts to avail of in the second example (Sentences 6 and 7).</p><table class="main" frame="box" rules="all" border="0" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>System</b></p></td><td class="cell"><p><i>Baseline</i></p></td><td class="cell"><p><i>Best</i></p></td><td class="cell"><p><i>Imp. (rel.)</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Dubey et al. (2006)</p></td><td class="cell"><p>73.3</p></td><td class="cell"><p>73.6</p></td><td class="cell"><p>0.3 (1.1%)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Hogan (2007)</p></td><td class="cell"><p>89.4</p></td><td class="cell"><p>89.6</p></td><td class="cell"><p>0.2 (1.9%)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><b>This work</b></p></td><td class="cell"><p><b>89.5</b></p></td><td class="cell"><p><b>89.9</b></p></td><td class="cell"><p><b>0.4 (3.8%)</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></tr></table><p>Based on these analyses, it appears that con­text awareness provides a source of information for parsing which is not available to context-ignorant parsers. We should thus consider integrating both types of features into the reranking parser to build on the advantages of each. Specifically, within-sentence features are most appropriate for lexi­cal dependencies and some structural dependencies. Extra-sentential features, on the other hand, are ap­propriate for capturing the syntactic consistency ef­fects as we have demonstrated in this paper.</p></subsection></section><section number="4" title="Conclusions"><p>In this paper, we have examined evidence for syn­tactic consistency between neighbouring sentences. First, we conducted a corpus analysis of the Penn Treebank WSJ, and shown that parallelism exists between sentences for productions with a variety of <i>LHS </i>types, generalizing previous results for noun phrase structure. Then, we explored a novel source of features for parsing informed by the extra-sentential context. We improved on the parsing ac­curacy over a generative baseline parser, and rival a similar reranking model that does not rely on extra-sentential context. By examining the subsets of the evaluation data on which each model performs best and also individual cases, we argue that con­text allows a type of structural ambiguity resolution not available to parsers which only rely on intra-sentential context.</p></section><section title="Acknowledgments"><p>We would like to thank the anonymous reviewers and Timothy Fowler for their comments. This work is supported in part by the Natural Sciences and En­gineering Research Council of Canada.</p></section><references><p>J.K. Bock. 1986. Syntactic persistence in language pro­duction. <i>Cognitive Psychology, </i>18(3):355-387. A. Buch and C. Pietsch. 2010. Measuring syntactic priming in dialog corpora. In <i>Proceedings of the Con­ference on Linguistic Evidence 2010: Empirical, The­oretical and Computational Perspectives.</i></p><p>E. Charniak and M. Johnson. 2005. Coarse-to-fine n-best parsing and MaxEnt discriminative reranking. In <i>Pro­ceedings of the 43rd ACL, </i>pages 173-180. Association for Computational Linguistics.</p><p>K.W. Church. 2000. Empirical estimates of adaptation: the chance of two Noriegas is closer to p/2 than p<footnote anchor="2"/>. In <i>Proceedings of 18th COLING, </i>pages 180-186. Asso­ciation for Computational Linguistics. T. Cohn and P. Blunsom. 2005. Semantic role labelling with tree conditional random fields. In <i>Ninth Confer­ence on Computational Natural Language Learning, </i>pages 169-172. M. Collins and T. Koo. 2005. Discriminative reranking for natural language parsing. <i>Computational Linguis­tics, </i>31(1):25-70. A. Dubey, P. Sturt, and F. Keller. 2005. Parallelism in coordination as an instance of syntactic priming: Evi­dence from corpus-based modeling. In <i>Proceedings of HLT/EMNLP 2005, </i>pages 827-834. A. Dubey, F. Keller, and P. Sturt. 2006. Integrating syn­tactic priming into an incremental probabilistic parser, with an application to psycholinguistic modeling. In <i>Proceedings ofthe 21st COLING and the 44th ACL, </i>pages 417-424. Association for Computational Lin­guistics.</p><p>J.R. Finkel, A. Kleeman, and C.D. Manning. 2008. Effi­cient, feature-based, conditional random field parsing.</p><p><i>Proceedings ofACL-08: HLT, </i>pages 959-967.</p><p>S.T. Gries.  2005.  Syntactic priming: A corpus-based approach.     <i>Journal of Psycholinguistic Research, </i>34(4):365-399. D. Hogan. 2007. Coordinate noun phrase disambigua­tion in a generative parsing model. In <i>Proceedings of</i> <i>45th ACL, </i>volume 45, pages 680-687.</p><p>F. Jousse, R. Gilleron, I. Tellier, and M. Tommasi. 2006. Conditional random fields for XML trees. In <i>ECML Workshop on Mining and Learning in Graphs.</i></p><p>S. Kubler, W. Maier, E. Hinrichs, and E. Klett. 2009. Parsing coordinations. In <i>Proceedings </i><i>ofthe</i><i> 12th EACL, </i>pages 406-414. Association for Computational Linguistics.</p><p>J. Lafferty, A. McCallum, and F. Pereira. 2001. Con­ditional random fields: Probabilistic models for seg­menting and labeling sequence data. In <i>International Conference on Machine Learning, </i>pages 282-289.</p><page local="11" global="33"/><p>D. McClosky, E. Charniak, and M. Johnson. 2006. Ef­fective self-training for parsing. In <i>Proceedings of HLT-NAACL 2006. </i>S. Petrov and D. Klein. 2007. Improved inference for unlexicalized parsing. In <i>Proceedings ofHLT-NAACL 2007, </i>pages 404-411. Association for Computational Linguistics.</p><p>M.J. Pickering and H.P. Branigan. 1999. Syntactic prim­ing in language production. <i>Trends in Cognitive Sci­ences, </i>3(4):136-141. D. Reitter. 2008. <i>Context Effects in Language Produc­tion: Models ofSyntactic Priming in Dialogue Cor­pora. </i>Ph.D. thesis, University of Edinburgh. F. Sha and F. Pereira. 2003. Shallow parsing with condi­tional random fields. In <i>Proceedings of HLT-NAACL,</i> pages 213-220.</p><p>Y. Tsuruoka, J. Tsujii, and S. Ananiadou. 2009. Fast full parsing by linear-chain conditional random fields. In <i>Proceedings of the 12th EACL, </i>pages 790-798. Asso­ciation for Computational Linguistics.</p></references></body></article>