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

18 years ago #5551
even better!

18 years ago #5552
Oho!

18 years ago #5553
anyone know how to make a X,O game?I could use the help

18 years ago #5554
Well, there's a listing on BJ's website (http://www.be9.net/BJ/) - see under Code Examples

18 years ago #5555
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

18 years ago #5556
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.

18 years ago #5557
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

18 years ago #5558
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

18 years ago #5559
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.


18 years ago #5560
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

18 years ago #5561
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

18 years ago #5562
What does the (re) do?
//Akaihane


Posts 5,551 - 5,562 of 7,766

» More new posts: Doghead's Cosmic Bar