The AI Engine
This forum is for discussion of how The Personality Forge's AI Engine works. This is the place for questions on what means what, how to script, and ideas and plans for the Engine.
Posts 2,952 - 2,963 of 7,768
Posts 2,952 - 2,963 of 7,768
Boner the Clown
21 years ago
21 years ago
I tried that, doesn't work.
Basically what I have now is "what" as a keyword with "what does", "what is," "i know what," etc. as higher ranked keywords. It doesn't really work well, there are far too many combinations to cover.
Anyone else?
Basically what I have now is "what" as a keyword with "what does", "what is," "i know what," etc. as higher ranked keywords. It doesn't really work well, there are far too many combinations to cover.
Anyone else?
Someguy
21 years ago
21 years ago
erm sorry i got to thinking and i seemed to forget that ? couldnt be in keywords. so then i slapped myself silly...Anyhow the answer is still regular expressions but instead try "^what? (re)" i tested this on my bot that has a few "what...." question keywords and it seems to work. This basicly searches for the word "what" at the start of a sentence, But does not allow more then 1 other t beyond the what...so basicly it only allows "what" or "whatt". If i understand it right that is. Hope i managed to help this time.
ezzer
21 years ago
21 years ago
to make "what would you like" pull up separate responses for just "what" alone, you give "what" a really low rank, and make a new keyphrase for "what would you like".

isaacc
21 years ago
21 years ago
I think there is also a reg-exp character that means "the end of the sentence" -- which you could put after "what," to frame it (and the punctuation) as the only things in the keyphrase. Regular expressions are definitely your answer, Boner, but I don't know enough about them yet to give you concrete advice.
ezzer
21 years ago
21 years ago
If there is something to put in a reg expression that signifies nothing after the given words, I sure do need it! Can you put the ^ sign at the end, too?
Someguy
21 years ago
21 years ago
^is start and as joe pointed out $ is end...there are a bunch of other little things you can do with reg expressions. Sorry about stumbling with the answer boner but it was late and i was getting frustrated with my own bot.
I_have_arrived
21 years ago
21 years ago
Question: ok, I have the keyphrase "how old are you" programmed for my bot. When someone asked him "I was wondering, how old are you?" he wouldn't answer. I didn't program the keyphrase as a regular expression, and I don't understand what's wrong. Someone help me!!!
Yoiko
21 years ago
21 years ago
How much importance did you give the phrase "how old are you?" If everything else is equal, I'm pretty sure the bot will look at the first part of the sentence as the most important. You'd have to have "how old are you" weighted enough for the bot to look at that part first.
Boner the Clown
21 years ago
21 years ago
You guys rock. The keyphrase "^what$ (re)" seems to do the trick.
I imagine it should work for "really?," "whatever," and some of the other usual one word responses, but not expressions like "ok" or "huh?"
Definitely a good start.
I imagine it should work for "really?," "whatever," and some of the other usual one word responses, but not expressions like "ok" or "huh?"
Definitely a good start.
» More new posts: Doghead's Cosmic Bar