Skip to content
This repository has been archived by the owner on Apr 30, 2023. It is now read-only.

Help to train on my own data set. #4

Open
rashmisgh opened this issue Apr 3, 2020 · 5 comments
Open

Help to train on my own data set. #4

rashmisgh opened this issue Apr 3, 2020 · 5 comments

Comments

@rashmisgh
Copy link

Hey, How can we train this algo on out sets of questions and answer?

@anil-ajax
Copy link

Hi rashmisgh, did you find the answer on how to train this bot?

@rashmisgh
Copy link
Author

rashmisgh commented Jun 26, 2020 via email

@mumtazmalik
Copy link

stionHi rashmisgh and anil-ajaz, if you want to train this or make this bot work on your set of questions and answers, the idea is fairly simple.
There is a function response that returns idx-th sentence from the corpus. All you have to do is put all your questions in chatbot.txt, get the index of the most similar que. Now, you have to put all your answers in the same order as the questions are. Say we have a pair of question and answer.
Q: How do you define physics?
A: Physics is blah blah blah..........

Assume your question is 40th question the corpus of questions, the answer should be the 40th answer in the list of answers and you will simply return the 40th answer if the 40th question is asked/the response function predicts the question index to be 40.

I hope this gives you a fair idea; if not, let me know if I should explain it more.

@Amit-Dagar
Copy link

Yes @mumtazmalik is right use corpus for this to build dataset and use that dataset to train this modal

@Deepak546
Copy link

go to the article and have a code snippet of how to train your own dataset in python chatbot click to view

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants