yaml file:
- - Invalid Password
- contact xyz@gmail.com
I am using python Chatterbot library, if I ask Invalid Password it returns the response contact xyz@gmail.com, but if I ask Password Invalid it gives me the default response which I have set while creating the chat bot instance.
bot = ChatBot(
'Norman',
storage_adapter='chatterbot.storage.SQLStorageAdapter',
input_adapter='chatterbot.input.TerminalAdapter',
output_adapter='chatterbot.output.TerminalAdapter',
logic_adapters=[
{
'import_path': 'my_logic_adapter.MyLogicAdapter',
"statement_comparison_function": "chatterbot.comparisons.JaccardSimilarity",
"response_selection_method": "chatterbot.response_selection.get_random_response",
'threshold': 0.65,
'default_response': 'I am sorry, but I do not understand.'
}
],
filters=["chatterbot.filters.RepetitiveResponseFilter"],
preprocessors=[
'chatterbot.preprocessors.clean_whitespace',
'chatterbot.preprocessors.unescape_html',
'chatterbot.preprocessors.convert_to_ascii'
],
database='./database.sqlite3',
trainer='chatterbot.trainers.ListTrainer'
)
bot.set_trainer(ListTrainer)