I read in the chatterbot documentation that chatterbot works by finding the closest matching input statement from a dataset to return an output statement. Is there a way to only match the input statements and return the matching input statement instead of the output?
For example:
from chatterbot import ChatBot
from chatterbot.trainers import ListTrainer
client = ChatBot("Alice")
trainer = ListTrainer(client)
trainer.train([
"Hi, what is your name",
"My name is chatterbot"
])
Instead of:
Hi, what is your name --> My name is chatterbot
I want:
what's your name --> Hi, what is your name
If this isn't possible with chatterbot, is there another way to do this?