3. Show that your world model works properly by getting Prolog to answer some queries about it....

Question:

3. Show that your world model works properly by getting Prolog to answer some queries about it. (These queries should not use English noun phrases.)

Once your world model is working satisfactorily, you are ready to consider English noun phrases and the blocks they refer to in your scene. Here are some example queries using English noun phrases:

– np([a,wedge],B).

– np([any,small,green,block],B).

– np([a,pyramid,on,a,big,cube],B).

– np([a,cube,beside,the,orange,wedge],B).

– np([a,cube,below,an,orange,wedge,on,a,red,block],B).

(This is ambiguous: is it the cube or the wedge that is on the red block?)

– np([a,green,wedge,above,a,block, beside,the,small,red,pyramid],B).

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question
Question Posted: