Tree Syntax of Natural Language: Lecture Note 1 For COM S 474 Mats Rooth
Tree Syntax of Natural Language: Lecture Note 1 For COM S 474 Mats Rooth
PP NP VP
PRP
IN NP VBP RB VP
they
in have even
PRP$ JJ NNS VBN SBAR
that
NP VP
DT JJ NN SBAR VBZ NP
that
NP VP DT NN VBN PP
Introduction
In linguistics and natural language processing, it is common to attribute labeled tree
structures called syntactic trees or parse trees to phrases and sentences of human
languages. An example is found above. The tree consists of a set of vertices (also
known as nodes or addresses), including a unique root vertex which is drawn at the
top. Each vertex has a label and an ordered sequence of children. In the example,
the root vertex has label S and three children, which (in order) have labels PP, NP
and VP. The child labeled VP has three children, which (in order) have the labels
VBP, RB and VP. The child of VP with label VBP has one child, which has the label
“have”, and the vertex labeled “have” has no children. Vertices which have no
childeren are called terminal nodes. Other nodes are non-terminal nodes. A vertex
right above a terminal node is a pre-terminal node. Table 1 gives the conventional
long pronunciations of the pre-terminal labels used in the example tree. These pre-
terminal labels correspond to the parts of speech of traditional grammar. In NLP
usage, the term part of speech is lengthened to part of speech tag, and then shortened
to tag. So in this tree, the tag for built is VBD.
TABLE 1.
long
label name example
NN singular noun pyramid
NNS plural noun lectures
NNP proper noun Khufu
VBD past tense verb claimed
VBZ 3rd person singular is
present tense verb
VBP non-3rd person sin- have
gular present tense
verb
VBN past participle found
PRP pronoun they
PRP$ possessive pronoun their
JJ adjective public
IN preposition in
complementizer that
DT determiner the
Table 2 gives the other non-terminal labels in the tree. The labels ending in the let-
ter P are known as phrasal categories, such as noun phrase and verb phrase. A
noun phrase is, roughly speaking, a phrase organized around a noun. This noun is
known as the head of the phrase. The head of the first NP is lectures, and the head
of the second one is evidence. Similarly, a verb phrase is a phrase organized around
a verb, and a prepositional phrase is is a phrase organized around a preposition.
TABLE 2.
It is useful to become familiar with the symbols used in syntactic trees, and with
the tree analysis of common constructions and sentence types. In these notes, we
use the system of tree annotations from the Penn Treebank of English, which is a
database of trees for about 50,000 English sentences. The system is on one hand a
scientific hypothesis about the structure of the English language, and on the other
hand an engineering standard which is used in designing and testing NLP systems.
Treebanks for other languages (such as Chinese and German) have been published.
NP VP NP VP NP VP NP VP NP VP
This distinction is expressed in the part of speech tag, but not in the VP or S label.
Where there are auxiliary verbs (such as the modal verbs will, can, and may, or vari-
ous forms of have and be), the verbs are arrayed in a right-branching structure of
VPs:
S S S
NP VP NP VP NP VP
high high
The rightmost verbs in these structures are called main verbs, in opposition to auxil-
iary verbs. However, in the Penn Treebank tag vocabulary, auxiliary verbs are not
given tags different from those of main verbs, with the exception of modals and to.
TABLE 3.
TABLE 3.
Most distinctions between tags correspond to overt differences in the form of the
verb. VBP and VB systematically have the same form, with the exception of are/be..
For verbs including the most regular ones (such as answer), there is no distinction in
form between VBD and VBN. In general, the assignment of tags is determined by
context in the tree, not just by word form.
The VB form a verb is a “base” form of the verb in that, in the case of regular verbs,
other forms are derived from it by adding suffixes. This process may be accompa-
nied by minor alterations in spelling, such as consonant doubling (sit/VB, sitting/
VBG) or deletion of an e (site/VB, siting/VBG). Such processes are much more
elaborate in other languages.
S S
NP VP NP VP
PRP PRP
VBD SBAR VBD SBAR
they they
believed waited
IN S IN S
that for
NP VP NP VP
NNS NNS
MD VP TO VP
prices prices
would VB to VB
rise rise
Noun phrases
A minimal noun phrase consists of just a noun:
NP NP NP NP
A singular noun has tag NN, a plural noun has tag NNS, a singular proper noun has
tag NNP, and a plural proper noun has tag NPS.
What is called a determiner may be added at the start of the noun phrase:
NP NP NP
DT NN DT NN DT NNS
Some determiners can form noun phrases in isolation. The interpretation is ellipti-
cal, meaning that the understood noun is picked up from context.
Many impressed me.
Each impressed me.
Some impressed me.
*The impressed me.
*A impressed me.
*Every impressed me.
In the tree structure for these examples, an NP node dominates a DT and nothing
else:
NP
DT
some
The star notation used above is used to mark sentences which do not sound right to
the native speaker, and which, though they may possibly be comprehensible, would
not be used. Such sentences are ungrammatical in the language under discussion.
Scientific and technical work on human language takes a naturalistic view on what
counts as grammatical: if a sentence sounds right to native speakers of the language,
or if one can find the sentence (or a corresponding sentence pattern) being used reg-
ularly, then the sentence is considered grammatical.
DT JJ NN DT NN NN DT VBG NN DT VBN NN
NP
DT NN NN NN NN
Arguably, sequences of modifiers have internal structure. There are two meanings
for school law review (a law review at a school, and a review of school law, possibly
performed in another institution such as a legislature). These correlate with two
intonations (with primary strees on law, and primary stress on school, respectively).
It is plausibly to attribute these different meanings and pronunciations to different
tree structures, along the following lines.
NP NP
DT NN NN DT NN NN
a school a review
NN NN NN NN
Prepositional phrases
A typical prepositional phrase consists of a preposition (tag IN) followed by a noun
phrase. The tree structure is as follows.
PP PP PP
IN NP IN NP IN NP
TABLE 4.
Complementation
A simple transitive sentence such as the cat ate a rat consists of a subject, a verb,
and an object. The object is an NP just like the subject, and it is represented as a
child of VP:
NP VP
DT NN VBD NP
the rat
The object NP is said to be a complement of the verb ate. Ditransitive verbs are
found with two noun phrase complements:
NP VP
DT NN VBD NP NP
Prepositional compements
PP complements are PP children of VP, occurring alone or with another comple-
ment:
S S S
NP VP NP VP NP VP
Clausal complements
Clausal complements are sentences embedded as complements of a verb. Like other
complements of verbs, they are children of VP:
S S
NP VP NP VP
PRP PRP
VBZ SBAR MD ADVP VP
he he
knows will RB
IN S VB SBAR
never
that know
NP VP IN S
PRP whether
VBD NP NP VP
he
made PRP
DT NN VBD NP
he
a mistake made
DT NN
a mistake
The label for the complement is SBAR; the SBAR begins with a complementizer
such as that, whether, or if. The complementizers have the prepositional tag IN. The
SBAR has an S child, which in these examples is a tensed sentence. Even if there is
no complementizer, a SBAR node is present:
NP VP
PRP
VBZ SBAR
he
knows S
NP VP
PRP
VBD NP
he
made
DT NN
a mistake
An alternative label for the complementizer is C, and an alternative label for SBAR
is CP (complementizer phrase).
Selection
It is characteristic of complementation that the kind of complement which is possi-
ble correlates with the verb. If we switch the verbs in the examples above, the result
is often an ungrammatical sentence:
* I depend her.
* I ate to her about him.
*He believed to her.
*He spoke whether he made a mistake.
A verb is said to select the complement or pattern of complements it can occur with.
The complements that a verb can occur with are a property of the individual word,
and this information is typically listed in a computational dictionary.