She will learn from user inputs and responses with the closes match in her knowledge base. She finds the closes match using difflib and replies with them. The user will be prompted to teach her a response if no close match is found. She will then store her newly learned response in her knowledge base.
In order for her to work correctly, the file structure should be as shown below.
Root
├── IRISchatbot
│ └── main.py
└── Knowledgebase
├── Alpha.json
└── Beta.json
For knowledge bases, visit this repository.
Root
└── IRISchatbot
├── main.py
└── test
├──typewritter.py
└── texttospeech.py
28 March 2024
N34R