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 5,551 - 5,562 of 7,766
Posts 5,551 - 5,562 of 7,766
psimagus
18 years ago
18 years ago
Well, there's a listing on BJ's website (http://www.be9.net/BJ/) - see under Code Examples
Akaihane
18 years ago
18 years ago
I'm having trouble making my bot understand new words. The automatic spelling correction is messing everything up. I've created a plug-in for martial arts, and I'm using a keyphrase that looks like this: I (practice|train) (martialarts)
(martialarts) is the plug-in. One of the responses go like this:
Oh really? I've tried (key2) a couple of times.
When I use the word "aikido" the bot gives a accurate reply. When I try another word, like kendo for example, the bot thinks I'm talking about donkeys, even though I put in kendo in the plug-in list. I've even tried to use the "raw" code, but that doesn't seem to be working at all. Any tips?
//Akaihane
(martialarts) is the plug-in. One of the responses go like this:
Oh really? I've tried (key2) a couple of times.
When I use the word "aikido" the bot gives a accurate reply. When I try another word, like kendo for example, the bot thinks I'm talking about donkeys, even though I put in kendo in the plug-in list. I've even tried to use the "raw" code, but that doesn't seem to be working at all. Any tips?
//Akaihane
Bev
18 years ago
18 years ago
Have you tried raw mode (see the book of AI)? I think you use "less than sign ? PF raw; ? greater than sign". If that doesn't work, you may need to play with regular expressions, and even though I read Psimagus' essay, I can't help you much with that.
Akaihane
18 years ago
18 years ago
Am I supposed to put "less than sign ? PF raw; ? greater than sign" in the AI-script or in the keyphrase? I will try that. I've just been writing "raw" in the AI-scrips and tried to put
Akaihane
18 years ago
18 years ago
Hmm... apparently, not even writing the code in a post works. >_> Well, the main problem is, I have managed to get the bot to recognize for example the word 'naginata' and he replies accordlingly, but he doesn't understand it as a 'key'. 'Naginata' is a (martialarts)-plug-in. I use "I train (martialarts)". and the bot should reply: "(Key1)? that's cool" Or something. But the (key1) turns up blank, even with the raw code. *sighs* Maybe there's just no way to do this.
//Akaihane
//Akaihane
prob123
18 years ago
18 years ago
I just had a very brief chat with your bot.
do you know Naginata
Teo
Yeah, I do know Naginata. Why are you asking?
It seems to be working great.
do you know Naginata
Teo
Yeah, I do know Naginata. Why are you asking?
It seems to be working great.
Akaihane
18 years ago
18 years ago
Unfortunately, no... That reply was for "Do you know (*)" and the answer was "Yeah, I do know (postkey)". That is not problem. Try saying, "I train naginata". It's not working the way I'd want it to. =/ Thanks anyway, I appreciate it!
//Akaihane
//Akaihane
prob123
18 years ago
18 years ago
The only thing I can think of is I train naginata (re) raw and up the rank to 40 or so..check to see there is only one space between the end of the sentence and the (re) I have had keyphrases fail if I had more than one space
» More new posts: Doghead's Cosmic Bar