Search code examples
python-3.xcorpuschatterbot

how to clear chatterbot knowledge base in windows 10


After installing chatterbot i have trained the bot for some couple of times through corpus data provided within the chatterbot and also using some of my own conversation list. After that when i trained the bot with some corpus data written by me. Then when i am trying to talk with the bot it is answering from its knowledge base. So if somebody could tell me where can i find this knowledge base data or how can i clear the knowledge base data created by chatterbot


Solution

  • ChatterBot stores the conversational dialog it learns in whatever database you are using it with.

    One common way to remove all content from the database is like this:

    chatbot = ChatBot("...")
    chatbot.storage.drop()
    

    The 'drop' function will empty the content from the database your chat bot is using.