Question: grasem.pl: % testar com: % : - f ( X , [ ' Manuel ' , ran ] ) . % : - f (
grasem.pl: testar com:
: fXManuel ran
: fXa man, ran
: fXaman, with, a book, ran
: fXMaria with, a book, ran
: fXMaria with, the, book, inabag, ran
: fXthecustomer, bought, a book
: fXManuel bought, a book
: fXthe customer, bought, a book, from,'Maria'
: fXthe customer, bought, a book, with, a blue, cover
: fXthe customer, gave, a book, with, a blue, cover, to'Manuel'
fXF: sYF flatYX
: sF
sandPP npXP vpXP
vpXP verboXP
vpXandPP verboXYP npYP
vpXP verboBe, adjXP
vpXandPPP verboXYZP npYP ppZP
ppXP prep, npXP
npXP npXP
npXandPPrelXY npXP ppYP
npXandPP adjXPnpXP
adjXP adjXP
adjXandPP adjXP adjXP
npXP det, nominalXP
npXtrue properNameX
npAP det, nominalAP properNameA
nominalXP nounXP
nominalXandPP nounXP nominalXP
nounXmanXman
nounXbookXbook
nounXcustomerXcustomer
nounXcoverXcover
nounXbagXbag
nounXblueXblue
det the
det a
properNameManuelManuel
properNameMariaMaria
prep from
prep to
prep with
prep in
verboXrunXran
verboXYboughtXYbought
verboXYgiveXYgave
verboXYZboughtXYZbought
verboXYZgiveXYZgave
verboBeis
adjXblueXblue
flatandABCL:flatALflatandBCL appendLLL
flatandABL:flatALflatBL appendLLL
flattrue:
flatAAa Manuel ran.
b A man ran.
c A man with a book ran.
d Maria with a book ran.
e Maria with a book in a bag ran.
f The customer bought a book.
g Manuel bought a book.
h The customer bought a book from Maria.
i The customer bought a book with a blue cover from Maria.
j Manuel gave Maria a book with a blue cover.
k The customer who gave Maria the book ran
l The book has a blue cover
m The book is from Maria
n The cover is blue. With the semantic analyzer of the file grasem.pl indicate the result of the
semantic analysis of the sentences from a to j
Add rules to grammar and lexicon in order to obtain the semantic representation of sentences k to n
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
