Page 147 - Intelligent Communication Systems
P. 147
I 26 INTELLIGENT COMMUNICATION SYSTEMS
[x] = [know]
£,([*, y, z I 5], S) <-
[*, y, z] = [the, phone, number]
0 2([[x,y,z,w]\S],S)<r~
[x, y, z, w] = [of, a, clothing, shop]
0 3([[x,y]\S],S)<-
[x, y] - [in, San Francisco]
In this way, the sentence is parsed and the word is detected in a list. After obtain-
ing the word, a command is issued to the database to get the phone number of a
clothing shop from the database.