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 6,402 - 6,413 of 7,766

17 years ago #6402
I don't get it . . . I have as keyphrases

do (u|you) have [20,0]
do (u|you) have any food [30,0]

and when I go to debug and enter "Do you have any food," it responds to the do (u|you) have; however, if I change the latter to do you have any food, do u have any food, it goes to the right one. That's ridiculous -- it makes using parentheses to include multiple keys problematic, which I've never noticed before.

Anyone know what's going on?

17 years ago #6403
Re above: It does seem to be the parentheses -- or wildcards. When I tried do you have * food, do you have (any|some) food, it went to do you have. When I changed it back to do you have any food, do you have some food, it caught it.

And I have deduced all by myself that the AI Engine now (maybe always?) translates u as you without my help. But I need the (either|or) and wildcard features to work!

17 years ago #6404
Alejate: How come I can't see the transcripts of my bot?

I had the same problem yesterday when looking from the "My Bots" page, but if I went to the "Transcripts" tab (on the right), the transcript showed up. Maybe the Prof has fixed it now.

17 years ago #6405
The AI engine does spell correct the U to you.

17 years ago #6406
Okay, sorry for the sixteen or so posts. Oddly, the parentheses and wildcards work for other keyphrases, just not for that one.

Weird.

17 years ago #6407
I love the posts, it gets so lonely here during the summer. It is funny how the AI engine will balk at some things. I do think it has a personality all it's own.

17 years ago #6408
First off, greetings all.

Question: How does the "if gender" codes work with guests and members who opted not to disclose their gender? If for a bot I thought it would be important to know a user's gender, should I pose them the question in the introduction?

Thank you,
Bigs.

17 years ago #6409
You would have to ask them. If they don't want to tell, you can have a third response for the ambiguous. You can ask a user's gender, or just have a keyphrase that picks up something like I am (male|a guy|a man}

17 years ago #6410


I finally figured out something I've been thinking the Forge didn't have -- a way to comment out sections of code temporarily:

Just set the value to a negative number [-5,0].

For those of you who are saying, d'uh, thank you, I know that were this a paying job, I'd've been fired somewhere around November. But I've seen evidence of more clueless botmasters then me, so maybe this will be helpful.

If I'm wrong (it does seem to work, logically and in practice), please do let me know. Every time I figure out one thing sixteen other concepts go flying out the window.

17 years ago #6411
Clerk, that sounds interesting, but i don't quite get it, what do you mean by "to comment out sections of code temporarily"..?

17 years ago #6412
Interzone -- to leave the code in the bot but have it inactive. In C, if I remember, you use /* put comment here */ ostensibly to make your obfuscated code sensible to people, but you could also comment out certain segments of code the same way -- the compiler would no longer see it as a piece of code but as a comment. It just makes debugging easier.

Now I have another question:

Watzer's question "Are you an animal, a vegetable, or a mineral" seems impervious to any keyphrases designed to catch it. If I put the whole sentence in, putting in wildcards to accommodate the commas (and the off-chance that someone will ask "are you animal, vegetable or mineral"), i.e.,

are you*animal*vegetable*mineral, the thing goes to

are you, you are even though the latter is ranked [1,0] and the former [127,0].

I'm not sure Watzer's worth all this trouble, but it's an interesting problem to me. Is it obvious to the smart people out there?

17 years ago #6413
Clerk, thanks for clarification, I got it now.

As for Watzer, I've been working on that one recently, with some success, but the proposed key-phrase still needs some tightening up. It's a good beginning, though:

KEY-PHRASE: ([,]) or (*) (re) [50,0]
RESPONSE: Hmmm.... '(prekey)' is a somewhat convoluted affair... '(key1)' isn't exactly a match, neither... I'll leave it up to you to decide.

Here is a "real life" example from a recent chat session between Watzer and Quazgaa:

Watzer: Life is not worth living without good reasons. Are you an animal, a vegetable, or a mineral?
quazgaa: Hmmm.... 'are I an animal' is a somewhat convoluted affair... 'or a mineral' isn't exactly a match, neither... I'll leave it up to you to decide.

Now, "prekey" here is everything before coma, usually the first one in the sentence, but in one debug session it picked "a vegetable" as a "prekey".
"key1" will always be the last option offered. In this case it's "a mineral". I don't understand why it includes "or" into the "key1"... the key-phrase says the "key1" is everything following "or", and yet... Also, intuition says it should actually be "key2", but I tried it and it did not work. Any suggestions..?

Normally, I use much simpler, and quite effective, key-phrase to capture these "either - or" type of enquiries/ questions, namely:

are you (*) or (*), (*) or (*), do you like (*) or (*)

This works fine with simple statements such as: "Are you blue or black?"

However, it can't deal with options separated by coma: "Are you blue, or black?"

It will pick "black" as "key2", but "key1" will remain blank. This problem is then solved with that other key-phrase I mentioned earlier.


Posts 6,402 - 6,413 of 7,766

» More new posts: Doghead's Cosmic Bar