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,637 - 6,648 of 7,766
Posts 6,637 - 6,648 of 7,766
psimagus
16 years ago
16 years ago
([w]+)onderfu([l]+) would work in a keyphrase, but not in a plugin I think. The AIEngine ought to be able to handle most such variations - have you tried just using "wonderful" in the plugin, and seeing if it will match "Wwwonderfullll!!!"?
prob123
16 years ago
16 years ago
It seems that the AI enginge corrects the spelling on wwwwonderful etc
Total Time PRE: 0.00
Total Time0: 0.02
Total Time1: 0.08
Total Time-Self: 0.88
Total Time2: 0.88
Total Time-Mem: 0.90
Initialize: '' AIScript: 'default (name) as "name";'
Your Last Message:
My Last Message: problem
Message: 'wwwwonderful' Time: 0.90
Message: (spell-corrected) 'wwwwonderful' Time: 0.90
Message: (preprocessed) 'wwwwonderful' Time: 0.91
Name Poss: Bildgesmythe (Name As Word: )
Begin Sentence Total Time: 0.91
This Sentence: wwwwonderful
This Phrase: wwwwonderful
Begin Interj Total Time: 0.91
End Interj Total Time: 0.92
Start Get Word Bases: 0.92
RESPELLING: wwwwonderful
Total Time: 0.92
Got Speller: 0.95
SEARCHER:
Total Time: 0.95
SPLITTER:
Try wwwwonderful
Try wwwwonderfu
Try wwwwonderf
Possible Word Forms: (wwwwond?)(wwwwonde?)
Try wwwwonder
Try wwwwonde
Try wwwwond
Try wwwwon
Try wwwwo
Try wwww
Try www
Found But Futile:
Total Time: 0.96
SOUNDER:
wwwwonderful: 'W AA N D ER F AH|AO|UH|UW L' (4)
Total Time: 0.97
SCRAMBLER:
Word: 'wwwwonderful' to 'deflnoruw'
Other possibilities: wonderful,wnderful,woderful,wonerful,wondrful,wondeful,wonderul,wonderfl,wonderfu
LIKE: sunflower_seed LEV: 12 LEN: 2 BON: 0 SCORE: 0.17
LIKE: wonderful LEV: 3 LEN: 3 BON: 7 SCORE: 8
LIKE: wonderfulness LEV: 7 LEN: 1 BON: 1 SCORE: 2.86
Total Time: 0.98
NAMER:
Top Match: wonderful Type: (8)
Total Time PRE: 0.00
Total Time0: 0.02
Total Time1: 0.08
Total Time-Self: 0.88
Total Time2: 0.88
Total Time-Mem: 0.90
Initialize: '' AIScript: 'default (name) as "name";'
Your Last Message:
My Last Message: problem
Message: 'wwwwonderful' Time: 0.90
Message: (spell-corrected) 'wwwwonderful' Time: 0.90
Message: (preprocessed) 'wwwwonderful' Time: 0.91
Name Poss: Bildgesmythe (Name As Word: )
Begin Sentence Total Time: 0.91
This Sentence: wwwwonderful
This Phrase: wwwwonderful
Begin Interj Total Time: 0.91
End Interj Total Time: 0.92
Start Get Word Bases: 0.92
RESPELLING: wwwwonderful
Total Time: 0.92
Got Speller: 0.95
SEARCHER:
Total Time: 0.95
SPLITTER:
Try wwwwonderful
Try wwwwonderfu
Try wwwwonderf
Possible Word Forms: (wwwwond?)(wwwwonde?)
Try wwwwonder
Try wwwwonde
Try wwwwond
Try wwwwon
Try wwwwo
Try wwww
Try www
Found But Futile:
Total Time: 0.96
SOUNDER:
wwwwonderful: 'W AA N D ER F AH|AO|UH|UW L' (4)
Total Time: 0.97
SCRAMBLER:
Word: 'wwwwonderful' to 'deflnoruw'
Other possibilities: wonderful,wnderful,woderful,wonerful,wondrful,wondeful,wonderul,wonderfl,wonderfu
LIKE: sunflower_seed LEV: 12 LEN: 2 BON: 0 SCORE: 0.17
LIKE: wonderful LEV: 3 LEN: 3 BON: 7 SCORE: 8
LIKE: wonderfulness LEV: 7 LEN: 1 BON: 1 SCORE: 2.86
Total Time: 0.98
NAMER:
Top Match: wonderful Type: (8)
marco3b
16 years ago
16 years ago
Still cannot understand how memories works.
I defined the Inizialization script:
AIScript: default "" as "ABC";
And use it in the KP:
try it [10,5]
test the memory <?PF if (mem-ABC) exists; ?>
The strange thing is that when I ran debug mode, it match the sentence, than in answer anaisys it says:
...
Initialize: '' AIScript: 'default "" as "ABC";
...
AIScript in Responses
Total Time Pre-Chrono: 0.95 RESULTS: '1'
Trying: test the memory (random: 0)
Skipping: (mem-ABC) does not exist
BUT it was just initialized!
And the ABC entry it isn't in the Inner life too!
For me it's not understendable...
(
I defined the Inizialization script:
AIScript: default "" as "ABC";
And use it in the KP:
try it [10,5]
test the memory <?PF if (mem-ABC) exists; ?>
The strange thing is that when I ran debug mode, it match the sentence, than in answer anaisys it says:
...
Initialize: '' AIScript: 'default "" as "ABC";
...
AIScript in Responses
Total Time Pre-Chrono: 0.95 RESULTS: '1'
Trying: test the memory (random: 0)
Skipping: (mem-ABC) does not exist
BUT it was just initialized!
And the ABC entry it isn't in the Inner life too!
For me it's not understendable...

prob123
16 years ago
16 years ago
Where to put the AI script: Initialization, Keyphrase, Response
Statement: <?PF remember "memorycontents" as "memoryname"; ?>
Statement: <?PF self: remember "memorycontents" as "memoryname"; ?>
Example: <?PF remember (key1) as "justate"; ?>
Example: <?PF remember (object) as "mygift"; ?>
Example: <?PF remember "pina colada" as "favoritedrink"; ?>
Example: <?PF remember "The (Verb)ing (Person)s" as "bandname"; ?>
Example: <?PF remember "(key1) (postkey)" as "youliketodo"; ?>
What It Does: Saves memorycontents as a memory by the name of memoryname. If memorycontents contains plug-ins, they will be filled in before the memory is stored. If a memory of this name exists, it adds the new value to a list with a maximum of 10 values.
Statement: <?PF remember "memorycontents" as only "memoryname"; ?>
Statement: <?PF self: remember "memorycontents" as only "memoryname"; ?>
Example: <?PF remember (key1) as only "nickname"; ?>
Example: <?PF remember "bear" as only "nickname"; ?>
What It Does: Saves memorycontents or the value of a plugin as the only memory by the name of memoryname. This will replace all existing memories of the given name, so that that memory will only have one thing in it.
Alternate: rem can be used instead of remember
To use any memory use (mem_memoryname).
Your name is (mem-name)
You are from (mem-livein) etc
Statement: <?PF remember "memorycontents" as "memoryname"; ?>
Statement: <?PF self: remember "memorycontents" as "memoryname"; ?>
Example: <?PF remember (key1) as "justate"; ?>
Example: <?PF remember (object) as "mygift"; ?>
Example: <?PF remember "pina colada" as "favoritedrink"; ?>
Example: <?PF remember "The (Verb)ing (Person)s" as "bandname"; ?>
Example: <?PF remember "(key1) (postkey)" as "youliketodo"; ?>
What It Does: Saves memorycontents as a memory by the name of memoryname. If memorycontents contains plug-ins, they will be filled in before the memory is stored. If a memory of this name exists, it adds the new value to a list with a maximum of 10 values.
Statement: <?PF remember "memorycontents" as only "memoryname"; ?>
Statement: <?PF self: remember "memorycontents" as only "memoryname"; ?>
Example: <?PF remember (key1) as only "nickname"; ?>
Example: <?PF remember "bear" as only "nickname"; ?>
What It Does: Saves memorycontents or the value of a plugin as the only memory by the name of memoryname. This will replace all existing memories of the given name, so that that memory will only have one thing in it.
Alternate: rem can be used instead of remember
To use any memory use (mem_memoryname).
Your name is (mem-name)
You are from (mem-livein) etc
marco3b
16 years ago
16 years ago
true probe123, and this works. But I need to check that an entry is already in a memory or not. The problem is at the beginning, when no memories are still in the just initialized memory. The answer is just skipped because the AI says that the memory doesn't exist (but it should exist, as it is initialized) but it dont!
LarsB
16 years ago
16 years ago
Log out and log in again, not sure if this will help but it may be worth trying. Perhaps the bot needs to be initialized first for the changes made in Initialization to come into effect?
prob123
16 years ago
16 years ago
Is it a self memory? The memories should show up immediately under the inner life for each user. You can edit the memories if you like. Self memory should show at the top. I have been having a bit of trouble with the self memories, but all the regular ones seem fine.
» More new posts: Doghead's Cosmic Bar