chatterbot read the docs code example
Example 1: chatterbot python
from chatterbot.trainers import ListTrainer
trainer = ListTrainer(bot)
trainer.train([
'How are you?',
'I am good.',
'That is good to hear.',
'Thank you',
'You are welcome.',
])
Example 2: chatterbot python
pip install chatterbot