Efficient Normal-Form Parsing
for Combinatory Categorial GrammarThanks: This material is based upon work supported under a National
Science Foundation Graduate Fellowship. I have been grateful for the advice of Aravind
Joshi, Nobo Komagata, Seth Kulick, Michael Niv, Mark Steedman, and three
anonymous reviewers.
Abstract
Under categorial grammars that have powerful rules like composition, a simple -word sentence can have exponentially many parses. Generating all parses is inefficient and obscures whatever true semantic ambiguities are in the input. This paper addresses the problem for a fairly general form of Combinatory Categorial Grammar, by means of an efficient, correct, and easy to implement normal-form parsing technique. The parser is proved to find exactly one parse in each semantic equivalence class of allowable parses; that is, spurious ambiguity (as carefully defined) is shown to be both safely and completely eliminated.
1 Introduction
Combinatory Categorial Grammar [\citenameSteedman1990], like other “flexible” categorial grammars, suffers from spurious ambiguity [\citenameWittenburg1986]. The non-standard constituents that are so crucial to CCG’s analyses in (1), and in its account of intonational focus [\citenamePrevost & Steedman1994], remain available even in simpler sentences. This renders (2) syntactically ambiguous.
- (1)
- a.
Coordination: [[John likes]S/NP, and [Mary pretends to like]S/NP ], the big galoot in the corner.
- b.
Extraction: Everybody at this party [whom [John likes]S/NP ] is a big galoot.
- a.
- (2)
- a.
John [likes Mary]SNP.
- b.
[John likes]S/NP Mary.
- a.
The practical problem of “extra” parses in (2) becomes exponentially worse for longer strings, which can have up to a Catalan number of parses. An exhaustive parser serves up 252 CCG parses of (3), which must be sifted through, at considerable cost, in order to identify the two distinct meanings for further processing.11 1 Namely, Mary pretends to like the galoot in 168 parses and the corner in 84. One might try a statistical approach to ambiguity resolution, discarding the low-probability parses, but it is unclear how to model and train any probabilities when no single parse can be taken as the standard of correctness.
- (3)
\gll
the galoot in the corner that I said Mary pretends to like
NP/N N (NN)/NP NP/N N (NN)/(S/NP) S/(SNP) (SNP)/S S/(SNP) (SNP)/(SinfNP) (SinfNP)/(SstemNP) (SstemNP)/NP
This paper presents a simple and flexible CCG parsing technique that prevents any such explosion of redundant CCG derivations. In particular, it is proved in §4.2 that the method constructs exactly one syntactic structure per semantic reading—e.g., just two parses for (3). All other parses are suppressed by simple normal-form constraints that are enforced throughout the parsing process. This approach works because CCG’s spurious ambiguities arise (as is shown) in only a small set of circumstances. Although similar work has been attempted in the past, with varying degrees of success [\citenameKarttunen1986, \citenameWittenburg1986, \citenamePareschi & Steedman1987, \citenameBouma1989, \citenameHepple & Morrill1989, \citenameKönig1989, \citenameVijay-Shanker & Weir1990, \citenameHepple1990, \citenameMoortgat1990, \citenameHendriks1993, \citenameNiv1994], this appears to be the first full normal-form result for a categorial formalism having more than context-free power.
2 Definitions and Related Work
CCG may be regarded as a generalization of context-free grammar (CFG)—one where a grammar has infinitely many nonterminals and phrase-structure rules. In addition to the familiar atomic nonterminal categories (typically S for sentences, N for nouns, NP for noun phrases, etc.), CCG allows infinitely many slashed categories. If and are categories, then (respectively ) is the category of an incomplete that is missing a at its right (respectively left). Thus verb phrases are analyzed as subjectless sentences SNP, while “John likes” is an objectless sentence or S/NP. A complex category like ((SNP)(SNP))/N may be written as SNP(SNP)/N, under a convention that slashes are left-associative.
The results herein apply to the TAG-equivalent CCG formalization given in [\citenameJoshi et al.1991].22 2 This formalization sweeps any type-raising into the lexicon, as has been proposed on linguistic grounds [\citenameDowty1988, \citenameSteedman1991, and others]. It also treats conjunction lexically, by giving “and” the generalized category and barring it from composition. In this variety of CCG, every (non-lexical) phrase-structure rule is an instance of one of the following binary-rule templates (where ):
- (4)
Forward generalized composition >B:
Backward generalized composition <B:
Instances with are called application rules, and instances with are called composition rules. In a given rule, would be instantiated as categories like NP, S/NP, or SNP(SNP)/N. Each of through would be instantiated as either / or .
A fixed CCG grammar need not include every phrase-structure rule matching these templates. Indeed, [\citenameJoshi et al.1991] place certain restrictions on the rule set of a CCG grammar, including a requirement that the rule degree is bounded over the set. The results of the present paper apply to such restricted grammars and also more generally, to any CCG-style grammar with a decidable rule set.
Even as restricted by [\citenameJoshi et al.1991], CCGs have the “mildly context-sensitive” expressive power of Tree Adjoining Grammars (TAGs). Most work on spurious ambiguity has focused on categorial formalisms with substantially less power. [\citenameHepple1990] and [\citenameHendriks1993], the most rigorous pieces of work, each establish a normal form for the syntactic calculus of [\citenameLambek1958], which is weakly context-free. [\citenameKönig1989, \citenameMoortgat1990] have also studied the Lambek calculus case. [\citenameHepple & Morrill1989], who introduced the idea of normal-form parsing, consider only a small CCG fragment that lacks backward or order-changing composition; [\citenameNiv1994] extends this result but does not show completeness. [\citenameWittenburg1987] assumes a CCG fragment lacking order-changing or higher-order composition; furthermore, his revision of the combinators creates new, conjoinable constituents that conventional CCG rejects. [\citenameBouma1989] proposes to replace composition with a new combinator, but the resulting product-grammar scheme assigns different types to “John likes” and “Mary pretends to like,” thus losing the ability to conjoin such constituents or subcategorize for them as a class. [\citenamePareschi & Steedman1987] do tackle the CCG case, but [\citenameHepple1987] shows their algorithm to be incomplete.
3 Overview of the Parsing Strategy
As is well known, general CFG parsing methods can be applied directly to CCG. Any sort of chart parser or non-deterministic shift-reduce parser will do. Such a parser repeatedly decides whether two adjacent constituents, such as S/NP and NP/N, should be combined into a larger constituent such as S/N. The role of the grammar is to state which combinations are allowed. The key to efficiency, we will see, is for the parser to be less permissive than the grammar—for it to say “no, redundant” in some cases where the grammar says “yes, grammatical.”
(5) shows the constituents that untrammeled CCG will find in the course of parsing “John likes Mary.” The spurious ambiguity problem is not that the grammar allows (5c), but that the grammar allows both (5f) and (5g)—distinct parses of the same string, with the same meaning.
- (5)
- a.
[John]S/(SNP)
- b.
[likes](SNP)/NP
- c.
[John likes]S/NP
- d.
[Mary]NP
- e.
[likes Mary]SNP
- f.
[[John likes] Mary]S to be disallowed
- g.
[John [likes Mary]]S
- a.
The proposal is to construct all constituents shown in (5) except for (5f). If we slightly constrain the use of the grammar rules, the parser will still produce (5c) and (5d)—constituents that are indispensable in contexts like (1)—while refusing to combine those constituents into (5f). The relevant rule S/NP NP S will actually be blocked when it attempts to construct (5f). Although rule-blocking may eliminate an analysis of the sentence, as it does here, a semantically equivalent analysis such as (5g) will always be derivable along some other route.
In general, our goal is to discover exactly one analysis for each substring, meaning pair. By practicing “birth control” for each bottom-up generation of constituents in this way, we avoid a population explosion of parsing options. “John likes Mary” has only one reading semantically, so just one of its analyses (5f)–(5g) is discovered while parsing (6). Only that analysis, and not the other, is allowed to continue on and be built into the final parse of (6).
- (6)
that galoot in the corner that thinks [John likes Mary]S
For a chart parser, where each chart cell stores the analyses of some substring, this strategy says that all analyses in a cell are to be semantically distinct. [\citenameKarttunen1986] suggests enforcing that property directly—by comparing each new analysis semantically with existing analyses in the cell, and refusing to add it if redundant—but [\citenameHepple & Morrill1989] observe briefly that this is inefficient for large charts.33 3 How inefficient? (i) has exponentially many semantically distinct parses: yields 82,756,612 parses in = 48,620 equivalence classes. Karttunen’s method must therefore add 48,620 representative parses to the appropriate chart cell, first comparing each one against all the previously added parses—of which there are 48,620/2 on average—to ensure it is not semantically redundant. (Additional comparisons are needed to reject parses other than the lucky 48,620.) Adding a parse can therefore take exponential time. (i) Structure sharing does not appear to help: parses that are grouped in a parse forest have only their syntactic category in common, not their meaning. Karttunen’s approach must tease such parses apart and compare their various meanings individually against each new candidate. By contrast, the method proposed below is purely syntactic—just like any “ordinary” parser—so it never needs to unpack a subforest, and can run in polynomial time. The following sections show how to obtain effectively the same result without doing any semantic interpretation or comparison at all.
4 A Normal Form for “Pure” CCG
It is convenient to begin with a special case. Suppose the CCG grammar includes not some but all instances of the binary rule templates in (4). (As always, a separate lexicon specifies the possible categories of each word.) If we group a sentence’s parses into semantic equivalence classes, it always turns out that exactly one parse in each class satisfies the following simple declarative constraints:
- (7)
- a.
No constituent produced by >B, any , ever serves as the primary (left) argument to >B, any .
- b.
No constituent produced by <B, any , ever serves as the primary (right) argument to <B, any .
- a.
The notation here is from (4). More colloquially, (7) says that the output of rightward (leftward) composition may not compose or apply over anything to its right (left). A parse tree or subtree that satisfies (7) is said to be in normal form (NF).
As an example, consider the effect of these restrictions on the simple sentence “John likes Mary.” Ignoring the tags –ot, –fc, and –bc for the moment, (8a) is a normal-form parse. Its competitor (8b) is not, nor is any larger tree containing (8b). But non-standard constituents are allowed when necessary: (8c) is in normal form (cf. (1)).
- (8)
It is not hard to see that (7a) eliminates all but right-branching parses of “forward chains” like A/B B/C C or A/B/C C/D D/E/F/G G/H, and that (7b) eliminates all but left-branching parses of “backward chains.” (Thus every functor will get its arguments, if possible, before it becomes an argument itself.) But it is hardly obvious that (7) eliminates all of CCG’s spurious ambiguity. One might worry about unexpected interactions involving crossing composition rules like A/B BC AC. Significantly, it turns out that (7) really does suffice; the proof is in §4.2.
- (9)
–fc output of >B, some (a forward composition rule) –bc output of <B, some (a backward composition rule) –ot output of >B0 or <B0 (an application rule), or lexical item - (10)
- a.
Forward application >B0:
- b.
Backward application <B0:
- c.
Fwd. composition >B :
- d.
Bwd. composition <B :
- a.
- (11)
- a.
Syn/sem for >B :
- b.
Syn/sem for <B : yzn⋯z2z1 ⇕ g
- a.
- (12)
a. A/C/F A/C/D A/B B/C/D D/F D/E E/F b. A/C/F A/C/E A/C/D A/B B/C/D D/E E/F c.
It is trivial to modify any sort of CCG parser to find only the normal-form parses. No semantics is necessary; simply block any rule use that would violate (7). In general, detecting violations will not hurt performance by more than a constant factor. Indeed, one might implement (7) by modifying CCG’s phrase-structure grammar. Each ordinary CCG category is split into three categories that bear the respective tags from (9). The 24 templates schematized in (10) replace the two templates of (4). Any CFG-style method can still parse the resulting spuriosity-free grammar, with tagged parses as in (8). In particular, the polynomial-time, polynomial-space CCG chart parser of [\citenameVijay-Shanker & Weir1993] can be trivially adapted to respect the constraints by tagging chart entries.
It is interesting to note a rough resemblance between the tagged version of CCG in (10) and the tagged Lambek calculus L*, which [\citenameHendriks1993] developed to eliminate spurious ambiguity from the Lambek calculus L. Although differences between CCG and L mean that the details are quite different, each system works by marking the output of certain rules, to prevent such output from serving as input to certain other rules.
4.1 Semantic equivalence
We wish to establish that each semantic equivalence class contains exactly one NF parse. But what does “semantically equivalent” mean? Let us adopt a standard model-theoretic view.
For each leaf (i.e., lexeme) of a given syntax tree, the lexicon specifies a lexical interpretation from the model. CCG then provides a derived interpretation in the model for the complete tree. The standard CCG theory builds the semantics compositionally, guided by the syntax, according to (11). We may therefore regard a syntax tree as a static “recipe” for combining word meanings into a phrase meaning.
One might choose to say that two parses are semantically equivalent iff they derive the same phrase meaning. However, such a definition would make spurious ambiguity sensitive to the fine-grained semantics of the lexicon. Are the two analyses of VP/VP VP VPVP semantically equivalent? If the lexemes involved are “softly knock twice,” then yes, as softly(twice(knock)) and twice(softly(knock)) arguably denote a common function in the semantic model. Yet for “intentionally knock twice” this is not the case: these adverbs do not commute, and the semantics are distinct.
It would be difficult to make such subtle distinctions rapidly. Let us instead use a narrower, “intensional” definition of spurious ambiguity. The trees in (12a–b) will be considered equivalent because they specify the same “recipe,” shown in (12c). No matter what lexical interpretations are fed into the leaves A/B, B/C/D, D/E, E/F, both the trees end up with the same derived interpretation, namely a model element that can be determined from by calculating .
By contrast, the two readings of “softly knock twice” are considered to be distinct, since the parses specify different recipes. That is, given a suitably free choice of meanings for the words, the two parses can be made to pick out two different VP-type functions in the model. The parser is therefore conservative and keeps both parses.44 4 [\citenameHepple & Morrill1989, \citenameHepple1990, \citenameHendriks1993] appear to share this view of semantic equivalence. Unlike [\citenameKarttunen1986], they try to eliminate only parses whose denotations (or at least -terms) are systematically equivalent, not parses that happen to have the same denotation through an accident of the lexicon.
4.2 Normal-form parsing is safe & complete
The motivation for producing only NF parses (as defined by (7)) lies in the following existence and uniqueness theorems for CCG.
Theorem 1
Assuming “pure CCG,” where all possible rules are in the grammar, any parse tree is semantically equivalent to some NF parse tree .
(This says the NF parser is safe for pure CCG: we will not lose any readings by generating just normal forms.)
Theorem 2
Given distinct NF trees (on the same sequence of leaves). Then and are not semantically equivalent.
(This says that the NF parser is complete: generating only normal forms eliminates all spurious ambiguity.)
Detailed proofs of these theorems are available on the cmp-lg archive, but can only be sketched here. Theorem 1 is proved by a constructive induction on the order of , given below and illustrated in (13):
- •
For a leaf, put .
- •
( denotes the parse tree formed by combining subtrees via rule .)
If , then take , which exists by inductive hypothesis, unless this is not an NF tree. In the latter case, WLOG, is a forward rule and for some forward composition rule . Pure CCG turns out to provide forward rules and such that is a constituent and is semantically equivalent to . Moreover, since serves as the primary subtree of the NF tree , cannot be the output of forward composition, and is NF besides. Therefore is NF: take .
- (13)
If not output of fwd. composition,
else
NF= def \stackrel{{\scriptstyle\mbox{def}}}{{=}} ( α ) (\alpha)
This construction resembles a well-known normal-form reduction procedure that [\citenameHepple & Morrill1989] propose (without proving completeness) for a small fragment of CCG.
The proof of theorem 2 (completeness) is longer and
more subtle. First it shows, by a simple induction, that since
- (a)
There are trees
and rulesβ , γ \beta,\gamma such thatR ≠ R ′ R\neq R^{\prime} is a subtree of< R , β , γ > {\mbox{$<$}R,\beta,\gamma\mbox{$>$}} andα \alpha is a subtree of< R ′ , β , γ > {\mbox{$<$}R^{\prime},\beta,\gamma\mbox{$>$}} . (For example, S/S Sα ′ \alpha^{\prime} S may form a constituent by either <B1x or >B1x.)\ \backslash - (b)
There is a tree
that appears as a subtree of bothγ \gamma andα \alpha , but combines to the left in one case and to the right in the other.α ′ \alpha^{\prime}
Either condition, the proof shows, leads to different “immediate
scope” relations in the full trees
The notion of scope is relevant because semantic interpretations for
CCG constituents can be written as restricted lambda terms, in such a
way that constituents having distinct terms must have different
interpretations in the model (for suitable interpretations of the
words, as in §4.1). Theorem 2 is
proved by showing that the terms for
Similar theorems for the Lambek calculus were previously shown by [\citenameHepple1990, \citenameHendriks1993]. The present proofs for CCG establish a result that has long been suspected: the spurious ambiguity problem is not actually very widespread in CCG. Theorem 2 says all cases of spurious ambiguity can be eliminated through the construction given in theorem 1. But that construction merely ensures a right-branching structure for “forward constituent chains” (such as A/B B/C C or A/B/C C/D D/E/F/G G/H), and a left-branching structure for backward constituent chains. So these familiar chains are the only source of spurious ambiguity in CCG.
5 Extending the Approach to “Restricted” CCG
The “pure” CCG of §4 is a fiction. Real CCG
grammars can and do choose a subset of the possible rules. For
instance, to rule out (14), the (crossing) backward rule
N/N N
- (14)
[theNP/N [[bigN/N [that likes John]N
N ]N/N galootN ]N ]NP\ \backslash
If some rules are removed from a “pure” CCG grammar, some
parses will become unavailable. Theorem 2 remains
true (
In the sort of restricted grammar where theorem 1 does not obtain, can we still find one (possibly non-NF) parse per equivalence class? Yes: a different kind of efficient parser can be built for this case.
Since the new parser must be able to generate a non-NF parse when no equivalent NF parse is available, its method of controlling spurious ambiguity cannot be to enforce the constraints (7). The old parser refused to build non-NF constituents; the new parser will refuse to build constituents that are semantically equivalent to already-built constituents.
This idea originates with [\citenameKarttunen1986]. However, we can take
advantage of the core result of this paper,
theorems 1 and 2, to do
Karttunen’s redundancy check in
The insight is that theorems 1 and 2 establish a one-to-one map between semantic equivalence classes and normal forms of the pure (unrestricted) CCG:
- (15)
Two parses
of the pure CCG are semantically equivalent iff they have the same normal form:α , α ′ \alpha,\alpha^{\prime} .𝑁𝐹 ( α ) = 𝑁𝐹 ( α ′ ) {NF}(\alpha)={NF}(\alpha^{\prime})
The NF function is defined recursively by §4.2’s
proof of theorem 1; semantic equivalence is also
defined independently of the grammar. So (15) is meaningful and true
even if
Figure (1) gives an efficient CKY-style algorithm
based on this insight. (Parsing strategies besides CKY would also
work, in particular [\citenameVijay-Shanker & Weir1993].) The management of
cached NFs in steps 9, 12, and
especially 16 ensures that duplicate NFs never enter the
oldNFs array: thus any alternative copy of
The function PreferableTo(
- 1.
for
:= 1 to ni i - 2.
:=C [ i − 1 , i ] C[i-1,i] (* word𝙻𝚎𝚡𝙲𝚊𝚝𝚜 ( 𝚠𝚘𝚛𝚍 [ i ] ) {\tt LexCats}({\tt word}[i]) stretches from pointi i to pointi − 1 i-1 *)i i - 3.
for
:= 2 to nw i d t h width - 4.
for
:= 0 tos t a r t start 𝚗 − w i d t h {\tt n}-width - 5.
:=e n d end s t a r t + w i d t h start+width - 6.
for
:=m i d mid tos t a r t + 1 start+1 e n d − 1 end-1 - 7.
for each parse tree
that could be formed by combining someα = < R , β , γ > \alpha={\mbox{$<$}R,\beta,\gamma\mbox{$>$}} -
with someβ ∈ C [ s t a r t , m i d ] \beta\in C[start,mid] by a ruleγ ∈ C [ m i d , e n d ] \gamma\in C[mid,end] of the (restricted) grammarR R - 8.
:=α . 𝑛𝑓 \alpha.{nf} (* can be computed in constant time using the𝙽𝙵 ( α ) {\tt NF}(\alpha) fields of. 𝑛𝑓 .{nf} ,β \beta , andγ \gamma -
other constituents already in
. Subtrees are also NF trees. *)C C - 9.
:=𝑒𝑥𝑖𝑠𝑡𝑖𝑛𝑔𝑁𝐹 {existingNF} 𝑜𝑙𝑑𝑁𝐹𝑠 [ α . 𝑛𝑓 . 𝑟𝑢𝑙𝑒 , α . 𝑛𝑓 . 𝑙𝑒𝑓𝑡𝑐ℎ𝑖𝑙𝑑 . 𝑠𝑒𝑞𝑛𝑜 , α . 𝑛𝑓 . 𝑟𝑖𝑔ℎ𝑡𝑐ℎ𝑖𝑙𝑑 . 𝑠𝑒𝑞𝑛𝑜 ] {oldNFs}[\alpha.{nf.rule},\alpha.{nf.leftchild.seqno},\alpha.{nf.rightchild.seqno}] - 10.
if undefined(existingNF) (* the first parse with this NF *)
- 11.
.nf.seqno := (counter :=α \alpha ) (* number the new NF & add it to oldNFs *)𝑐𝑜𝑢𝑛𝑡𝑒𝑟 + 1 {counter}+1 - 12.
:=𝑜𝑙𝑑𝑁𝐹𝑠 [ α . 𝑛𝑓 . r u l e , α . 𝑛𝑓 . 𝑙𝑒𝑓𝑡𝑐ℎ𝑖𝑙𝑑 . 𝑠𝑒𝑞𝑛𝑜 , α . 𝑛𝑓 . 𝑟𝑖𝑔ℎ𝑡𝑐ℎ𝑖𝑙𝑑 . 𝑠𝑒𝑞𝑛𝑜 ] {oldNFs}[\alpha.{nf}.rule,\alpha.{nf.leftchild.seqno},\alpha.{nf.rightchild.seqno}] .nfα \alpha - 13.
add
toα \alpha C [ s t a r t , e n d ] C[start,end] - 14.
.nf.currparse :=α \alpha α \alpha - 15.
elsif
(* replace reigning parse? *)𝙿𝚛𝚎𝚏𝚎𝚛𝚊𝚋𝚕𝚎𝚃𝚘 ( α , 𝑒𝑥𝑖𝑠𝑡𝑖𝑛𝑔𝑁𝐹 . c u r r p a r s e ) {\tt PreferableTo}(\alpha,{existingNF}.currparse) - 16.
.nf :=α \alpha (* use cached copy of NF, not new one *)𝑒𝑥𝑖𝑠𝑡𝑖𝑛𝑔𝑁𝐹 {existingNF} - 17.
remove
.nf.currparse fromα \alpha C [ s t a r t , e n d ] C[start,end] - 18.
add
toα \alpha C [ s t a r t , e n d ] C[start,end] - 19.
.nf.currparse :=α \alpha α \alpha - 20.
return(all parses from
having root category S)C [ 0 , n ] C[0,n]
[\citenameVijay-Shanker & Weir1990] also give a method for removing “one well-known source” of spurious ambiguity from restricted CCGs; §4.2 above shows that this is in fact the only source. However, their method relies on the grammaticality of certain intermediate forms, and so can fail if the CCG rules can be arbitrarily restricted. In addition, their method is less efficient than the present one: it considers parses in pairs, not singly, and does not remove any parse until the entire parse forest has been built.
6 Extensions to the CCG Formalism
In addition to the B
- (16)
- a.
>S: x/y
z ⇕ f∣ 1 \,\mid_{1} y ∣ 1 z ⇕ g → x ∣ 1 z ⇕ λ z . f ( z ) ( g ( z ) ) \begin{array}[t]{c}y\mbox{$\,\mid_{1}$}z\\ \Updownarrow\\ g\end{array}\ \rightarrow\ \begin{array}[t]{c}x\mbox{$\,\mid_{1}$}z\\ \Updownarrow\\ \lambda z.f(z)(g(z))\end{array} - b.
<S:
y ∣ 1 z x \ y ∣ 1 z → x ∣ 1 z y\mbox{$\,\mid_{1}$}z\hskip 8.00003ptx\mbox{$\backslash$}y\mbox{$\,\mid_{1}$}z\hskip 8.00003pt\rightarrow\hskip 11.38109ptx\mbox{$\,\mid_{1}$}z
- a.
Although S interacts with B
- (17)
- a.
VP0/NP (<Bx) VP1/NP (<Sx)
VP 2 /NP filed \begin{array}[t]{c}\mbox{{\tt{VP${}_{2}$/NP}}}\\ \mbox{\small filed}\end{array} VP 1 \ VP 2 /NP [without-reading] \begin{array}[t]{c}\mbox{{\tt{VP${}_{1}$\mbox{$\backslash$}VP${}_{2}$/NP}}}\\ \mbox{\small[without-reading]}\end{array} VP 0 \ VP 1 yesterday \begin{array}[t]{c}\mbox{{\tt{VP${}_{0}$\mbox{$\backslash$}VP${}_{1}$}}}\\ \mbox{\small yesterday}\end{array} - b.
VP0/NP (<Sx) VP2/NP VP0
VP2/NP (<B2) VP1\ \backslash VP2/NP VP0\ \backslash VP1\ \backslash
- a.
- (18)
- a.
No constituent produced by >B
, anyn n , ever serves as the primary (left) argument to >S.n ≥ 2 n\geq 2 - b.
No constituent produced by <B
, anyn n , ever serves as the primary (right) argument to <S.n ≥ 2 n\geq 2
- a.
Type-raising presents a greater problem. Various new spurious
ambiguities arise if it is permitted freely in the grammar. In
principle one could proceed without grammatical type-raising:
[\citenameDowty1988, \citenameSteedman1991] have argued on linguistic grounds that
type-raising should be treated as a mere lexical redundancy property.
That is, whenever the lexicon contains an entry of a certain category
X, with semantics
- (19)
[JohnNP leftS
NP]S vs. [JohnS/(S\ \backslash NP) leftS\ \backslash NP]S\ \backslash - (20)
[S/(S
NPS) [S\ \backslash NPS/NPO/NPI T\ \backslash (T/NPO)]]S/SI\ \backslash
vs. [S/(S NPS) S\ \backslash NPS/NPO/NPI] T\ \backslash (T/NPO)]S/SI\ \backslash
7 Conclusions
The main contribution of this work has been formal: to establish a normal form for parses of “pure” Combinatory Categorial Grammar. Given a sentence, every reading that is available to the grammar has exactly one normal-form parse, no matter how many parses it has in toto.
A result worth remembering is that, although TAG-equivalent CCG allows
free interaction among forward, backward, and crossed composition
rules of any degree, two simple constraints serve to eliminate all
spurious ambiguity. It turns out that all spurious ambiguity arises from
associative “chains” such as A/B B/C C or A/B/C C/D
D/E
These normal-form results for pure CCG lead directly to useful parsers for real, restricted CCG grammars. Two parsing algorithms have been presented for practical use. One algorithm finds only normal forms; this simply and safely eliminates spurious ambiguity under most real CCG grammars. The other, more complex algorithm solves the spurious ambiguity problem for any CCG grammar, by using normal forms as an efficient tool for grouping semantically equivalent parses. Both algorithms are safe, complete, and efficient.
In closing, it should be repeated that the results provided are for
the TAG-equivalent B
References
- [\citenameBouma1989] Gosse Bouma. 1989. Efficient processing of flexible categorial grammar. In Proceedings of the Fourth Conference of the European Chapter of the Association for Computational Linguistics, 19–26, University of Manchester, April.
- [\citenameDowty1988] David Dowty. 1988. Type raising, functional composition, and non-constituent conjunction. In R. Oehrle, E. Bach and D. Wheeler, editors, Categorial Grammars and Natural Language Structures. Reidel.
- [\citenameHepple1987] Mark Hepple. 1987. Methods for parsing combinatory categorial grammar and the spurious ambiguity problem. Unpublished M.Sc. thesis, Centre for Cognitive Science, University of Edinburgh.
- [\citenameHepple1990] Mark Hepple. 1990. The Grammar and Processing of Order and Dependency: A Categorial Approach. Ph.D. thesis, University of Edinburgh.
- [\citenameHepple & Morrill1989] Mark Hepple and Glyn Morrill. 1989. Parsing and derivational equivalence. In Proceedings of the Fourth Conference of the European Chapter of the Association for Computational Linguistics, 10–18, University of Manchester, April.
- [\citenameHendriks1993] Herman Hendriks. 1993. Studied Flexibility: Categories and Types in Syntax and Semantics. Ph.D. thesis, Institute for Logic, Language, and Computation, University of Amsterdam.
- [\citenameJoshi et al.1991] Aravind Joshi, K. Vijay-Shanker, and David Weir. 1991. The convergence of mildly context-sensitive grammar formalisms. In Foundational Issues in Natural Language Processing, MIT Press.
- [\citenameKarttunen1986] Lauri Karttunen. 1986. Radical lexicalism. Report No. CSLI-86-68, CSLI, Stanford University.
- [\citenameKönig1989] E. König. 1989. Parsing as natural deduction. In Proceedings of the 27th Annual Meeting of the Association for Computational Linguistics, Vancouver.
- [\citenameLambek1958] J. Lambek. 1958. The mathematics of sentence structure. American Mathematical Monthly 65:154–169.
- [\citenameMoortgat1990] Michael Moortgat. 1990. Unambiguous proof representations for the Lambek Calculus. In Proceedings of the Seventh Amsterdam Colloquium.
- [\citenameNiv1994] Michael Niv. 1994. A psycholinguistically motivated parser for CCG. In Proceedings of the 32nd Annual Meeting of the ACL, Las Cruces, NM, June. cmp-lg/9406031.
- [\citenamePareschi & Steedman1987] Remo Pareschi and Mark Steedman. 1987. A lazy way to chart parse with combinatory grammars. In Proceedings of the 25th Annual Meeting of the Association for Computational Linguistics, Stanford University, July.
- [\citenamePrevost & Steedman1994] Scott Prevost and Mark Steedman. 1994. Specifying intonation from context for speech synthesis. Speech Communication, 15:139-153. cmp-lg/9407015.
- [\citenameSteedman1990] Mark Steedman. 1990. Gapping as constituent coordination. Linguistics and Philosophy, 13:207–264.
- [\citenameSteedman1991] Mark Steedman. 1991. Structure and intonation. Language, 67:260–296.
- [\citenameSteedman1987] Mark Steedman. 1987. Combinatory grammars and parasitic gaps. Natural Language and Linguistic Theory, 5:403–439.
- [\citenameSzabolcsi1989] Anna Szabolcsi. 1989. Bound variables in syntax: Are there any? In R. Bartsch, J. van Benthem, and P. van Emde Boas (eds.), Semantics and Contextual Expression, 295–318. Foris, Dordrecht.
- [\citenameVijay-Shanker & Weir1990] K. Vijay-Shanker and David Weir. 1990. Polynomial time parsing of combinatory categorial grammars. In Proceedings of the 28th Annual Meeting of the Association for Computational Linguistics.
- [\citenameVijay-Shanker & Weir1993] K. Vijay-Shanker and David Weir. 1993. Parsing some constrained grammar formalisms. Computational Linguistics, 19(4):591–636.
- [\citenameVijay-Shanker & Weir1994] K. Vijay-Shanker and David Weir. 1994. The equivalence of four extensions of context-free grammars. Mathematical Systems Theory, 27:511–546.
- [\citenameWittenburg1986] Kent Wittenburg. 1986. Natural Language Parsing with Combinatory Categorial Grammar in a Graph-Unification-Based Formalism. Ph.D. thesis, University of Texas.
- [\citenameWittenburg1987] Kent Wittenburg. 1987. Predictive combinators: A method for efficient parsing of Combinatory Categorial Grammars. In Proceedings of the 25th Annual Meeting of the ACL, Stanford Univ., July.