Starting from:

$30

CS4800-Homework 10 Chatbot Solved

This assignment is to implement your own simple chatbot, using and extending the available code.

Notes about your Chatbot: 

•    Change the prompt in the Eliza code to display your own name. Then change the code so that your chatbot responds to the user in your own way. Be sure to remove Eliza's original responses, so that the you-bot does not sound like a psychoanalyst. Feel free to limit the chatbot's scope to a particular interest of yours, such as movies or basketball or food. 

•    Unlike Norvig's Eliza, your chatbot should never respond with NIL. Come up with some reasonable defaults, like, "Oh, that's very interesting..." for uncovered situations. 

•    Cover as many situations as possible. Your chatbot should include significantly more conversational replies than Peter Norvig's original. 

Notes about Norvig's Code: 

•    There are two files, AUXFNS.LSP and ELIZA1.LSP, in our Blackboard LISP repository. 

•    To run ELIZA1.LSP, you need to load AUXFNS.LSP and then ELIZA1.LSP into the interpreter. 

•    Fully understanding the auxiliary functions in AUXFNS.LSP is beyond the scope of this class. Take advantage of modular abstraction and use the included functions without worrying about their guts. (Note that you don't actually use most of this code. This is the auxiliary file for his whole book.) 

•    You can and should understand the ELIZA1.LSP file. However, you should expect it to take some time for you to understand it. Some new functions are used, and some familiar functions are used with new names. For example, Norvig has adopted the style of calling car first and cdr rest. 

•    The ELIZA1.LSP code is (intentionally) not very complete. One irritating feature is that Eliza does not know how to exit when you say goodbye. Implement this small extension before implementing your chatbot, both to familiarize yourself with the code and to make the code easier to test. Your chatbot must be able to exit gracefully. 

More products