-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query - words ordering in bot brain #88
Comments
I have been experimenting with the use of stop words. Here is a sample Python code:
This will take the user's input and remove the words "the, of, an, is, was" before sending it to Rivescript.
Will allow for the command not to be in the same order |
@ekt1701 Since you are trying it out, I would appreciate if you share your use case |
I am experimenting with stopwords and fuzzy matching to solve riddles. I scrape the riddle and answer from http://goodriddlesnow.com/ then filter out the stop words from the answer, this works fine. I use the same stop words for the user's input. I am using fuzzywuzzy for the fuzzy matching of the user input and answer. |
Thanks @ekt1701 for your responses. In my case am developing a bot that would interact and take actions based on users inputs. But I personally feel that the complexity of NL becomes a bottle neck for closed domain bots. So I was thinking to process the input, extract the keywords and then pass it on to the bot. That way we don't have to record all possible inputs. We only have to take care of the important keywords. I am no bot expert and also not sure if this is the right thing to do. But still thinking to give it a try. |
What you are thinking is similar to the code I posted above, except, it removes the stop words and leaves the keywords which is sent to the bot. If you are interested, here is the complete list of stop words used in nltk.corpus:
|
I'm not sure if this is what you're looking for.
|
Hi,
I would like to know if it is possible to have input match to any possible inputs having the same words possibly not in the same order.
Below is a sample example
As you can see above there are multiple ways I ask for the "system status". So what am trying to do is build a system where I will break the user input to extract only keywords (most importantly not in the same order) in the text and send the keywords to rivescript. What I would like to know is how can I ignore ordering of the mandatory keywords in rivescript ?
The text was updated successfully, but these errors were encountered: