+ 2

Does anyone here have knowledge of making a chatbot in python from scratch?

I am making a chatbot in python for my college project and I do not want to use any kind of chatbot frameworks. I want to do everything from scratch. It would be really helpful if anyone who has experience on this topic would provide me a basic guideline. p.s. I am thinking of using random forest algorithm. Will it be helpful?

1st May 2018, 8:25 AM
Arusha Shahi
Arusha Shahi - avatar
2 Antworten
+ 5
Actually, building a chatbot is most sensibly done with neural networks, in particular recurrent neural networks, in particular LSTM (long-short term memory). As you not only want to react word for word or phrase for phrase, but you want to react on the whole conversation topic. You might take a look at this tutorial to get a good start: (Part 1 - Introduction) https://youtu.be/RPP3imf6GWw
1st May 2018, 1:23 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 2
i think something like phrase = input().split(" ") if phrase.includes("hello"): print(''hi'') #i dont remember if the function is includes or contains
1st May 2018, 9:54 AM
Etabeta1🇮🇹
Etabeta1🇮🇹 - avatar