Creating a chatbot program that can learn as you interact
¡Hola! As we delve deeper into AI and machine learning saga, here is a very cool Python code that could help you create a small Chatbot program, that can a. Learn from you as you chat with it b. Save information, so that when you reopen the program it can remember what it has learned for so long. c. And it should be pretty fast to respond. The below code is very basic and could be exercised to include more and more features as you go through it. And I used Python as my code; alternatively, you can also write the same using C#, if that's what you are comfortable with. The algorithm: I am creating a file called: questionBank.json and saving it as a physical file, and which starts with a couple of very basic questions: I am chatting with my chatbot like this: And when I ask it something it doesn't know: So that when you ask it next time: Pretty cool, eh? Let me show you, how this has been done. Step 1: I am using Spyder3.11, as my IDE, but alternatively you ...