Answered step by step
Verified Expert Solution
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
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 programStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started