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,635 - 6,646 of 7,766

16 years ago #6635
I don't think you can do it. Unless you write them all out.

16 years ago #6636
ok, As never said...
(it is correct in english?) ;0)

16 years ago #6637
([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!!!"?

16 years ago #6638
yes,
it doesn't...

but it is not so important at now!

thanks

16 years ago #6639
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)

16 years ago #6640
Thanks, a lot prob123, and I discovered now that a DEBUG MODE Exists!

;-(

16 years ago #6641
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...

(


16 years ago #6642
Wild guess: Could it be because it's empty?

16 years ago #6643
I try this too
AIScript: default "NONE" as "ABC";

same result...

16 years ago #6644
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

16 years ago #6645
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!

16 years ago #6646
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?


Posts 6,635 - 6,646 of 7,766

» More new posts: Doghead's Cosmic Bar