1from chatterbot import ChatBot
2from chatterbot.trainers import ChatterBotCorpusTrainer
3
4bot = ChatBot(
5 "Chat Bot",
6 storage_adapter="chatterbot.storage.SQLStorageAdapter",
7 database="botData.sqlite3"
8)
9
10trainer = ChatterBotCorpusTrainer(chatbot)
11
12trainer.train("data/trainingdata.yml")