← 学习库 Speech and Language Processing 本册目录

12.7.2 Categorial Grammar

Categorial grammar is an early lexicalized grammar model (Adjukiewicz, 1935; Bar-Hillel, 1953). In this section we will give a simplified overview of one important extension to categorial grammar, combinatory categorial grammar or CCG (Steedman, 1989, 2000). A categorial grammar has two components. The categorial lexicon associates each word with a syntactic and semantic category. The combinatory rules allow functions and arguments to be combined. There are two types of categories: functors and arguments. Arguments, like nouns, have simple categories like N. Verbs or determiners act as functors. For example, a determiner can be thought of as a function that applies to an N on its right to produce an NP. Such complex categories are

原书第 463 页
Image
Figure 12.15 A phrase structure tree from the Wall Street Journal component of the Penn Treebank 3
Image
Figure 12.16 The dependency tree produced from Fig. 12.15 by the algorithm given above.

built using the X/Y and X\Y operators. X/Y means a function from Y to X, that is, something which combines with a Y on its right to produce an X. Determiners thus receive the category NP/N: something that combines with an N on its right to produce an NP. Transitive verbs might have the category VP/NP; something that combines with an NP on the right to produce a VP. Ditransitive verbs like give might have the category (VP/NP)/NP; something which combines with an NP on its right to yield a transitive verb. The simplest combination rules just combine an X/Y with a Y on its right to produce an X or a X\Y with a Y on its left to produce an X.

Consider the simple sentence Harry eats apples from Steedman (1989). Instead

原书第 464 页
the . [exhale] . . . [inhale] . . uh does American airlines . offer any . one way flights . uh one way fares, for one hundred and sixty one dollars
[mm] i'd like to leave i guess between um . [smack] . five o'clock no, five o'clock and uh, seven o'clock . P M
all right, [throat_clear] . . i'd like to know the . give me the flight . times . in the morning . for September twentieth . nineteen ninety one
uh one way
. w- wha- what is the lowest, cost, fare
[click] . i need to fly, betwee- . leaving . Philadelphia . to, Atlanta [exhale]
on United airlines . . give me, the . . time . . from New York . [smack] . to Boise-, to . I'm sorry . on United airlines . [uh] give me the flight, numbers, the flight times from . [uh] Boston . to Dallas
Figure 12.17 Sample spoken utterances from users interacting with an ATIS system.

of using a primitive VP category, let's assume that a finite verb phrase like eat apples has the category (S\NP); something which combines with an NP on the left to produce a sentence. Harry and apples are both NPs. Eats is a finite transitive verb which combines with an NP on the right to produce a finite VP: (S\NP)/NP. The derivation of S proceeds as follows:

$$ \begin{array}{c}\text{Harry}\\\text{NP}\\\hline\\\hline S\end{array}\begin{array}{c}\text{eats}\\\text{(S\textbackslash NP)/NP}\\\hline\text{APP}\\\text{(NNP)}\end{array}\begin{array}{c}\text{apples}\\\text{NP}\\\hline\end{array} $$

Modern categorical grammars include more complex combinatory rules which are needed for coordination and other complex phenomena, and also include composition of semantic categories as well as syntactic ones. See the end of the chapter for a pointer to useful references.

12.8 SPOKEN LANGUAGE SYNTAX

The grammar of written English and the grammar of conversational spoken English share many features, but also differ in a number of respects. This section gives a quick sketch of a number of the characteristics of the syntax of spoken English.

We usually use the term utterance rather than sentence for the units of spoken language. Fig. 12.17 shows some sample spoken ATIS utterances that exhibit many aspects of spoken language grammar.

This is a standard style of transcription used in transcribing speech corpora for speech recognition. The comma “,” marks a short pause, and each period “.” marks a long pause. Fragments (incomplete words like wha- for incomplete what) are marked with with a dash, and the square brackets “[smack]” mark non-verbal events (lipsmacks, breaths, etc.).

There are a number of ways these utterances differ from written English sentences. One is in the lexical statistics; for example spoken English is much higher in pronouns.

原书第 465 页

than written English; the subject of a spoken sentence is almost invariably a pronoun. Spoken sentences often consist of short fragments or phrases (one way or around four p.m., which are less common in written English. Spoken sentences have phonological, prosodic, and acoustic characteristics that of course written utterances don't have; we will return to these in Ch. 8. Finally, spoken sentences have various kinds of disfluencies (hesitations, repairs, restarts, etc) to be discussed below.

← 12.7.1 The Relationship Between Dependencies and Heads12.8.1 Disfluencies and Repair →