+ 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?
2 odpowiedzi
+ 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
+ 2
i think something like
phrase = input().split(" ")
if phrase.includes("hello"):
print(''hi'')
#i dont remember if the function is includes or contains