Professional Documents
Culture Documents
TCB3343 Artificial Intelligence Exercise 6: Natural Language Processing
TCB3343 Artificial Intelligence Exercise 6: Natural Language Processing
a.
b.
i.
ii.
Write the extension of the grammar shown in part (a) to cater for each of the
following sentence, and then draw the new parse tree based on the extended
grammar.
i.
ii.
2.
NP VP
NP
PP
PREP NP
VP
VERB NP
DET the a
VERB likes drives
NOUN man girls boy coffee | Ferrari
ADJ
hot | beautiful
PREP with
PRONOUN he | she
FIGURE Q2
Draw the parse tree for the following sentences:
3.
i.
ii.
iii.
VP, NP PP
NP ART
NS | ART
NP
VP VS NP | VP NP
PP PREP NP
PREP in | on
ART the | a
NS man | car
NP men
VS drives
VP drive
FIGURE Q3
Draw the parse tree for the following sentences:
i.
ii.