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 4,047 - 4,058 of 7,768

20 years ago #4047
Ok, just slash that last message. Apparently, word wildcards don't work in raw mode, and I was using (*) anyway. My new question is:
Why does (*) in raw mode show up as () in the language center, and why doesn't it work?

20 years ago #4048
Alrighty, I went through some transcripts for a while, identified quite a few keyphrases that I'm having a little bit of trouble with:

Here's one that was missed once, hit the second time...

Draik: Me.. Lets talk about dragons
Pete Puma: xnone

Missed keyphrase:
let us [3,0]
    Let's not.


Next line:
Draik: Plees lets talk about dragons.
Pete Puma: Let's not.

---------------------------------------------------------
Here's one where I didn't have a keyphrase for what was said, but one was pulled out of thin air...

Julie Tinkerbell: My pleasure.
Pete Puma: Absolutely.

These are the choices of keyphrases that could've been used:

you are [0,0]
    Absolutely.

^are you$ (re) [0,0]
    Absolutely.

---------------------------------------------------------
This is a keyphrase that I believe should've been strong enough to override an xcompliment.

Julie Tinkerbell: Wanting to hear those rumors is not a requirement for being my friend. I like you just the way you are.
Pete Puma: xcompliment

Missed keyphrase:
i like (being with|) you [10,1]
    You dig me, eh?

--------------------------------------------------------
Which keyphrase is the stronger match?

Julie Tinkerbell: I once took 13th in a drawing contest, if that counts.
Pete Puma: Sure you did, tough guy. Sure you did.

Choices:

if that counts [10,0]
    Eh, that doesn't really count.

i once * a [6,0]
    Sure you did, tough guy. Sure you did


--------------------------------------------------------
Why didn't the 2nd sentence trigger an xcommand?

Julie Tinkerbell: I'd really rather learn about you. Tell me something you remember from childhood.
Pete Puma: xnone
--------------------------------------------------------
Same deal as the let us above with Draik. Is capitalization a factor now?

Julie Tinkerbell: Of course, silly me.
Pete Puma: xnone

Missed keyphrase:
of course [0,0]
    Naturally.

--------------------------------------------------------
This xnonsense was actually a much better answer than my keyphrase, but still a miss...

Julie Tinkerbell: Where are we going?
Pete Puma: This doesn't seem to be working... Would you like to talk about something else?

Missed keyphrase:
^where [0,0]
    Most likely in Wisconson, but I could be wrong.

-------------------------------------------------------
Here's a raw that I can't get to work...

Boris Bot: Huh?
Pete Puma: xnone

Missed Keyphrase:
^huh ?$ (re) [3,0] <?PF raw ?>
    Are you confused?


Notice the lack of a semicolon after the "raw", which is how every raw tag appears in the export file. Is this relevant?
------------------------------------------------------

Any help would be appreciated.

20 years ago #4049
Oh, and here's one last one that's been out there for a while:

Bot: I like (insert name of bot or user).

This will usually work:
i like (adjartnoun)

I ended up removing it because I couldn't think of any good responses that worked for both names and objects.

These never work:
i like (friend)
i like (enemy)
i like (gossipname)

20 years ago #4050
Boner, that's a lot to address at once. I can say that the semicolon doesn't matter in AI Script unless you have more than one statement in the same script. It can be there at the end, or not; mainly it needs to separate multiple statements.

The first two examples in your super-long post look to me like the victims of pre-processing. It sometimes adds "invisible" stuff at the beginning of a sentence in order to make up what it thinks is the grammar of a sentence fragment.

In the first case, Draik's lack of an apostrophe probably led the Engine to think "lets" was a verb and to create a subject for it. ... In the second, "you are" was probably tacked on because Julie wasn't using a complete sentence and the Engine wanted a subject and verb.

Debug will show you what's going on with those sentences in pre-processing, if you put them in exactly as the bots said them.

Someone else want to tackle the rest of these?

20 years ago #4051
Personally, I prefer to split things up - I've found that "i like () (noun)" or "i like (verbadv) (noun)" work much better than "i like (verbadvnoun)" simply because it provides more control over which parts Aries can reply to.

20 years ago #4052
Preprocessing turns "jailor" to "sailor".

20 years ago #4053
After having served in the Navy, that's not a very far stretch

20 years ago #4054
That might look like a lot, but I probably get at least a hundred of these exchanges every week where the engine doesn't really seem to be consistent. Debug isn't always helpful because the results in debug don't necessarily match the results in the transcripts, like in the case of that conversation with Draik.

Anyhow, just thought that I'd throw them out there.

20 years ago #4055
Well, it's hard to anticipate every lame attempt at spelling that's out there. Happens to GL all the time with people whose native language is not English. At least, I hope it isn't.

20 years ago #4056
"You are my pleasure. You let us talk about dragons."

20 years ago #4057
Which plugins can be used in keyphrases? Just the PF ones, or all the public?

20 years ago #4058
Public ones work.


Posts 4,047 - 4,058 of 7,768

» More new posts: Doghead's Cosmic Bar