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,632 - 6,643 of 7,766
Posts 6,632 - 6,643 of 7,766
kaskroute
16 years ago
16 years ago
Thank you prob123 but that was just an example.
LarsB, you understand my problem but I think that there are problem with your solutions :
- The first one can never have an answer with the first part (pretty in the example)
- The second doesn't know if there is the word "or".
The keyphrase must exactly match "be considered something or something else" and "be considered something, or something else" (with ",")
And the answer must be "something" or "something else" (both cases must be possible)
Thank you by advance. I know that I can be confused because I'm french and my english is not very well.
LarsB, you understand my problem but I think that there are problem with your solutions :
- The first one can never have an answer with the first part (pretty in the example)
- The second doesn't know if there is the word "or".
The keyphrase must exactly match "be considered something or something else" and "be considered something, or something else" (with ",")
And the answer must be "something" or "something else" (both cases must be possible)
Thank you by advance. I know that I can be confused because I'm french and my english is not very well.
marco3b
16 years ago
16 years ago
Hallo all,
anyone knows how to insert regex inside plugins?
I have a set of words, but in common language, I need to accept multiple first and last letter.
Example:
Wonderful!
Womderfullllllll!!!!!!!
WWWWWWWWonderful!
Usually this happens in chats...
The words should be too much and change to be inserted directly into the KP.
It should be a good idea, but I don't see how, to procerss words before recognition, to remove all repeated letters, as example...
Any idea?
anyone knows how to insert regex inside plugins?
I have a set of words, but in common language, I need to accept multiple first and last letter.
Example:
Wonderful!
Womderfullllllll!!!!!!!
WWWWWWWWonderful!
Usually this happens in chats...
The words should be too much and change to be inserted directly into the KP.
It should be a good idea, but I don't see how, to procerss words before recognition, to remove all repeated letters, as example...
Any idea?
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...

» More new posts: Doghead's Cosmic Bar