CSC2501 Fall 2000 - Computational Linguistics 

Links

 CSC2501 Home
Project Stage 0

 
Sample Domain Conversations

Undergraduate Course Calendar
TTC Expert
UNIX Question answerer
Electronic chessboard
Story understander


Course calendar Top of screen

The program is an interface for a U of T undergraduate course calendar. The user can ask questions about courses, programs, degrees and prerequisites, and can make statements about what courses to enroll in, drop, or graduate from. There are two people already predefined, Andrew and Jade. 

what courses is andrew taking?
Response > 
[csc378h, phl340h, phl344h, psy201h, psy203h]

andrew is taking what philosophy courses?
Response > 
[phl340h, phl344h]

what classes am i enrolled in?
Response > 
[]

what first year psych courses are there? Response > 
[psy100y]

please enroll me in it
Assuming it refers to psy100y
Response > 
Enrolled you in psy100y

what classes am i in now?
Response > 
[psy100y]

jade is in what program?
Response > 
[[specialist, in, chinese], [minor, in, computer, science]]

i want to take a minor.
Response > I need to know in what subject

enroll me in the cs minor
Response > 
Enrolled you in minor in computer science

what courses do i need to take psy271h?
Response > 
psy271h requires [psy100y]
Response > 
you are lacking the following list
Response > 
[]

what are the courses that jade has taken?
Response > 
[csc104h, mat135y, mat223h, psy100y]

i will take them
Assuming them refers to [psy100y, csc104h, mat135y, mat223h, eas100y]
Response > 
Already taking psy100y
Response > 
Enrolled you in csc104h
Response > 
Enrolled you in mat135y
Response > 
Need prerequisite choice([mat133y, mat135y, mat137y])
Response > 
Dont have eas100y in database. Assuming no prerequisites
Response > 
Enrolled you in eas100y

i am taking what courses that jade has taken?
Response > 
[psy100y, csc104h, mat135y, eas100y]

i am taking what half credits?
Response > 
[csc104h]

can i take mat223h?
Response > 
Need prerequisite choice([mat133y, mat135y, mat137y])

No

i graduated from mat135y
Response > 
Acknowleged: you finished mat135y

can i take mat223h?
Response > 
Yes.
[mat223h]

list the computer science courses
[csc104h, csc108h, csc148h, csc209h, csc228h, csc238h, csc258h, csc260h, csc300h, csc318h, csc324h, csc336h, csc340h, csc350h, csc354h, csc364h, csc372h, csc378h, csc408h, csc418h, csc428h, csc434h, csc438h, csc446h, csc448h, csc454h, csc456h, csc458h, csc465h, csc468h, csc478h, csc484h, csc485h, csc488h]

who is there?
Response > 
[andrew, jade, i]

is jade female?
Response > 
Yes.

who am I?
Response > 
[i]

andrew is taking what courses that jade already took?
Response > [psy201h]

he will drop the courses that she took
Assuming he refers to andrew Assuming she refers to jade Response > Dropped andrew from psy201h

is csc345h a third year course? Response > Yes.is csc2501h interesting?
Response > i am a mere prolog program and am in no position to judge


TTC Expert Top of screen

This program, by Kevin Schlueter, is an expert on the TTC. You can tell it facts about people and places, and then ask questions about those facts
Script started on Sat Apr 6 16:30:49 1991
jane plays baseball at eglinton station
<<< understood
jane, who is at eglinton station, plays baseball at ut
<<< understood
dick is at york mills
<<< understood
dick plays hockey at eglinton
<<< understood
dick is buying a stamp for jane at finch
<<< understood
who bought jane a stamp
<<< dick
where was a stamp bought for jane
<<< finch station
do some girls who are north of union play hockey north of lawrence 
<<< no
susan is at skydome
<<< understood
susan plays hockey at yorkdale
<<< understood
do some girls who are west of union play hockey north of lawrence
<<< yes
dick bought a large brown cat at skydome during the afternoon
<<< understood
the cat was hidden by dick at maple leaf gardens
<<< understood
where did dick hide the cat
maple leaf gardens
the cat dick bought runs quickly
<<< understood
how does the cat run
quickly
the station runs quickly
unable to formulate a reply
>>


UNIX Question answerer Top of screen

User: List my files.
a.out, fred.h, fred.c, mbox
User: List the files is courses/2501.
Advt.n, bBACKUP, course.info, project.n, schedule.n
User: How many files named "mbox" does david have?
Three:
/u5/davis/mbox, u5/david/thesismbox, u5/david/courses/cs484/mbox
User: Show me the manual page for the mail command
[Does so.]
User: I want to see the documentation for wc
Interpreted "show me?"
[Display documentation]


Chess board Top of screen

User: Move the white queen to d3
Done.
User: Is there a knight that can take the white bishop at c1?
Yes, the black knight at b3 can take the white bishop at c1
User: Can I take the white queen?
Anaphoric reference: "it" referes to the black knight
No.
User: How many black pawns are left?
Two
User: White rooks?
Ellipsis: how many white rooks are left?
None.


Story understander Top of screen

5. A program that understands a story. This example is based on a project by Barbara Brunson.

 USER: 
Androcles was a slave in ancient Rome.
The master of Androcles was very cruel.
Finally, Androcles ran away.
He hid in the forest outside the city.
He found little food in the forest.
He became weak.
Finally, he crept into a cave to die.
He fell asleep in the cave.
Later, Androcles was awakened by the road of a lion.
The lion limped with pain from a thorn in its paw.
Androcles saw the thorn.
Quickly he removed the thorn from the paw of the lion.
They became friends.
The lion provided food for Androcles.
Soon he regained his strength.
Eventually, Androcles was found by some Roman soldiers.
He was returned to Rome.
A captured runaway slave in ancient Rome would fight wild animals in a ring.
Androcles was a captured runaway slave.
He was put into a ring.
Many people were watching.
A door in the wall of the ring was opened.
A hungry lion leaped into the ring.
It rushed towards Androcles.
Androcles jumped aside.
Androcles recognized the lion as his friend.
He hugged it.
The people were amazed.
The people freed Androcles.

 USER: Who provided food for Androcles?
The Lion.
USER: Did Androcles leap into the ring?
No, the lion did.
USER: Who hugged whom?
Androcles hugged the lion.
USER: What was the master of Androcles like?
The master of Androcles was very cruel.
USER: What did Androcles find in the forest?
He found little food.
USER: Why did the lion limp?
The lion limped with pain from a thorn in its paw.