<?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="151"/><title>Punctuation Normalisation for Cleaner Treebanks and Parsers</title><author surname="Tse" givenname="Daniel"><org  name="University of Sydney" country="Australia" city="Sydney"/></author><author surname="Curran" givenname="James"><org  name="University of Sydney" country="Australia" city="Sydney"/></author></firstpageheader><frontmatter><p><b>Punctuation normalisation for cleaner treebanks and parsers</b></p><p><b>Daniel Tse </b>and <b>James R. Curran</b></p><p>School of Information Technologies University of Sydney NSW 2006, Australia {dtse6695,james}@it.usyd.edu.au</p></frontmatter><abstract>Although punctuation is pervasive in written text, their treatment in parsers and corpora is often second-class. We examine the treatment of commas in CCGbank, a wide-coverage corpus for Com-binatory Categorial Grammar (CCG), re-analysing its comma structures in order to eliminate a class of redundant rules, obtaining a more consistent treebank. We then eliminate these rules from C&amp;C, a wide-coverage statistical CCG parser, obtain­ing a 37% increase in parsing speed on the standard CCGbank test set and a considerable reduction in memory consumed, without af­fecting parser accuracy. </abstract></header><body><section number="1" title="Introduction"><p>Although parsers must all at least accept text con­taining punctuation, there is much variation in how punctuation is treated during training, parsing and evaluation. The work of Nunberg (1990) brought attention to the fact that parsers can often reject oth­erwise ambiguous parses on the basis of punctua­tion, by considering a formal grammar of text units: chunks of text delimited by punctuation tokens.</p><p>In this work, we explore how the treatment of commas, the most common class of punctuation in the Penn Treebank (Marcus et al., 1994), affects their analysis in CCGbank (Hockenmaier and Steed-man, 2007), a 1.2 million word corpus for Combina-tory Categorial Grammar (CCG), generated from a subset of the Penn Treebank. We uncover a system­atic inconsistency in the way CCGbank represents sentences involving commas, and perform a trans­formation of the original corpus which eliminates this source of uninformative variation, resulting in a version of CCGbank which assigns a uniform struc­ture to each of the syntactic roles played by commas in the corpus.</p><p>By removing the superfluous rules induced by this inconsistency from the corpus, we obtain cleaner analyses of comma structures which require fewer C CG rules to explain. These changes to the cor­pus, in turn, allow us to simplify the implementa­tion of the C&amp;C parser (Clark and Curran, 2007), a wide-coverage statistical CCG parser for English, by barring the parser from considering the CCG rules which we have made redundant.</p><p>Training the C&amp;C parser on our modified CCGbank yields average speed gains of 37% and 21% on the standard CCGbank test set and develop­ment set respectively, and a 47% reduction in mem­ory consumed by the chart parsing process as evalu­ated on the standard CCGbank test set. Parser cover­age increases slightly while accuracy is not affected.</p><p>Consistency, a powerful and general guideline in corpus design, can improve the usefulness and qual­ity of corpora and the applications built with them. We eliminate a source of systematic inconsistency in comma representation from a wide-coverage cor­pus and parser, resulting in cleaner versions of both resources. The combination of a cleaner treebank and parser leads to gains in speed and a reduction in memory consumption without affecting parser accu­racy.</p></section><section number="2" title="Background"><p>Nunberg (1990) characterises the traditional view of written language as a simulacrum of a richer medium, that of spoken language. Nunberg notes that although formal prescriptive accounts of punctuation have long been the domain of grammari­ans (and the bane of their students), this perception of writing as an inferior or merely transcriptional medium has lead to the relative paucity of analytic accounts of punctuation in linguistics.<page local="2" global="152"/></p><p>Nunberg (1990) describes the macro-structure of English text as two superposed systems: the <i>text grammar </i>defines the well-formedness of a sen­tence interpreted as a sequence of not necessarily constituent-forming units, while the <i>lexical gram­mar </i>encodes the usual relationships between indi­vidual lexical items.</p><p>Nunberg's validation of punctuation as a linguis­tic system meriting study in its own right spurred work affording punctuation a more integral role in generation and parsing (Briscoe, 1994; Osborne, 1995), as well as work in corpus linguistics as to the distribution and semantics of commas, and other classes of punctuation tokens (Bayraktar et al., 1998; Jones, 1997).</p><p>However, despite this renewal of interest, punc­tuation is still often relegated to a marginal role in parsing and the evaluation of parsers, because its representation is often inconsistent between tree-banks, and even within a treebank. evalb, a widely used script for calculating the crossing-brackets parser evaluation metric PARSEVAL, strips all punc­tuation from the candidate and gold standard text (Sekine and Collins, 2006), so that the attachment level of any punctuation does not influence the bracketing metric.</p><p>Briscoe (1994) discusses a parsing system which uses Nunberg's concept of a text grammar to in­form its chunking decisions (in this context, the seg­mentation of input text into sentences, robustly han­dling non-terminal uses of periods, for example). In Briscoe's work, an implementation of text grammar can eliminate incorrect parses based on punctuation. In Example 1, a variation on the well-known <i>PP </i>at­tachment problem, a parser which simply ignores punctuation in the input will encounter ambiguity which a punctuation-aware parser will not.</p><p>(1) I saw the girl on the hill with the telescope, from the store.</p><p>(2) I saw the girl on the hill with the telescope from the store.</p><doubt alpha="66.0" length="47" tooSmall="False" monospace="0.0">The work of Djordjevic et al. (2007) for theC&amp;C</doubt><p>parser constrains phrases delimited by hyphens, colons and semicolons to be complete constituents, allowing the parser to avoid great amounts of attach­ment ambiguity when parsing long sentences. How­ever, while Djordjevic et al. modify the parser to derive information from punctuation in the corpus, this work changes the representation of commas in the corpus to convey information on each comma's role to the parser. The corpus we obtain assigns a uniform structure to each of the comma's syntactic roles.</p></section><section number="3" title="CCG and CCG bank"><p>In Combinatory Categorial Grammar (Steedman, 2000), each lexical item receives a <i>category </i>such as <i>N/N </i>or <i>(S\NP)/NP, </i>which determines how it may combine with other groups of lexical items. New categories may be formed of adjacent categories by applying <i>combinatory rules. </i>In Figure 1, each line denotes the application of a particular combinatory rule, which combines at most two categories into an­other category. Combinatory rules enable succinct, natural CCG analyses for difficult constructions such as argument cluster coordination and parasitic gaps (Steedman, 2000).</p><p>I quickly grilled        the    steak .</p><doubt alpha="42.5" length="40" tooSmall="False" monospace="0.0">np   (s\np)/(s\np)   (s\np)/np np/n~N~ ~</doubt><doubt alpha="44.4" length="18" tooSmall="False" monospace="0.0">np &gt; s\np &gt; s\np &lt;</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">s-&lt;</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">S</doubt><p>Figure 1: CCG analysis</p><p>CCGbank is a wide-coverage CCG corpus, gener­ated from the Wall Street Journal section of Penn Treebank through an automatic conversion pro­cedure described by Hockenmaier and Steedman (2007). CCGbank enabled the development ofwide-coverage statistical CCG parsers such as the C&amp;C parser Clark and Curran (2007), on which we will evaluate this work. Parsing in the C&amp;C parser pro­ceeds in two broad stages: a maximum entropy <i>su­pertagger </i>assigns categories to lexical items, which the <i>parser </i>then attempts to combine using the CCG rules. The corpus, as a collection of CCG derivations,<page local="3" global="153"/></p><p>implicitly encodes the set of CCG rules used in its derivations. These rules must be explicitly encoded in a parser trained on CCGbank, since the training process requires it to reproduce the derivations rep­resented in the corpus. The goal of this work is to drastically reduce the number of rules implicitly en­coded by CCGbank, and in turn reduce the number of rules explicitly encoded in the C&amp;C parser.</p><p>The distribution of punctuation symbols in CCGbank is given in Figure 2. Commas account for over half of all punctuation tokens, and peri­ods well-represented but not as common as commas. (Bayraktar et al., 1998) observes the same dramatic drop between the frequency of commas and periods, and the remaining punctuation marks.</p><p>Although periods approach commas in frequency, their representation in CCGbank is largely consis­tent, since all of their roles are constituent-final: sen­tence terminator, list index delimiter, abbreviation marker. By comparison, commas in CCGbank occur both constituent-initially as well as finally.</p><p>The goal of this work is to standardise the rep­resentation of commas in CCGbank, either by con­verting all <i>left commas </i>(comma leaves which are the left child of their parent) to <i>right commas, </i>or vice versa, and in doing so, allow us to remove unneces­sary rules from the parser. In the next section, we discuss and justify which of the CCGbank rules are unnecessary, and which CCGbank rules our normal­isation procedure should not modify.</p></section><section number="4" title="Normalising CCG bank"><p>Our goal of eliminating uninformative variation from the corpus requires us to distinguish cases where comma direction conveys some useful infor­mation from those where it has no discriminative function. We partition the CCGbank rules involving a comma argument so that our processing only af­fects those cases we are free to manipulate.</p><p>The intuition for our transformations on CCGbank are as follows: commas are by a large margin, the most common form of punctuation encountered in Penn Treebank (Bayraktar et al., 1998).</p><p>The inconsistency in the representation of com­mas is an artifact of the procedure by which Penn Treebank derivations are transformed into CCGbank derivations. Given a Penn Treebank derivation <i>P, </i>the procedure uses head-finding heuristics to identify the head of each constituent. Binarisation is a conse­quence of the fact that CCG's combinatory rules are all unary or binary, requiring us to transform the <i>k-</i>way branching structures of Penn Treebank-style an­notation. The procedure uses the heads identified by the first step to determine whether to generate left-or right-branching structures: constituents left of the head are left-branching, and those right of the head branch rightwards, as depicted in Figure 3. This en­sures that adjuncts seek the head, and not vice versa.</p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">X</doubt><doubt alpha="20.0" length="5" tooSmall="False" monospace="0.0">... X</doubt><p>head     <i>...</i></p><p>Figure 3: CCGbank binarisation</p><p>Accordingly, whether or not a comma node is a left, or a right comma, depends on whether it was left or right of the node identified by the head-finding heuristic as the head, as shown in Figure 4.</p><doubt alpha="0.0" length="10" tooSmall="False" monospace="0.0">/   \  / \</doubt><doubt alpha="36.4" length="11" tooSmall="False" monospace="0.0">AB   , , CD</doubt><doubt alpha="80.0" length="5" tooSmall="False" monospace="0.0">CD AB</doubt><p>(a) Node <i>C </i>as head (b) Node <i>B </i>as head</p><figure caption="Figure 4: Left and right commas"></figure><p>This means that for many categories, the corpus contains a pair of <i>absorption rules, </i>so called because they leave the input category <i>X </i>unchanged:</p><table caption="Figure 2: Punctuation distribution inCCGbank" 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>Symbol</p></td><td class="cell"><p>Frequency</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>comma</p></td><td class="cell"><p>59991</p></td><td class="cell"><p>(53.77%)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>period</p></td><td class="cell"><p>47875</p></td><td class="cell"><p>(42.91%)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>colon</p></td><td class="cell"><p>1649</p></td><td class="cell"><p>(1.48%)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>semi-colon</p></td><td class="cell"><p>1460</p></td><td class="cell"><p>(1.31%)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>question mark</p></td><td class="cell"><p>511</p></td><td class="cell"><p>(0.46%)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>excl. mark</p></td><td class="cell"><p>71</p></td><td class="cell"><p>(0.06%)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>apostrophe</p></td><td class="cell"><p>3</p></td><td class="cell"><p>(0.002%)</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Total punct</i></p></td><td class="cell"><p>111560</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="4" global="154"/><doubt alpha="20.0" length="20" tooSmall="False" monospace="0.0">X , — X ,   X    — X</doubt><p>which, by virtue of being extra-combinatory rules, must each be encoded in the parser. This prolifera­tion of extra rules is merely an artifact of the binari-sation process; in these cases, we judge that there is no evidence for the comma belonging to one side or the other, and that we are free to process the corpus so that it embodies only one of the above two rules.</p><subsection number="4.1" title="Type-change rules"><p>Type-change rules in CCGbank analyse syntax such as apposition without creating additional categorial ambiguity. The tradeoff is that such rules are com­pletely unlicensed by the underlying theory, hence the designation <i>extra-combinatory. </i>Hockenmaier and Steedman (2007) argue for the use of extra-combinatory rules, to mitigate against the sparsity of data which would be entailed by giving every ap­position <i>NP </i>a different category to an <i>NP </i>not par­ticipating in apposition. For example, the CCGbank analysis of sentence-final <i>NP </i>apposition:</p><p>(3) The index fell to 997, the first decline since July.</p><p>involves the following comma type-change rule:</p><doubt alpha="27.3" length="33" tooSmall="False" monospace="0.0">,   NP    —    (S\NP)\(S\NP)(T, )</doubt><p>The rule specifies that an <i>NP </i>following a comma can be treated as a verb phrase modifier (in general, the category of a modifier is <i>X/X </i>or <i>X\X </i>for some cate­gory <i>X), </i>allowing the analysis shown in Figure 5.</p><p>In CCGbank, the comma introducing an apposi­tion is necessary to the resulting analysis, in that the rule does not trigger unless the comma is present. As such, comma type-change rules are fundamen­tally different from the comma absorption rules seen above, which neither introduce dependencies, nor affect interpretation. Furthermore, we can see that the above rule cannot involve anything but a left comma, for the simple reason that it is the analy­sis for a sentence-/znal <i>NP </i>apposition. Therefore, if we were to blindly normalise the above rule to:</p><doubt alpha="26.5" length="34" tooSmall="False" monospace="0.0">*NP   ,    —    (S\NP)\(S\NP)(T, )</doubt><p>we would no longer attain the same analysis of sentence-final <i>NP </i>apposition. In general, Bayrak-tar et al. (1998) consider the commas which in­troduce apposition to be a form of paired punc­tuation, like quotes or parentheses. Unlike close quotes, or close parentheses, however, the 'clos­ing comma' is suppressed when it immediately pre­cedes the sentence-final period. This suggests that it should be the 'opening comma' that triggers the use of type-change rules enabling apposition, since the 'closing comma' is not realised sentence-finally, as shown in Example 5.</p><p>(4) Pierre Vinken, chairman of Elsevier, will become non-executive director.</p><p>(5) The non-executive director is Pierre Vinken, chairman of Elsevier.</p><p>Hence, our comma normalisation does not pro­cess commas involved in comma type-change rules.</p></subsection><subsection number="4.2" title="Conjunction commas"><p>CCG is known for its straightforward analysis of co­ordination: two categories may be coordinated with a conjunction precisely when the conjuncts have the same category (Steedman, 2000). The CCGbank treatment of coordination differs from the rule of syncategorematic coordination originally given by Steedman (2000), because of the undesirability of introducing such a ternary rule as an exception to a system of otherwise unary and binary combinatory rules. To analyse coordination of nouns in series:</p><p>(6) Pound cake consists of butter, eggs and flour.</p><p>CCGbank instead provides the following pair of extra-combinatory rules:</p><doubt alpha="32.6" length="46" tooSmall="False" monospace="0.0">,       N — N[conj](&lt;ï&gt;1)N  N [conj] — N(&lt;ï&gt;2)</doubt><p>which yield an analysis isomorphic to Steedman's ternary coordination rule, without the need to di­rectly implement such a ternary rule.</p><p>A category of the form <i>X[conj] </i>represents a con­junct which has picked up a conjunction word, but not the other conjunct<footnote anchor="1"/>.</p><footnote label="1">In the analysis of Figure 6, a comma inserted before 'and' (the so-called Oxford comma) would receive the comma cat­egory , and be subject to comma absorption, with the lexical conjunction 'and' serving as the actual conjunction word.</footnote><page local="5" global="155"/><doubt alpha="44.2" length="86" tooSmall="False" monospace="0.0">The     index     fell                  to997, the      first decline       since July</doubt><doubt alpha="46.2" length="80" tooSmall="False" monospace="0.0">NP[nb]/N  N S[dcl]\NP ((S\NP)\(S\NP))/NP N , NP[nb]/N N/N    N     (NP\NP)/NP NT</doubt><doubt alpha="19.7" length="66" tooSmall="False" monospace="0.0">NP      &gt;                        (S\NP)\(S\NP)    &gt; N    &gt; NP\NP &gt;</doubt><doubt alpha="26.7" length="30" tooSmall="False" monospace="0.0">S[dcl]\NP               &lt; NP &lt;</doubt><doubt alpha="100.0" length="2" tooSmall="False" monospace="0.0">NP</doubt><doubt alpha="33.3" length="3" tooSmall="False" monospace="0.0">-T,</doubt><doubt alpha="66.7" length="9" tooSmall="False" monospace="0.0">S[dcl]\NP</doubt><doubt alpha="46.2" length="13" tooSmall="False" monospace="0.0">(S\NP)\(S\NP)</doubt><doubt alpha="66.7" length="6" tooSmall="False" monospace="0.0">S[dcl]</doubt><figure caption="Figure 5: The type change rule, NP — (S\NP)\(S\NP)is applied in the fifth row"></figure><doubt alpha="0.0" length="1" tooSmall="False" monospace="0.0">&lt;</doubt><p>Butter <i>, </i>eggs and flour</p><doubt alpha="36.8" length="19" tooSmall="False" monospace="0.0">N    ,   N   conj N</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">-$1</doubt><doubt alpha="62.5" length="8" tooSmall="False" monospace="0.0">N [conj]</doubt><doubt alpha="0.0" length="3" tooSmall="False" monospace="0.0">-$2</doubt><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">N</doubt><doubt alpha="71.4" length="7" tooSmall="False" monospace="0.0">N[conj]</doubt><p>Figure 6: CCGbank analysis of coordination</p><p>For example, the partial coordination <i>and flour </i>in Figure 6 receives the category <i>NP[conj].</i></p><p>Suppose we are to convert the left comma rule $<i>1</i><i></i>to a right comma rule as a candidate for normalisa­tion.</p><doubt alpha="26.1" length="23" tooSmall="False" monospace="0.0">N   ,    — N [conj]($1)</doubt><p>Such a rule has the effect of consuming conjuncts left-to-right, instead of right-to-left in the canonical set of rules. To support such an order, we would also need to change rule $2 accordingly:</p><doubt alpha="35.0" length="20" tooSmall="False" monospace="0.0">N [conj]   N — N($2)</doubt><p>That is, while the canonical set of rules yields a right-branching analysis of coordination, replacing the left comma rule with a right comma rule yields a left-branching analysis instead. Functionally, there is no difference between a left- and right-branching analysis. However, if we were to convert the left comma coordination rule $1 to a right comma rule, we would have to re-analyse all right-branching co­ordination structures in the corpus as left-branching structures, with no change in semantics. Further­more, we would save the parser no effort, since the original rule $1 does not have a right comma rule analogue which we could eliminate. Therefore, we exclude coordination comma rules as candidates for comma normalisation.</p></subsection><subsection number="4.3" title="Left, or right commas?"><p>We now have a choice between normalising all ab­sorption commas to left commas or to right commas. We have seen that the two non-absorption classes of comma rules both involve left commas, while ab­sorption comma rules occur both as left and right comma rules. We make the arbitrary choice to nor­malise all absorption comma rules to right comma rules, so that it is easier for corpus applications to distinguish the most common case of punctuation absorption from other "special" rules such as type-changing and coordination.</p><p>Although an additional reason for normalising to right commas rather than left commas is not evi­dent from our analysis of the <i>unmodified </i>CCGbank, an argument arises when we consider the version of CCGbank described by Tse and Curran (2007), which restores quote symbols to CCGbank. The re-quoting procedure operates by recovering the po­sitions of open and close quotes from CCGbank's source corpus, Penn Treebank. If the text lying be­tween the start and end of the quoted span exactly spans a subtree, then we can enclose that entire sub­tree in a quoting structure. Otherwise, we attach the open and close quotes separately. However, a com­mon convention in English prose style is to include the comma which offsets a span of quoted direct speech as part of the span of quoted text.</p><p>(7) "I love hot dogs," said Tom with relish.</p><p>In the unmodiied corpus, such a comma is attached to the right subtree, as in Figure 7a. However, this prevents us from enclosing the span of quoted text (including the comma), since the comma is stranded in the right-hand subtree. Accordingly, we must transform such a left comma to a right comma in order to obtain an analysis in which the open and close quotes correctly enclose the span of quoted text, as in Figure 7b.<page local="6" global="156"/></p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">X</doubt><doubt alpha="66.7" length="6" tooSmall="False" monospace="0.0">S[dcl]</doubt><doubt alpha="58.8" length="17" tooSmall="False" monospace="0.0">S[dcl] S[dcl] S\S</doubt><p>I love hot dogs</p><doubt alpha="66.7" length="3" tooSmall="False" monospace="0.0">S\S</doubt><p>said Tom with relish (a) Original analysis " said Tom with relish (b) Modified analysis</p><doubt alpha="60.0" length="10" tooSmall="False" monospace="0.0">S[dcl] S\S</doubt><doubt alpha="57.1" length="7" tooSmall="False" monospace="0.0">S[dcl]"</doubt><doubt alpha="57.1" length="7" tooSmall="False" monospace="0.0">S[dcl],</doubt><figure caption="Figure 7: Quote insertion and comma direction"></figure><p>The fact that the correct analysis of such quoting structures <i>requires </i>right comma absorption suggests that for consistency, we should normalise to right, rather than left commas.</p><p>To summarise, our criteria for normalisation are to process only absorption commas, leaving type-change comma rule instances and analyses of coor­dination unmodified. The normalisation of all ab­sorption commas to right commas, which enables us to remove all left comma absorption rules from the parser, allows us to make accuracy gains and speed reductions in the parser.</p><p>We also hypothesise that no useful information is lost as long as we restrict comma normalisation to the absorption cases we have identified above, since commas involved in absorption rules do not project dependencies, and hence cannot adversely affect the standard dependency-based ccgbank evaluation we describe in Section 7.</p></subsection></section><section number="5" title="Transformations"><p>Having shown that we are free to manipulate in­stances of absorption comma rules, the transfor­mations themselves are simple. The procedure for comma normalisation is given in Algorithm 1.</p><p>We choose to re-attach the comma node as high as possible in the derivation tree, as shown in Fig­ure 8b, in the absence of a more sophisticated <b>Algorithm 1 </b>normalise-commas(C):</p><p><b>for each </b>leaf <i>l </i>in <i>C </i><b>do</b> <b>if </b><i>(l,</i><i> </i><i>l.</i><i></i><i>sibling — </i><i>l.</i><i>parent) </i>is comma absorption <b>then</b> <i>cur — </i><i>l.</i><i></i>parent</p><p>Delete <i>l </i>and its sibling {Re-attach the comma as high as possible} <b>while </b><i>cur </i>is the left child of its parent <b>do</b></p><p><i>cur — cur. </i>parent <b>end while</b></p><p>Insert comma structure at sibling of <i>cur </i><b>end if end for</b> method of determining the depth in the left subtree at which the comma should be restored. With refer­ence to Figure 8, the algorithm has converted every instance of a left absorption rule <i>(,</i><i> </i><i>Y</i><i> </i><i>—&gt;</i><i> </i><i>Y)</i><i> </i>to an instance of some right absorption rule <i>(X</i><i> </i><i>,</i><i> </i><i>—&gt;</i><i> X)</i>. Performing this transformation on every absorp­tion comma in the corpus achieves the desired nor­malisation.</p><doubt alpha="65.0" length="20" tooSmall="False" monospace="0.0">(a) Before (b) After</doubt><figure caption="Figure 8: Comma movement"></figure><p>Figure 9 shows the distribution of occurrences of each kind of comma rule before, and after comma normalisation. The frequencies for two ccg rules for coordination which differ in whether a comma, or a lexical conjunction is used as the coordinating word are aggregated in the second row.</p><p>Our procedure successfully re-analyses every left absorption comma in ccgbank as an instance of a right absorption rule. The two instances of left com­mas which remain in the comma normalised corpus result from mis-tokenisations in Penn Treebank: a numeral and a determiner mis-tagged as a comma.</p><p>As a final step, we remove support for the now-eliminated left comma rules from the c&amp;c parser, preventing the parser from hypothesising the attach­ment of commas to the left in the absorption case, reserving left-attachment analyses for the special cases of coordination and type-change structures.<page local="7" global="157"/></p><doubt alpha="100.0" length="1" tooSmall="False" monospace="0.0">Y</doubt></section><section number="6" title="Evaluation"><p>We wish to determine the impact of our changes in two respects: their effect on the accuracy of the re­sulting parser model and on parser ambiguity, rela­tive to the unmodified parser and corpus.</p><p>To measure the impact of the modifications on parser accuracy, we performed the dependency-based evaluation of Clark and Curran (2004) on the standard development and test sets, sections 00 and 23 of CCGbank. We evaluate the performance of a parser and model by computing the <i>F</i>-score over the obtained set of predicate-argument dependen­cies, relative to a gold standard. In the <i>labelled </i>CCG evaluation, a dependency consists of a tuple <i>(H,</i><i> </i><i>C,</i><i> </i><i>i,</i><i> </i><i>D,</i><i> </i><i>l),</i><i> </i>where <i>H</i><i> </i>is the head lexical item, <i>C</i><i> </i>is its category with its arguments annotated with in­dices, <i>i </i>is the index of the argument satisfied by this dependency, and <i>D </i>is the lexical item satisfy­ing this dependency. <i>l </i>is a flag distinguishing local from long-range dependencies. The <i>unlabelled </i>eval­uation is performed against reduced tuples <i>(H,</i><i> </i><i>D).</i><i> </i>Additional evaluation metrics are <i>sentence level ac­curacy: </i>the proportion of sentences for which the parser produced every gold standard dependency, <i>category accuracy: </i>the proportion of correctly as­signed categories, and <i>coverage: </i>the proportion of sentences for which the parser obtained some span­ning analysis. The column <i>Auto F </i>denotes the la­belled <i>F </i>score when the C&amp;C parser assigns its own POS tags instead of using gold standard tags.</p><p>To gauge the impact on parser ambiguity and memory consumption, we consider the number of <i>conjunctive nodes </i>generated by the C&amp;C parser dur­ing the parsing process. The C&amp;C parser uses a <i>packed chart representation </i>to reduce the size in memory of the parsing chart by allowing partial derivations which span the same category and have the same set of unfilled dependencies to occupy a single cell in the chart. A conjunctive node is formed when two single cells in the chart are merged into another cell, as occurs when two categories are be­ing combined. Accordingly, the number of conjunc­tive nodes is an indication of the quantity of category combinations performed by the parser, and hence the degree of ambiguity encountered in parsing a given sentence as well as the physical size in memory of the chart data structure (Clark and Curran, 2007).</p><p>We also perform the standard evaluation 25 times on the development and test sections to compute the average wall-clock time for each experiment.</p><p>For the sake of comparison, we also perform the above experiments using our transformed corpus, but without barring the consideration of the now-redundant rules in the parser. In the results table, we refer to this ensemble as <i>New*.</i></p></section><section number="7" title="Results"><p>Figure 10 shows that the comma-normalised corpus, in concert with our modifications to the CCG parser removing support for the now-redundant rules, out­performs the baseline in ambiguity and parsing speed without adversely affecting parser perfor­mance or corpus coverage. This supports our claim in Section 4 that modifying only absorption com­mas does not remove any useful information from the corpus.</p><p>Why does comma normalisation have such a strong effect on parser efficiency? Any absorption rule engenders considerable ambiguity: consider that a comma can be attached at any internal level in the derivation. Although the C&amp;C parser reins in this ambiguity by restricting the categories with which punctuation can combine, the effect of this attach­ment ambiguity is prominent when we consider the number of CCGbank sentences containing punctua­tion tokens apart from the full stop (32636 of 48934, or 66.7% of CCGbank derivations). Our changes to the parser reduce the number of comma absorption rules from 19 to 9, considerably reducing parser am­biguity in these sentences.</p><table caption="Figure 9: Number of comma rule instances before and after normalisation" 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>CCG rule</p></td><td class="cell"><p>Before</p></td><td class="cell"><p>After</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>, X</i></p></td><td class="cell"><p><i>— X</i></p></td><td class="cell"><p>25690</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><i>X ,</i></p></td><td class="cell"><p><i>-X</i></p></td><td class="cell"><p>21990</p></td><td class="cell"><p>47678</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>{,</i><i> </i>\conj<i>] X</i></p></td><td class="cell"><p><i>— X[conj]</i></p></td><td class="cell"><p>11466</p></td><td class="cell"><p>11466</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Other typechange</p></td><td class="cell"><p>607</p></td><td class="cell"><p>607</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>,   NP — (S\NP)\(S\NP)</i></p></td><td class="cell"><p>242</p></td><td class="cell"><p>242</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Total</i></p></td><td class="cell"><p><i>59995</i></p></td><td class="cell"><p><i>59995</i></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="8" global="158"/><doubt alpha="66.7" length="9" tooSmall="False" monospace="0.0">Dev. set:</doubt><p><i>Test set:</i></p><p>(a) Standard CCGbank evaluation on development and test sets (b) Parsing time on development and test sets</p><figure caption="Figure 10: The effects of comma normalisation on parser accuracy and speed"></figure><p>An unexpected result is that the new corpus trained on the old parser (experiment <i>New*) </i>results in <i>greater </i>ambiguity compared to the baseline. We determined that this is caused by our naive choice of comma attachment level (as high as possible in the tree, the most general position). Our transfor­mations have inadvertently added a small number of new rules to the corpus (with reference to Figure 8, this will occur when (X <i>, — X</i>) is not attested in the corpus). On examination, in all of these newly added rules, the non-comma argument is the result of a <i>unary type-change </i>rule (such as <i>NP — </i><i>S/(S\NP)).</i><i> </i>We note by way of future work that we can eliminate these added rules in this way: if attaching as high as possible (our current criterion) would yield such a new rule, then attach the comma at its child instead (before such a rule has been applied).</p><p>We have developed a comma-normalised corpus which explains the same data with fewer rules, while slightly improving the coverage, accuracy and pars­ing time of a parser trained on this improved corpus. The resulting version of CCGbank treats the ubiq­uitous comma consistently, a desirable attribute for any NLP task which uses this valuable resource.</p></section><section number="8" title="Conclusion"><p>We believe that further improvements in parsing speed and memory consumption are possible by changing the representation of comma structures in the corpus. As we observed in Section 7, when the now-redundant rules are not disabled, parser ambi­guity actually slightly <i>exceeds </i>the baseline. Chang­ing the comma attachment level criterion may fur­ther improve parser ambiguity and memory con­sumption by reducing the number of rules the trans­formation adds to the treebank.</p><p>Far from being second-class, the correct analysis and treatment of punctuation in corpora and parsers has practical ramifications. We would like to con­tinue to explore punctuation-awareness in parsing in the vein of Djordjevic et al. (2007), but from the viewpoint of corpus design. Can we bring the ben­efits of Nunberg's text grammar to a regular tree-bank by superimposing text grammar constituents onto those of the usual lexical grammar?</p><p>We would also like to explore the cross-linguistic treatment of punctuation in treebanks to inform pos­sible improvements to existing corpora and derive guidelines for the design of future corpora.</p><p>We have eliminated a source of systematic in­consistency in a wide-coverage CCG treebank and simplified the implementation of a CCG parser, ob­taining considerable improvements in speed and memory usage without sacrificing parser accuracy, demonstrating the importance of principled, consis­tent annotation in corpus design.</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></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>Labelled</p></td><td class="cell"><p></p></td><td class="cell"><p>Auto</p></td><td class="cell"><p>Sent.</p></td><td class="cell"><p>Unlabelled</p></td><td class="cell"><p>Cat.</p></td><td class="cell"><p>Covg</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Experiment</p></td><td class="cell"><p><i>P</i></p></td><td class="cell"><p><i>R</i></p></td><td class="cell"><p><i>F</i></p></td><td class="cell"><p><i>F</i></p></td><td class="cell"><p>acc.</p></td><td class="cell"><p><i>P</i></p></td><td class="cell"><p><i>R</i></p></td><td class="cell"><p><i>F</i></p></td><td class="cell"><p>acc. %</p></td><td class="cell"><p>%</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Dev. set:</i></p></td><td class="cell"><p><i>New</i></p></td><td class="cell"><p>85.60</p></td><td class="cell"><p>84.79</p></td><td class="cell"><p><b>85.19</b></p></td><td class="cell"><p><b>83.39</b></p></td><td class="cell"><p>31.65</p></td><td class="cell"><p>92.40</p></td><td class="cell"><p>91.52</p></td><td class="cell"><p><b>91.96</b></p></td><td class="cell"><p><b>93.08</b></p></td><td class="cell"><p><b>99.11</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Baseline</i></p></td><td class="cell"><p>85.52</p></td><td class="cell"><p>84.69</p></td><td class="cell"><p>85.11</p></td><td class="cell"><p>83.36</p></td><td class="cell"><p><b>31.93</b></p></td><td class="cell"><p>92.37</p></td><td class="cell"><p>91.47</p></td><td class="cell"><p>91.92</p></td><td class="cell"><p>93.02</p></td><td class="cell"><p>99.06</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Test set:</i></p></td><td class="cell"><p><i>New</i></p></td><td class="cell"><p>86.17</p></td><td class="cell"><p>85.48</p></td><td class="cell"><p><b>85.82</b></p></td><td class="cell"><p><b>83.45</b></p></td><td class="cell"><p><b>35.14</b></p></td><td class="cell"><p>92.33</p></td><td class="cell"><p>91.59</p></td><td class="cell"><p><b>91.96</b></p></td><td class="cell"><p><b>93.38</b></p></td><td class="cell"><p><b>99.67</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Baseline</i></p></td><td class="cell"><p>86.03</p></td><td class="cell"><p>85.37</p></td><td class="cell"><p>85.70</p></td><td class="cell"><p>83.24</p></td><td class="cell"><p>34.70</p></td><td class="cell"><p>92.28</p></td><td class="cell"><p>91.57</p></td><td class="cell"><p>91.93</p></td><td class="cell"><p>93.27</p></td><td class="cell"><p>99.63</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></tr></table><table class="main" frame="box" rules="all" border="0" regular="False"><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p></p></td><td class="cell"><p>Average</p></td><td class="cell"><p>Parsing rates</p></td><td class="cell"><p>Avg.</p></td><td class="cell"><p>Avg.</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p>Experiment</p></td><td class="cell"><p>parsing time</p></td><td class="cell"><p><i>sents/s</i></p></td><td class="cell"><p><i>words/s</i></p></td><td class="cell"><p>conj. nodes</p></td><td class="cell"><p>total nodes</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>New</i></p></td><td class="cell"><p><b>89.49s</b></p></td><td class="cell"><p><b>21.38</b></p></td><td class="cell"><p><b>507.61</b></p></td><td class="cell"><p><b>2472.77</b></p></td><td class="cell"><p><b>5260.84</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>New*</i></p></td><td class="cell"><p>109.97s</p></td><td class="cell"><p>17.40</p></td><td class="cell"><p>413.05</p></td><td class="cell"><p>3446.41</p></td><td class="cell"><p>7800.58</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Baseline</i></p></td><td class="cell"><p>112.73s</p></td><td class="cell"><p>16.97</p></td><td class="cell"><p>402.93</p></td><td class="cell"><p>3349.94</p></td><td class="cell"><p>7662.95</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>New</i></p></td><td class="cell"><p><b>56.28s</b></p></td><td class="cell"><p><b>42.78</b></p></td><td class="cell"><p><b>984.05</b></p></td><td class="cell"><p><b>2112.78</b></p></td><td class="cell"><p><b>3653.83</b></p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>New*</i></p></td><td class="cell"><p>88.30s</p></td><td class="cell"><p>27.26</p></td><td class="cell"><p>627.08</p></td><td class="cell"><p>3087.54</p></td><td class="cell"><p>6779.42</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"><p><i>Baseline</i></p></td><td class="cell"><p>89.32s</p></td><td class="cell"><p>26.95</p></td><td class="cell"><p>619.97</p></td><td class="cell"><p>3010.34</p></td><td class="cell"><p>6590.26</p></td><td class="cell"></td></tr><tr class="row"><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td><td class="cell"></td></tr></table><page local="9" global="159"/></section><references><p>Murat Bayraktar, Bilge Say, and Varol Akman. 1998. An Analysis of English Punctuation: The Special Case of Comma. <i>International Journal of Corpus Linguistics, </i>3(1):33-57.</p><p>Ann Bies, Mark Ferguson, Karen Katz, Robert MacIntyre, Victoria Tredinnick, Grace Kim, Mary Ann Marcinkiewicz, and Britt Schasberger. 1995. Bracketing Guidelines for Treebank II Style Penn Treebank Project. <i>University ofPennsylva-nia, Philadelphia.</i></p><p>Ted Briscoe. 1994. Parsing (with) Punctuation etc.</p><p><i>Research Paper, Rank Xerox Research Centre, Grenoble.</i></p><p>Stephen Clark and James R. Curran. 2004. Parsing the WSJ using CCG and log-linear models. In <i>ACL '04: Proceedings of the 42nd Annual Meet­ing on Association for Computational Linguistics, </i>pages 104-111. Association for Computational Linguistics, Barcelona, Spain.</p><p>Stephen Clark and James R. Curran. 2007. Wide-Coverage Efficient Statistical Parsing with CCG and Log-Linear Models. <i>Computational Linguis­tics, </i>33(4):493-552.</p><p>Bojan Djordjevic, James R. Curran, and Stephen Clark. 2007. Improving the Efficiency of a Wide-Coverage CCG Parser. In <i>Proceedings of the Tenth International Conference on Parsing Tech­nologies, </i>pages 39-47. Association for Computa­tional Linguistics.</p><p>Julia Hockenmaier and Mark Steedman. 2005. CCGbank: Users manual. <i>University of Pennsyl­vania, Philadelphia.</i></p><p>Julia Hockenmaier and Mark Steedman. 2007. CCGbank: A Corpus of CCG Derivations and Dependency Structures Extracted from the Penn Treebank. <i>Computational Linguistics, </i>33(3):355396.</p><p>Bernard Jones. 1997. <i>What's the Point? A (Com­putational) Theory of Punctuations. </i>Ph.D. thesis, PhD thesis, Centre for Cognitive Science, Univer­sity of Edinburgh, Edinburgh, UK.</p><p>Mitchell P. Marcus, Beatrice Santorini, and Mary Ann Marcinkiewicz. 1994. Building a Large Annotated Corpus of English: The Penn</p><p>Treebank. <i>Computational Linguistics, </i>19(2):313330.</p><p>Geoffrey Nunberg. 1990. <i>The Linguistics ofPunc-tuation. </i>Center for the Study of Language and Information.</p><p>Miles Osborne. 1995. Can punctuation help learn­ing? <i>Connectionist, Statistical, and Symbolic Ap­proaches to Learning for Natural Language Pro­cessing, Lecture Notes in Artificial Intelligence, </i>pages 399-U2.</p><doubt alpha="64.9" length="77" tooSmall="False" monospace="0.0">Satoshi Sekine and Michael J. Collins. 2006. Evalb:       a   parseval cross-</doubt><p>ing   brackets   evaluation   script. URL</p><p>http://www.cs.nyu.edu/cs/projects/proteus/evalb, accessed 10 June 2008.</p><p>Mark Steedman. 2000. <i>The Syntactic Process. </i>MIT Press. Cambridge, MA, USA.</p><p>Daniel Tse and James R. Curran. 2007. Ex­tending CCGbank with quotes and multi-modal CCG. <i>Australasian Language Technology Work­shop 2007, </i>pages 149-151.</p></references></body></article>