I am having error.
NameError Traceback (most recent call last)
in ()
21 database_uri='sqlite:///database.sqlite3')
22
---> 23 trainer = ChatterBotCorpusTrainer(bot)
24 # Train based on the english corpus
25 trainer.train(
A chatbot is a software application used to conduct an on-line chat conversation via text or text-to-speech, in lieu of providing direct contact with a live human agent. — According to Wikipedia.
Types of Chatbot
Chatbots can be categorized into two types
Rules- Based
Self Learning
The Rules Based:- Rules based chatobots trains a chatbot to answer question based on pre trained rules. these type of chatbot are good for simple queries.
Self learning chatbot:- Self learning chatbots are based on machine learning algorithms and they are smarter than rules based chatbots. They can learn on their own.
I am having error.
NameError Traceback (most recent call last)
in ()
21 database_uri='sqlite:///database.sqlite3')
22
---> 23 trainer = ChatterBotCorpusTrainer(bot)
24 # Train based on the english corpus
25 trainer.train(
NameError: name 'bot' is not defined
That issue was due to indentation error. You can find full code error.
codePerfectPlus / Python-ChatBot
This article was originally published at codeperfectplus.herokuapp.com/buil...
What is a Chatbot
A chatbot is a software application used to conduct an on-line chat conversation via text or text-to-speech, in lieu of providing direct contact with a live human agent. — According to Wikipedia.
Types of Chatbot
Chatbots can be categorized into two types
Rules- Based Self Learning The Rules Based:- Rules based chatobots trains a chatbot to answer question based on pre trained rules. these type of chatbot are good for simple queries.
Self learning chatbot:- Self learning chatbots are based on machine learning algorithms and they are smarter than rules based chatbots. They can learn on their own.
Author
problem resolved, thank you
Welcome