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 8,342 - 8,353 of 8,662

5 years ago #8342
It really doesn't want to find "hamster," does it?

You: I have a pet hanster
Bot: Really...let's hear about your handrest, Dallymo.

5 years ago #8343
There is a glitch for your bots AI not increasing anymore it happened to a few bots on here

5 years ago #8344
Aha! Good catch! And that really is funny about the word hamster.

I would love to do a lot more with plugin responses that work with the user's input but man... when they fail it's a train wreck.

At least now I know my bot isn't starting to gain sentience.


5 years ago #8345
A note re: plugins: if you copy/paste entries into the plugin values box, be sure you strip out any invisible carriage returns or unintended "smart quote" characters, since they can interfere with the selection of keyphrases using the plugin. Spent a good hour last night hammering away in debug trying to figure out why my obviously suitable, maximum rated keyphrase was not being considered. D'oh. ;-)

5 years ago #8346
Funny you should bring that up... because I ran into a similar problem earlier today and I'm not quite certain what you mean by invisible carriage returns...


The keyprhase I have is this:


I am (studying|learning|training) to (be a|be an|become a|become an) * (p:Job-catch),
I am (trying|attempting) to get a job as (a|an) * (p:Job-catch),
I (work|am working) as (a|an) * (p:Job-catch),
I am (studying|learning|training) (so I can be|so I can become) * (p:Job-catch)


Response 'A (key4) eh? Do you think you'll like doing that?'


Now the keyphrase works fine. Catching things like "I'm studying to be a rich and famous actor." And it will return, "A actor, eh? Do you think you'll enjoy doing that?"

The problem is, it will also catch things like: "I'm studying to be a walrus." or "I'm studying to be a block of wood"

Returning with "A eh, do you think you'll enjoy doing that?"

As a brute force temporary fix I added the kp:

I am (studying|learning|training) to (be a|be an|become a|become an) (*),
I am (trying|attempting) to get a job as (a|an) (*),
I (work|am working) as (a|an) (*),
I am (studying|learning|training) (so I can be|so I can become) (*)

which just goes to xnone. But it's a really inelegant solution. And I'd like to know why the original kp catches things that aren't in the plugin.

5 years ago #8347
Hmm.

"I'm studying to be a rich and famous actor" matches

I am - I'm
1studying|learning|training) - studying
to - to
2be a|be an|become a|become an) - be a
3:* - rich and famous
4p:Job-catch) - actor

It sounds like "I'm studying to be a walrus" is maybe hitting

I am - I'm
1studying|learning|training) - studying
to - to
2be a|be an|become a|become an) - be a
3:* - walrus
4p:Job-catch) -

which would give you a blank key4.

What about

I am (studying|learning|training) to (be a|be an|become a|become an) (*|) (p:Job-catch:4)

That makes the input between "be a" and the job plugin optional, and adding the :4 to the plugin key means your response (key4) will always match that key in the keyphrase, whether or not there is anything between it and the verb phrase.





5 years ago #8348
Oh, ha ha...colon parenthesis, not sad face. This, but without the spaces:

1: (
2: (
3: (
4: (

Let's see if that looks better...

5 years ago #8349
Oh, and invisible carriage returns: sometimes when I'm making a plugin I gather words and phrases from around the web and paste them into a Google doc or notepad, and then paste the whole list into the plugin when I'm done, rather than typing each item separately into the plugin. If there are carriage returns in the document or "curly" quotes or apostrophes and you paste them into the plugin they'll interfere with the ability of the language processor to evaluate and select the list items.

5 years ago #8350
Hrm, sadly that didn't work. It seems (*|) can't be substituted for *, or at least in this case it broke the kp somehow. (Couldn't even find an attempt to process it in the debugger.)

I do appreciate you taking the time to look this over though. For now I'll just use the alternate kp to redirect nonsense and add more specific possibilities as the need arises.

Thank you!

5 years ago #8351
Try leaving the * as is but keeping the :4 in the plugin key.

5 years ago #8352
I did actually try that. Still nada.

5 years ago #8353
This doesn't help you Nathan S, but you don't need to have "an" in your keyphrases, the site changes all "an"'s to just "a" before matching. Just saves a bit of time and effort. You can also use (det) instead, which could match "_an_ engineer" "_the_ president" "_a_ pilot", etc.


Posts 8,342 - 8,353 of 8,662

» More new posts: Doghead's Cosmic Bar