While running the code on documentation
from chatterbot import ChatBot
bot = ChatBot(
'Exact Response Example Bot',
storage_adapter='chatterbot.storage.SQLStorageAdapter',
logic_adapters=[
{
'import_path': 'chatterbot.logic.BestMatch'
},
{
'import_path': 'chatterbot.logic.SpecificResponseAdapter',
'input_text': 'Help me!',
'output_text': 'Ok, here is a link: http://chatterbot.rtfd.org'
}
]
)
response = bot.get_response('Help me!')
print(response)
output_text': 'Ok, here is a link: http://chatterbot.rtfd.org' ---IS NOT PRINTED

similar issue. you can find solution in this issue.
self.response_statement = Statement(text=output_text)
def can_process(self, statement):
if statement == self.input_text:
if str(statement) == self.input_text: ###code change calling str explicitly solves the problem
return True
return False
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
similar issue. you can find solution in this issue.