Chatterbot: Training bot

Created on 2 Jun 2017  Â·  9Comments  Â·  Source: gunthercox/ChatterBot

Hello! I'm doing a college project and would like to ask a question and see if it applies with ChatterBot.
I have a bunch of answers in a list for some specific questions about a specific subject. Is there some way I can "train" a model and make it give out the answer that matches best with whatever question the user inputs?
For example, user asks "what's the meaning of existance" and the bot will give out the most relevant "string" from my answers database related to that question?
All questions and answers are to be of the same topic, for example, cotton. How it's produced, how are it's seeds, how do you plant it, etc. Would it still work, taking from the point that many answers would have a lot of keywords in common?

question

Most helpful comment

Doesn't sound like you have an issue but rather asking how to train a bot?

There is docs on how to do that here.

http://chatterbot.readthedocs.io/en/stable/training.html

All 9 comments

Doesn't sound like you have an issue but rather asking how to train a bot?

There is docs on how to do that here.

http://chatterbot.readthedocs.io/en/stable/training.html

I've checked the docs, but I couldn't find the exact way of developing what I described, and if it's even doable.
Should I just create a new training class? How should I go about doing it?

@dekken201 Currently chatterbot uses json files.

You have two lists of data right?, one for question and one for answer?

one question related to your question, Is your questions and answers are in same ordered lists?

If so, you could use zip to combine your lists and train your bot

If not if possible could you share example train data?

Actually, right now, I only got one list with the answers, but I'd like to at least know if it will work. What are the parameters for list training? How should I go about making my own training class, if necessary?
Do I really need the questions that go with it, or can I just feed the answers?

Yes, You could write your own class by extending Train class train method https://github.com/gunthercox/ChatterBot/blob/master/chatterbot/trainers.py#L16

Does the bot accept other formats? Csv, from database? I'll see if I can transform my data to json if not.

-----Mensagem Original-----
De: "Mallikarjunarao Kosuri" notifications@github.com
Enviada em: ‎03/‎06/‎2017 10:09
Para: "gunthercox/ChatterBot" ChatterBot@noreply.github.com
Cc: "Dekken201" lucksbp@gmail.com; "Mention" mention@noreply.github.com
Assunto: Re: [gunthercox/ChatterBot] Training bot (#767)

Yes, You could write your own class by extending Train class train method https://github.com/gunthercox/ChatterBot/blob/master/chatterbot/trainers.py#L16
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

No

Alright, thanks.

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.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juanpialbano picture juanpialbano  Â·  4Comments

engrphil picture engrphil  Â·  3Comments

gunthercox picture gunthercox  Â·  3Comments

proguy627 picture proguy627  Â·  3Comments

AmusingThrone picture AmusingThrone  Â·  3Comments