Hey everyone,
I'm working on an AI that you can chat with (Like on Skype or AOL or gmail) and I've been running into some issues.
Heres what happens so far:
_________________________
•User types something in
•Program turns each word in question into an item on a list
_________________________
Now what I'm trying to do is get to look over the list to find keywords. If it does, I want it to find the appropriate answer.
EXAMPLE OF PROBLEM:
•Program can understand the word "hello"
•User type's in "hello"
•Program answers "Hello!"
•User types in "bleh hello"
•Program says "Hello!"
•User types in "hello bleh"
•Program doesn't answer because it doesn't know what to do
Help would be greatly appreciated!
Silvershine
Offline
It might have to do with the fact that your other user inputs had 'hello' at the end without a space following. Right now that's the only correlation I see, but it would help a lot if we could see the script to get a better idea of how it parses the string and interprets it.
Offline
I'm just asking where did you get your picture in your sig, Silvershine? Are you one of my aquaintances on a teacher's wiki?
Offline
Harakou wrote:
It might have to do with the fact that your other user inputs had 'hello' at the end without a space following. Right now that's the only correlation I see, but it would help a lot if we could see the script to get a better idea of how it parses the string and interprets it.
![]()
Thanks, that was the problem. I added a script that removes the space while checking to see if it matches any keywords.
Offline
EmperorEvil wrote:
I'm just asking where did you get your picture in your sig, Silvershine? Are you one of my aquaintances on a teacher's wiki?
I got it a while ago off google images. Sorry, (I guess) I'm not one of your acquaintances on a teachers wiki...
Offline
silvershine wrote:
EmperorEvil wrote:
I'm just asking where did you get your picture in your sig, Silvershine? Are you one of my aquaintances on a teacher's wiki?
I got it a while ago off google images. Sorry, (I guess) I'm not one of your acquaintances on a teachers wiki...
Yeah...
Offline