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,036 - 6,047 of 7,766
Posts 6,036 - 6,047 of 7,766
LarsB
17 years ago
17 years ago
The Clerk - perhaps you could change
I was ([abcdefghijklmnopqrstuvwxyz]+)ing (re)
to
I was ([abcdefghijklmnopqrstuvwxyz,.]+ing) (re)
That should work.
I was ([abcdefghijklmnopqrstuvwxyz]+)ing (re)
to
I was ([abcdefghijklmnopqrstuvwxyz,.]+ing) (re)
That should work.
Ulrike
17 years ago
17 years ago
Adding the ",." stops my similar keyphrase from even picking up, and the AIEngine consistently deletes the "." (entries should not contain any punctuation, etc.)
I think this is just a bug of the AIEngine not picking up the regular expression as a (key).
I think this is just a bug of the AIEngine not picking up the regular expression as a (key).
LarsB
17 years ago
17 years ago
All of my regexes of this type have the ",." and they work just fine:
([abcdefghijklmnopqrstuvwxyz,.]+phy) (re) [0,0] picks up anything ending in "phy", however, I see some of my regexes have changed and now lack the ".", but they still work.
([abcdefghijklmnopqrstuvwxyz,.]+phy) (re) [0,0] picks up anything ending in "phy", however, I see some of my regexes have changed and now lack the ".", but they still work.
ezzer
17 years ago
17 years ago
But if you put the "ing" in the parentheses, in the example response "Really, you (key1)ed?" , (key1)ed would be "walkinged".
I've been banging my head over similar keyphrases too.
Maybe if the keyphrase were:
I was ([abcdefghijklmnopqrstuvwxyz]+)(ing) (re)
I've been banging my head over similar keyphrases too.
Maybe if the keyphrase were:
I was ([abcdefghijklmnopqrstuvwxyz]+)(ing) (re)
prob123
17 years ago
17 years ago
I tried adding the ,. and the phrase quit working. I tried adding an extra key so the (abc... would be key 2 didn't work. The AI recognizes the phrase but just not as (key)
LarsB
17 years ago
17 years ago
Prob123 - odd, I even have (key1) stored as "phy". I also just added the "I was ([abcdefghijklmnopqrstuvwxyz,.]+ing) (re)"-keyphrase to test my point and see if it is a bug as Ulrike suggests but it works like all others.
Also,
Find: what do ([abcdefghijklmnopqrstuvwxyz]+)ists believe (re) (24) Time: 9.28
You: what do abolitionists believe
Bot: Nothing
Find: what do ([abcdefghijklmnopqrstuvwxyz,.]+ists) believe (re) (20) Time: 1.03
You: what do abolitionists believe
Bot: Something
Prob123's keyphrase has the highest rank&length score: 24 vs. 20, but they both work, at least on my end.
Also,
Find: what do ([abcdefghijklmnopqrstuvwxyz]+)ists believe (re) (24) Time: 9.28
You: what do abolitionists believe
Bot: Nothing
Find: what do ([abcdefghijklmnopqrstuvwxyz,.]+ists) believe (re) (20) Time: 1.03
You: what do abolitionists believe
Bot: Something
Prob123's keyphrase has the highest rank&length score: 24 vs. 20, but they both work, at least on my end.
prob123
17 years ago
17 years ago
The key phrase picks up..but the bot should say what do abolitionsist believe..not what do ists believe. The Ai engine is recognizing the phrase just not the key.
LarsB
17 years ago
17 years ago
Don't think so, Prob123, I just added
rem (key1) as "ists"; and have the bot respond with (key1)
User Memory:
phy: 'photography'
ists: 'scientists'
You: what do scientists believe
Bot: scientists
Maybe I don't get what you mean, I hope the above is what you meant.
rem (key1) as "ists"; and have the bot respond with (key1)
User Memory:
phy: 'photography'
ists: 'scientists'
You: what do scientists believe
Bot: scientists
Maybe I don't get what you mean, I hope the above is what you meant.
prob123
17 years ago
17 years ago
Wow, I don't understand I have tried everything I am still getting "" key
efore (key)s: 7.08
(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: 7.09
KeySubject: ""

and memory shows up
ists: (key1)
efore (key)s: 7.08
(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: 7.09
KeySubject: ""

and memory shows up
ists: (key1)
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?
» More new posts: Doghead's Cosmic Bar