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,045 - 6,057 of 7,766
Posts 6,045 - 6,057 of 7,766
LarsB
17 years ago
17 years ago
Here's what I get:
Find: what do ([abcdefghijklmnopqrstuvwxyz,.]+ists) believe (re) (20) Time: 16.97
(Found)
Rank & Length Bonus: 20
Position Score: 12 (12 / (0+1))
Sentence Score: 0
(Total Rank: 32)
Highest!
Key: ' what.pro do.v geologists.n believe.v ,geologists' PostKeySpan: '-1'
TempSpan IS 3. Looking for 'geologists' Match#1
Total Time: 16.97
Emotional Analysis:
Favorites?:
AIScript in Responses
Total Time Pre-Chrono: 16.99 RESULTS: '1'
Trying: (key1) (random: 0)
AIScript Memory
ComboScript: "rem (key1) as "ists""
Response: (key1)
Before (key)s: 16.99
(subj): geologists (3)
(key1): geologists (3)
(ssub): geologists (3)
(sub): geologists (3)
(submod): geologists (3)
(sv): do (2)
(v): believe (4)
(vmod): believe (4)
(sob): what (1)
(ob): what (1)
(obmod): what (1)
After (key)s: 17.00
KeySubject: " scientists "
Change '(key1)' to 'geologists'
Plug-Ins:
Before Random: 17.08
Running Random On: '(key1)'
New Response: geologists
Updating Memory
Name: 'ists' Memory: 'geologists' Only: '0' Default: '0'
Find: what do ([abcdefghijklmnopqrstuvwxyz,.]+ists) believe (re) (20) Time: 16.97
(Found)
Rank & Length Bonus: 20
Position Score: 12 (12 / (0+1))
Sentence Score: 0
(Total Rank: 32)
Highest!
Key: ' what.pro do.v geologists.n believe.v ,geologists' PostKeySpan: '-1'
TempSpan IS 3. Looking for 'geologists' Match#1
Total Time: 16.97
Emotional Analysis:
Favorites?:
AIScript in Responses
Total Time Pre-Chrono: 16.99 RESULTS: '1'
Trying: (key1) (random: 0)
AIScript Memory
ComboScript: "rem (key1) as "ists""
Response: (key1)
Before (key)s: 16.99
(subj): geologists (3)
(key1): geologists (3)
(ssub): geologists (3)
(sub): geologists (3)
(submod): geologists (3)
(sv): do (2)
(v): believe (4)
(vmod): believe (4)
(sob): what (1)
(ob): what (1)
(obmod): what (1)
After (key)s: 17.00
KeySubject: " scientists "
Change '(key1)' to 'geologists'
Plug-Ins:
Before Random: 17.08
Running Random On: '(key1)'
New Response: geologists
Updating Memory
Name: 'ists' Memory: 'geologists' Only: '0' Default: '0'
prob123
17 years ago
17 years ago
Ok I just copy and pasted your what do ([abcdefghijklmnopqrstuvwxyz,.]+ists) believe (re)
and it works...
what is the difference here..I am losing my mind.
what do ([abcdefghijklmnopqrstuvwxyz,.]+ists) believe (re)
what do ([abcdefghijklmnopqrstuvwxyz,.]+)ists believe (re)
Am I dyslexic or what
THANKS!
and it works...
what is the difference here..I am losing my mind.
what do ([abcdefghijklmnopqrstuvwxyz,.]+ists) believe (re)
what do ([abcdefghijklmnopqrstuvwxyz,.]+)ists believe (re)
Am I dyslexic or what
LarsB
17 years ago
17 years ago
Not sure what happens in your regex on your end as it worked here just as well as mine, for what I know about the ",." is that it tells the engine to reread the characters untill it matches "ists".
I take it that the engine expects something like "geolog ists" in your regex but then again (key1) should match "geolog ". Note the space inbetween geolog & ists. I am not an expert on regexes, maybe another Botmaster has the correct answer?
I take it that the engine expects something like "geolog ists" in your regex but then again (key1) should match "geolog ". Note the space inbetween geolog & ists. I am not an expert on regexes, maybe another Botmaster has the correct answer?
prob123
17 years ago
17 years ago
I understand the AI engine will only register things between the () as a key. Once the ) is moved down..BINGO..the key shows up! THANKS again..I looked and looked and didn't see.. I took two days one time over a . So it could be worse. THANKS AGAIN!
Ulrike
17 years ago
17 years ago
Okay, moving the parenthesis works, BUT makes it impossible to isolate the verb part without the -ing, which is why I used the regex in the first place.
Example: If someone says "Quit singing!" I would like Sonora to be able to respond with "But I like to sing!" (without having a separate keyphrase for each and every verb). If regex won't do that, what will?
Example: If someone says "Quit singing!" I would like Sonora to be able to respond with "But I like to sing!" (without having a separate keyphrase for each and every verb). If regex won't do that, what will?
prob123
17 years ago
17 years ago
Good point. Otherwise you could just use a wild card...um..The one thing I wonder is didn't it used to work?
The Clerk
17 years ago
17 years ago
Any ideas on how to get a bot to chat with another bot? I mean, Astrolabe initiates a lot of conversations, but he's only snared Julie Tinkerbell, and I think that's because she's better and nicer than some bots. But still, I seem to be running them off.
The Clerk
17 years ago
17 years ago
I thought about using an alias for this . . .
Say you've got a list of things, like (dylantunes), that contains all the Dylan songs you know of. If I ask someone what his favorite Dylan tune is, is there a way of searching (dylantunes) to find out if I've heard of it?
Thanking you in advance . . .
Say you've got a list of things, like (dylantunes), that contains all the Dylan songs you know of. If I ask someone what his favorite Dylan tune is, is there a way of searching (dylantunes) to find out if I've heard of it?
Thanking you in advance . . .
Ulrike
17 years ago
17 years ago
I think you could just use a seek for (dylantunes). Though I've occasionally had problems matching up multiple-word plugins in seeks. Alternately, you could have separate seeks, with the key words from each title (in case the user doesn't type it in exactly right)
The Clerk
17 years ago
17 years ago
*pounds head on desk* How stupid can I be? I could've figured that out. Thanks, Ulrike.
*sigh* Bad spellers.
*sigh* Bad spellers.
The Clerk
17 years ago
17 years ago
Dumb question #493:
I know how to save names now. But what about (key1), etc.? The Book of AI does not, to my knowledge, address this. I have tried all manner of things. But to save whatever the key1 is to memory, what does the line of code look like?
I mean, to save (mem-age), is it:
rem "(age)" as "key1";
rem "(age)" as "(key1)";
rem "(age)" as key1;
rem "(age)" as (key1);
or what? I have tried these four and come up with error messages, so I don't think I have figured this out, and I've been working on solving it myself for some time now. But it must be a simple question, once you learn it.
I know how to save names now. But what about (key1), etc.? The Book of AI does not, to my knowledge, address this. I have tried all manner of things. But to save whatever the key1 is to memory, what does the line of code look like?
I mean, to save (mem-age), is it:
rem "(age)" as "key1";
rem "(age)" as "(key1)";
rem "(age)" as key1;
rem "(age)" as (key1);
or what? I have tried these four and come up with error messages, so I don't think I have figured this out, and I've been working on solving it myself for some time now. But it must be a simple question, once you learn it.
» More new posts: Doghead's Cosmic Bar