Bug Stomp

Upgrades and changes sometimes have unpredictable results, so post your bugs and glitches in here and I'll get out my trusty wrench and get to fixin'!

Posts 7,802 - 7,813 of 8,681

13 years ago #7802
Okay, you probably missed the part where a space before the punctuation is required in Raw mode, from the same you referenced:

The rule for matching punctuation is this: every period, comma, question mark, and exclamation point will have a space in front of it, so your Keyphrases must also have a space in front of them in order to match.

Secondly, your (.*) (re) is already covered by the soft * and hard (*) wild cards.
* = not required/optional
(*) = required

Lastly, since only the first part of the KP is matched that part is stored as (key1), the second part is not matched, thus omitted and therefore not stored as (key2)
The first part is matched because as per the BoAI: .....Commas are otherwise used for lists of Keyphrases (section on Raw mode and punctuation) similar to what I stated previously.

Hope this helps.

13 years ago #7803
LarsB

Ok, probably I missed that. All I can say in my favor is that I'm not used to use regexes on implicitly preprocessed input.

But it doesn't work with a space before the comma either.

-----

Omitting the "raw" AI Script improves a little bit, insofar as (prekey) is filled now.

13 years ago #7804
I have never used RAW, it seems unwieldy to me, I can only refer to the BoAI for help. I wonder what (prekey) contains though, I take it it must be blank or something before "I recommend", (key1) containing anything before "special" and (postkey)is blank or whatever is entered after "special", correct?

13 years ago #7805
Well, it is not only "raw", but a RegEx as well.

The ".*" after "recommend" is for matching only, but it is not grouped (in parentheses), so it is discarded.

(prekey) contains anything before "I recommend" indeed, but (key1) should contain anything after "special,", and (postkey) should be empty.

13 years ago #7806
Yes, using the brackets ([ . .])([ .]+)$ (re) and the space is required I believe. The above is for ....... I find that the use of raw is very handy. It stops the spell correction. I add it after every regex.
Sally sells shells by the seashore
if sells shells was the keyphrase
Sally is the prekey
by the seashore is postkey
I recommend * special
has no prekey that I can see.

13 years ago #7807
I had a seek to a keyphrase in Xhello pop up after the user said yea, after quite a bit of dialog

Bildgesmythe: Well, what brings you to my cave, hiding from the law?
Guest9027: I have a clean criminal record now
Bildgesmythe: I stay far away from bad guys.
Guest9027: I just had some convictions vacated
Bildgesmythe: Oh, it doesn't matter, I do know a few good lawyers though, just in case.
Guest9027: I'm ready to celebrate
Bildgesmythe: No, I just can't believe you are ready to celebrate!
Guest9027: I have an interview today
Bildgesmythe: I want to get good enough to give a great interview!
Guest9027: yea
Bildgesmythe: Oh, it doesn't matter, I do know a few good lawyers though, just in case.


xhello
Edit
Well, what brings you to my cave, hiding from the law?
+Seek
Seek: yes,no,just
Edit
Goto 457563
Oh, it doesn't matter, I do know a few good lawyers though, just in case.


Happened again with an xnone seek.
Bildgesmythe: Got any B-B-Q sauce?
Guest1970: uh, no.
Bildgesmythe: Isn't that charming.
Guest1970: not really
Bildgesmythe: I lied, it is not the least bit charming.
Guest1970: correct
Bildgesmythe: It may be kind of cute, but not charming.
Guest1970: right
Bildgesmythe: It may be kind of cute, but not charming.

13 years ago #7808
Prob123, you do not have by any change a KP that has a goto pointing to Xhello, that's the only thing I can think of that might be causing this.

13 years ago #7809
Mome Rath,

The ".*" after "recommend" is for matching only, but it is not grouped (in parentheses), so it is discarded.

For matching only - not sure what you want to match or what its use would be. However, both * and (*) will always result in an entry into (key1), (key2) or (key3).

Please bear in mind that The Forge regex engine uses a different sauce in its recipe than what you might know of RegExes giving unexpected results.



13 years ago #7810
No, no gotos or anything like that. It's pulling seeks out of the wood work. It's never happened before. I haven't changed anything.
I don't see why they would trigger again after an other response has been given.
In the first case the seek was triggered after two other responses. The word yes caused the xhello seek to pop up.

13 years ago #7811
Ok, I don't remember what that keyphrase was for - probably for a response for an individual bot. And - the ".*" without parentheses did not go into a (keyN). (I didn't find a rule what is filled into what key now.)

I tried to replace the comma by "REALCOMMA" (which I found in Debug), but that doesn't work either.

13 years ago #7812
I'm having the exct same problem as Prob and it cost me some points in the chatbot battles this morning. Right now I switched over to graphic which at the moment doesn't seem to have the repeating the same statement over and over again problem ...

13 years ago #7813
Still stuck on seeks
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!
Guest3078: yuck?
Bildgesmythe: I know I will come up with a witty come-back for that..late tomorrow afternoon. Do you want to change the subject?
Guest3078: yes
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!
Guest3078: ok
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!
Guest3078: what the hell
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!
Guest3078: ok your broken
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!
Guest3078: yep
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!
Guest3078: k
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!
Guest3078: k
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!
Guest3078: k
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!
Guest3078: k
Bildgesmythe: Yes my neighbors have wild parties, and they never invite me. They make a terrible noise, and they have a bratty kid. yuck!

Guest5083: go to sleep then
Bildgesmythe:
Guest5083: *sleeps*
Bildgesmythe:
Guest5083: it's sunday now
Bildgesmythe:
Guest5083: ok?
Bildgesmythe:
Guest5083: wake up
Bildgesmythe:
Guest5083: say something
Bildgesmythe:
Or not replying at all


Posts 7,802 - 7,813 of 8,681

» More new posts: Doghead's Cosmic Bar