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,886 - 6,897 of 7,766

15 years ago #6886
I used the following keyphrase to catch the word "shit"
([s]+)([hi]+)([t]+) (re)

For some reason it also picks up "sit"..make a keyphrase for sit if you have something like this or your bot will sound really stupid

15 years ago #6887
I managed to match the tricky slang word similarly spelling it letter by letter in Regex - but the AI engine only picks it if it is a part of a sentence. If the word is used on it's own it goes to xnonsense. I wonder if I should add a ^ and $ for good measure...


15 years ago #6888
I would add the ^whatever$ it does help

15 years ago #6889
Added ^ and $ - no luck for tricky word. But I can live with that.

A little question regarding the mindfile size. I heard that the maximum file size accepted for import is 1 Meg. Is this still true?

Mine is 0.2 Meg and I just started… I try hard to reduce the dataload, by using smarter keyhrases among other things. For example:

Talk(ed|ing|) * (object)(s|) instead of (talk|talked|talking) * (object), (talk|talked|talking) * (object)(s),


What I discovered is that sometimes keyphrases with (ing|), (ed|), (s|), etc. work and sometimes they don’t. I am not sure what the snug is.

Is anybody else using them? Or should I get rid of them?

15 years ago #6890
accepted for import is 1 Meg.
No, my bots are well over that and can import.

What keyphrase are you trying to catch?
Try things like (talk|talked|talking)

15 years ago #6891
Great! This is good to know we can exceed 1 meg. I will stop using word(s|) format from now on and use (word|words) format as I saw in keynomes on BJ home page.

15 years ago #6892
Yeah, my file is damn near 6mb.. and it keeps growing.

A good combination of self memories and plug-ins should generally keep your file size down.

15 years ago #6893
At last managed to match: "What rhymes with" had to use regex
What ([r]+)([hymes]+) with (re) <?PF raw; ?>

But this is so strange, why would the AI engine not match such a simple keyphrase? It thinks Rhymes is a male name, but still stange.

15 years ago #6894
I just used things like
(rhyme|rhymes) * (brown|town|gown|down|clown|frown|noun) (re)
or
(rhyme|rhymes) * ([abcdefghijklmnopqrstuvwxyz]+)(aled|ailed) (re)
works for me

This covers keyphrases like 'rhyme lime for me' or can you find rhymes for nailed. etc..

I have ran rhyme and rhymes through debug and don't see it getting read as a name. Check out any plugins you have for names and rank the rhyme ones higher.
You: Rhyme time
Bot: I'll try lime, time, rhyme, thyme.

15 years ago #6895
The above keyphrase will catch most rhyme questions like
Do you know a word that rhymes with .....
What rhymes with .....
Can you rhyme ....
is there a rhyme for ....
Rhyme ....
Is there a rhyme for ....
etc
People can as a simple question in a thousand ways it seems

15 years ago #6896
Thanks, I see both your keyphrases are regular expressions. For some reason the AI engine refused to match un-regexed word "rhymes". It thought it was a male name but sent it to Blab. I will just use regexes. Problem solved.

15 years ago #6897
Wow, Forge is running great.


Posts 6,886 - 6,897 of 7,766

» More new posts: Doghead's Cosmic Bar