Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

LISP PROGRAM IN DR.RACKET FORM/PROGRAM LANGUAGE 2. Pattern matching and transformation rules occur frequently in symbolic computation The following patterns and corresponding response templates can

LISP PROGRAM IN DR.RACKET FORM/PROGRAM LANGUAGE

image text in transcribed

2. Pattern matching and transformation rules occur frequently in symbolic computation The following patterns and corresponding response templates can be used to generate "conversations" like these below (responses are in italics) well my friend made me come here he savs I am depressed i think i need help oh am I making sense at all you are making fun of me tell me about your friend i am sorry to hear you are depressed in what way do you believe you are making sense at all why do you think I are making fun of you PATTERN RESPONSE TEMPLATE tell me about your single i am sorry to hear you are 2 do you believe you are 2 why do you think i2 you in what way my single 2 me3 11 am 2 i am 1_2 The blank spaces in a pattern, denoted by subscripted dashes, can be filled in with any sequence of words. A single word is filled in for single. Write a Dr. Racket program that uses patterns and response templates to simulate a conversation. Include the above 5 pattern/response templates, plus at least 5 more of your own choosing. One of your new patterns should result in returning a greeting (e.g., hello or good morning) that first comes from the patient; another one of your new patterns should end the session (e.g., have a nice day or hope to see you again soon) at some appropriate time. Test your LISP program with inputs that might lead one to believe your program is "intelligent." This exercise is based on a program called Eliza due to Weizenbaum in 1966. Eliza conversed by simply rearranging the sentences that were presented to it. Weizenbaum "was startled to see how quickly and how deeply people conversing with Eliza became emotionally involved" in the interchange. They talked to Eliza as if it were a person, even when they knew it to be a program 2. Pattern matching and transformation rules occur frequently in symbolic computation The following patterns and corresponding response templates can be used to generate "conversations" like these below (responses are in italics) well my friend made me come here he savs I am depressed i think i need help oh am I making sense at all you are making fun of me tell me about your friend i am sorry to hear you are depressed in what way do you believe you are making sense at all why do you think I are making fun of you PATTERN RESPONSE TEMPLATE tell me about your single i am sorry to hear you are 2 do you believe you are 2 why do you think i2 you in what way my single 2 me3 11 am 2 i am 1_2 The blank spaces in a pattern, denoted by subscripted dashes, can be filled in with any sequence of words. A single word is filled in for single. Write a Dr. Racket program that uses patterns and response templates to simulate a conversation. Include the above 5 pattern/response templates, plus at least 5 more of your own choosing. One of your new patterns should result in returning a greeting (e.g., hello or good morning) that first comes from the patient; another one of your new patterns should end the session (e.g., have a nice day or hope to see you again soon) at some appropriate time. Test your LISP program with inputs that might lead one to believe your program is "intelligent." This exercise is based on a program called Eliza due to Weizenbaum in 1966. Eliza conversed by simply rearranging the sentences that were presented to it. Weizenbaum "was startled to see how quickly and how deeply people conversing with Eliza became emotionally involved" in the interchange. They talked to Eliza as if it were a person, even when they knew it to be a program

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems Design Implementation And Management

Authors: Peter Rob, Carlos Coronel

6th International Edition

061921323X, 978-0619213237

More Books

Students also viewed these Databases questions

Question

Compute the value of P for the following diagram. 120 i= 10% 3-

Answered: 1 week ago

Question

' How many different strategies did you find?

Answered: 1 week ago

Question

politeness and modesty, as well as indirectness;

Answered: 1 week ago