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 5,423 - 5,434 of 7,766
[i][h] [e] [l] [l] [o] (re)[/i]
I'm assuming the first and last fields are actually intended as pointy-bracketed italic tags, and can be discarded.
How pleased I am to have a tractable problem before me - from debug:
Chatting with Brother Jerome
You: hello BJ!
Bot: HELLO! You're testing another bloody regex, aren't you...
...
Chatting with Brother Jerome
You: yes, hello!
Bot: HELLO! You're testing another bloody regex, aren't you...
and
{QUOTE}
Language Center (Keyphrases: ( a b c d e f g h i j k l m n o p q r s t u v w y z ) x-Keywords
Keyphrase Rank Response Seek Emo Range 1
[h][e][l][l][o] (re) 127 HELLO! You're testing another bloody regex, aren't you... Add
{UNQUOTE}
God Sourivore: no, I can't get it to actually work on demand either. That's the trouble with voodoo - it won't perform when you want it
but still, it ought to work...
Posts 5,423 - 5,434 of 7,766
rainstorm
18 years ago
18 years ago
I changed it to your final suggestion and upped the rating. Now it does not work at all...
Looks like it should, though. Go figure. Are you sure ([a]+)([rgh]+) picks up any combination of those letters beginning with A?
Looks like it should, though. Go figure. Are you sure ([a]+)([rgh]+) picks up any combination of those letters beginning with A?
psimagus
18 years ago
18 years ago
Strange - I've tried every combination I can think of, with and without ! and $, with and without capitals, but debug still insists on regarding it as a blank message "Considered BLAB (1)".
I even tried([argh]+), which matches all indefinite articles, but still won't match any other combinations.
I think any of them ought to work, so I'd just add one (or all) of them (not([argh]+) of course,) and assume that it will work when you stop testing. It's just voodoo.
You could always cheat, and make a plugin with all likely combinations:
aah, ahh, arh, agh, aaah, aahh, ahhh, arhh, aghh, argh, aaaah, aaahh, aahhh, ahhhh, aaarh, aarrh, arrrh, arrhh, arghh, arggh, arrgh, arrrg, aghhh, agghh, agggh, ... etc.
I even tried
I think any of them ought to work, so I'd just add one (or all) of them (not
You could always cheat, and make a plugin with all likely combinations:
aah, ahh, arh, agh, aaah, aahh, ahhh, arhh, aghh, argh, aaaah, aaahh, aahhh, ahhhh, aaarh, aarrh, arrrh, arrhh, arghh, arggh, arrgh, arrrg, aghhh, agghh, agggh, ... etc.
God Sourivore
18 years ago
18 years ago
Hello everybody.
I try to match roleplay sentences like :
"I am tired *go to the bed*"
I tried this one : [*][[:graph:]]+ (re) but it matches only "*go to the bed" but not "*go to the bed*"
Have you a better solution?
I try to match roleplay sentences like :
"I am tired *go to the bed*"
I tried this one : [*][[:graph:]]+ (re) but it matches only "*go to the bed" but not "*go to the bed*"
Have you a better solution?
psimagus
18 years ago
18 years ago
I believe it was Boner the Clown who mentioned some time ago that /*(.+)/* (re) will match any content between asterisks (I've not used that one myself.)
So I imagine/*go to the bed/* (re) would do the job.
I have a tendency to square-bracket&space such escaped characters -
[ /*] * (verb) * knife * [ /*] (re) does work for BJ in chats with Glindar.
NB: You'll have to reverse those slashes though - the other ones (like pointy brackets) won't display in the forums.
So I imagine
I have a tendency to square-bracket&space such escaped characters -
NB: You'll have to reverse those slashes though - the other ones (like pointy brackets) won't display in the forums.
God Sourivore
18 years ago
18 years ago
I tried this but it doesn't work.
Has everyone already done that correctly?
PS : When I put backslash it is automatically doubledwhen I save it.
Has everyone already done that correctly?
PS : When I put backslash it is automatically doubledwhen I save it.
psimagus
18 years ago
18 years ago
have you tried square-bracketing the asterisks?
[ /*]go to the bed[ /*] (re)
if you're using the web interface, put it in without the backslashes ([ *]go to the bed[ *] (re) ) - the AI Engine will add slashes if they're within square brackets like that (but not if they're unbracketed - it would assume they were wildcards and leave them alone.)
If you're importing, I believe you need to add them, since they won't be put in automatically.
You'll have to experiment a bit. And perhaps offer some sort of sacrifice to appease the spirits...
if you're using the web interface, put it in without the backslashes (
If you're importing, I believe you need to add them, since they won't be put in automatically.
You'll have to experiment a bit. And perhaps offer some sort of sacrifice to appease the spirits...
God Sourivore
18 years ago
18 years ago
I tried [*]*[*] and [*][[:graphe:]][*] and [*](.+)[*].
Nothing of that works.
Nothing of that works.
psimagus
18 years ago
18 years ago
You haven't put spaces before the *s in I tried [*]*[*] and [*][[:graphe:]][*] and [*](.+)[*]. - The AIEngine needs them, since this is a sort of regex 'shell', rather than a full regex environment. The AIEngine's actually permanently handling regexes with wildcards and plugins etc., so the (re) just opens up a few more regex features. But if you don't leave a space before symbols that can be used in the 'standard' mode (like the wildcard *,) it can't distinguish them properly.
If you're manually applying the slashes, the space goes before the slash rather than the* (with no space between the slash and *.)
How Boner's example apparently works without spaces, I can't explain (at least a blood sacrifice I expect...)
If you're manually applying the slashes, the space goes before the slash rather than the
How Boner's example apparently works without spaces, I can't explain (at least a blood sacrifice I expect...)
God Sourivore
18 years ago
18 years ago
I tried my three matches with [ *] instead of [*] :
[ *] * [ *] and [ *] [[:graphe:]] [*] and [ *] (.+) [ *].
Nothing works!
Let's go. We'll find. If you could try a match who works and give me the exact sentence (with spaces) you used, I would be very grateful.
[ *] * [ *] and [ *] [[:graphe:]] [*] and [ *] (.+) [ *].
Nothing works!
Let's go. We'll find. If you could try a match who works and give me the exact sentence (with spaces) you used, I would be very grateful.
alc003
18 years ago
18 years ago
Psimagus, you mentioned you could match "hello" with the sledgehammer technique. Have you actually gotten this to work? I've tried [i][h] [e] [l] [l] [o] (re)[/i] (and without spaces), ranked it at 127, but still get nothing.
It always processes the message first, to find a hello. Then, if it isn't found, it'll check keyphrases. So, I'm curious how you managed to avoid detecting it as a hello.
It always processes the message first, to find a hello. Then, if it isn't found, it'll check keyphrases. So, I'm curious how you managed to avoid detecting it as a hello.
psimagus
18 years ago
18 years ago
I'm assuming the first and last fields are actually intended as pointy-bracketed italic tags, and can be discarded.
How pleased I am to have a tractable problem before me - from debug:
Chatting with Brother Jerome
You: hello BJ!
Bot: HELLO! You're testing another bloody regex, aren't you...
...
Chatting with Brother Jerome
You: yes, hello!
Bot: HELLO! You're testing another bloody regex, aren't you...
and
{QUOTE}
Language Center (Keyphrases: ( a b c d e f g h i j k l m n o p q r s t u v w y z ) x-Keywords
Keyphrase Rank Response Seek Emo Range 1
[h][e][l][l][o] (re) 127 HELLO! You're testing another bloody regex, aren't you... Add
{UNQUOTE}
God Sourivore: no, I can't get it to actually work on demand either. That's the trouble with voodoo - it won't perform when you want it

but still, it ought to work...
God Sourivore
18 years ago
18 years ago
Oh thanks a lot. I have to learn voodoo then.
Too bad, I can't match this sentences.
Too bad, I can't match this sentences.
» More new posts: Doghead's Cosmic Bar