Title: Techniques of Grammatical Analysis
1Techniques of Grammatical Analysis
- Rajat Kumar Mohanty
- rkm_at_cse.iitb.ac.in
- IIT Bombay
2What is Grammar?
- A theory of language
- A theory of competence of a native speaker
- An explicit model of competence
- A finite set of rules
3What are the requirements?
- A model of competence
- Should be able to generate an infinite set of
grammatical sentences of the language - Should not generate any ungrammatical ones
- Should be able to account for ambiguities
- If two sentences are understood to have same
meaning, the grammar should give the same
structure for both at some level - If two sentences are understood to have different
internal relationship, the grammar should assign
different structural description
4Techniques of Grammatical Analysis
- Two main devices
- Breaking up a string
- Sequential
- Hierarchical
- Transformational
- Labeling the constituents
- Morphological
- Categorial
- Functional
- A grammar may combine any of these devices for
grammatical analysis.
5(No Transcript)
6Breaking up and Labeling
- Sequential Breaking up
- Sequential Breaking up and Morphological labeling
- Sequential Breaking up and Categorial labeling
- Sequential Breaking up and Functional labeling
- Hierarchical Breaking up
- Hierarchical Breaking up and Categorial Labeling
- Hierarchical Breaking up and Functional Labeling
7Sequential Breaking up
- This device breaks up a sentence into a sequence
of morphemes - the boy s kill ed the un happy
rat s -
- raam ne dande se saap ko maar aa
- If a sentence is understood in two different
ways, a grammar should give two corresponding
descriptions - They can fish
- They are able to fish
- They put fish in cans
-
8Sequential Breaking up and Morphological labeling
After breaking up a sentence, we can give
morphological labels to each units
the boy s kill ed the un
happy rat s
word stem affix stem affix
word affix stem stem affix
raam ne dande se saap ko maar aa
word affix word affix
word affix word affix
9Sequential Breaking up and Categorical Labeling
- This boy can solve the problem
10Sequential Breaking up and Categorical Labeling
(continued)
- They can fish
-
- Pronoun Aux Verb
- They can fish
- Pronoun Verb Noun
11Sequential Breaking up and Categorical Labeling
(continued)
- They called her a taxi
- Pronoun Verb Pronoun Article Noun
- They said she was a taxi
- They called a taxi for her
12Sequential Breaking up and Functional labeling
Subject
Verbal
IO
DO
They called her a taxi
Object Complement
Subject
Verbal
DO
13Sequential Breaking up and Functional labeling
(continued)
Old men and women
Head
modifier
Head
coordinator
14Hierarchical Breaking up
- This device breaks up a sentence into its
constituents at different hierarchies or levels
Old men and women
Old men and women
men and women
and
women
Old men
Old
women
and
men
men
Old
15Hierarchical Breaking up and Categorial Labeling
ADJ
V
ADV
N
VP
NP
16Hierarchical Breaking up and Functional Labeling
- Immediate Constituent Analysis
- Construction types in terms of the function of
the constituents - Predication (subject predicate)
- Modification (modifier head)
- Complementation (verbal complement)
- Subordination (subordinator dependent unit)
- Coordination (independent unit coordinator
independent unit)
17In the morning, the sky looked much
brighter
Head
Mod
Head
Mod
Head
Verbal
Complement
Predicate
Subject
Sub
DU
Head
Modifier
18Hierarchical Breaking up and Categorial
/Functional Labeling
- Hierarchical Breaking up coupled with Categorial
/Functional Labeling is a very powerful device - But there are ambiguities which demand something
more powerful
19Love of God
- Someone loves God
- God loves someone
Love of God
Love of God
Head
Modifier
Noun Phrase
Prepositional Phrase
DU
Sub-
God
of
love
love
of
God
20Generative Grammar
- A generative grammar
- generates all the grammatical sentences of the
language - rejects all the ungrammatical ones
- It is free to choose and combine any of the
techniques of breaking up and labeling - Depending upon what tools the grammar combines,
we have different types of grammar
21Types of Generative Grammar
- Finite State Model
- (sequential)
- Phrase Structure Model
- (sequential hierarchical)
- Transformational Model
- (sequential hierarchical transformational)
22Phrase Structure Model
- Inadequacies
- Ambiguity
- Paraphrase Relationship
- Constructional Homonymy
23Ambiguity
- If a sentence is understood to have two meanings,
a grammar should give two corresponding
structural descriptions - PS grammar fails to meet this demand
- The shooting of the hunters
- The hunter shot someone
- Someone shot the hunters
24NP
PP
NP
N
Det
P
NP
Det
N
the
shooting
of
the
hunters
25Paraphrase Relationship
- If two sentences are understood to have the same
meaning, a grammar should give the same
structural description for the two sentences at
some level - PS grammar fails to meet this demand
- Examples
- The boy slapped the girl
- The girl was slapped by the boy
26S
VP
NP
N
Det
V
NP
Det
N
The
boy
slapped
the
girl
27S
VP
NP
N
Det
V
PP
Aux
V
P
NP
The
girl
slapped
by
boy
was
the
28Constructional Homonymy
- If two sentences are not understood the same way,
a grammar should give two structural descriptions - PS grammar cannot do this
- The audience was asked to leave by the side-door
- The audience was asked to leave by the chairman
29S
VP
NP
V
Inf. Phr
N
Det
Aux
V
Inf.
VP
V
PP
P
NP
Det
N
The
audience
asked
to
Side-door
was
leave
by
the
30S
VP
NP
V
Inf. Phr
N
Det
Aux
V
Inf.
VP
V
PP
P
NP
Det
N
The
audience
asked
to
Chairman
was
leave
by
the
31Transformational Model
- If a generative grammar makes use of all the
three - -sequential
- -hierarchical and
- -transformational
- is called a Transformational grammar.
32Transformational model
- Makes use of PS rules exclusively
- PS rules generate surface structure
- Makes use of PS rules and transformational rules
- PS rules generate DS
- DS is converted into the surface structure by
transformational rules
33PS grammar
Surface Structure
PS rules
PS rules
Transformation
Deep Structure
Surface Structure
34Why wasnt he punished?
- PS rules
- S ? NP VP
- VP ? V - NP PP
- V ? Aux V
- Aux? (Tense)-(Modal)-(Perf)-(Prog)
- Tense ? pres/past
- NP ? (PreDet) - (Det) - (Ord) -(Quan) -(AP)-N
- Lexical substitution
35S
VP
NP
VG
PP
NP
Aux
V
Tense
Someone
past
him
for some reason
punish
36Why wasnt he punished?(continued)
- Transformations
- Passivization
- Agent deletion
- Negation
- Neg. Contraction
- Wh- substitution
- Interrogation
- Wh- fronting
- Affix switch
37Passivization
S
VP
NP
VG
PP
PP
Aux
V
P
NP
N
Tense
Pass
for Some reason
He
past
by
punish
be
en
someone
38Agent Deletion
S
VP
NP
VG
PP
Aux
V
Tense
Pass
for some reason
He
past
punish
be
en
39Negation
S
VP
NP
VG
PP
Aux
V
Tense
Pass
for some reason
He
past
punish
be
en
not
40Neg. Contraction
S
VP
NP
VG
PP
Aux
V
Tense
Pass
for some reason
He
past
punish
en
benot
41Wh- Substitution
S
VP
NP
VG
WH
Aux
V
Tense
Pass
why
He
past
punish
en
benot
42Interrogative
S
VP
NP
Aux
VG
WH
V
Tense
why
he
past
punish
en
benot
43Wh-fronting
S
VP
NP
Aux
WH
VG
V
Tense
why
he
past
punish
en
benot
44Affix switch
S
VP
NP
Aux
WH
VG
Tense
V
past
benot
punish
en
why
he
wasnot
punished
45Suggested Readings
- Lyons, John. 1977. Chomsky. Fontana, London.
- Palmer, Frank. Grammar
- Crystal, David. Linguistics
46THANK YOU