Answer the question
In order to leave comments, you need to log in
Looking for hot words in a sentence?
Hello everyone who reads this.
I am writing my bot in python, and now I am faced with a new problem. He can only respond to commands like: write a movie, he will show the schedule in the cinema. But if I write show the schedule in the cinema, he will not understand me. I want to do a hot word search. For example, if the input sentence contains the word cinema , it will show the schedule. If there is a word currency it will show the exchange rate. Tell me how to do it?
PS I myself tried using conditional expressions, but this does not suit me, since the bot will still not understand synonyms. And this is just what I need.
PPS You don't need to write ready-made code, just tell me which library can help me.
Answer the question
In order to leave comments, you need to log in
Maybe it's worth throwing out all the commands available to the user in the form of buttons? so that he does not have to write, and even without errors so that the bot understands
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question