random pickup line

Assistance with (ALMOST) anything not directly related to Program O

random pickup line

Postby chloeml » April 23rd, 2015, 10:21 pm

Hi,

I've been away from this for a while. I'm trying to figure out when does "Error Response Message" trigger versus "Default Pickup Line Pattern"? I used to be able to use random pickup line to catch phrases that weren't returning any matches.

Thanks!

Chloe
chloeml
Casual Member
 
Posts: 17
Joined: September 19th, 2013, 8:57 pm

Re: random pickup line

Postby Alekz » April 24th, 2015, 11:22 pm

E.g. if you have a loop or a "deep recursion".
Alekz
Avid Member
 
Posts: 75
Joined: January 25th, 2015, 2:47 pm

Re: random pickup line

Postby chloeml » May 22nd, 2015, 12:16 am

Thanks. I used to be able to use "RANDOM PICKUP LINE" in my AIML set so that I could sort of diversify my "no results" response.

Something like this for an example:

Code: Select all
<category>
  <pattern>RANDOM PICKUP LINE</pattern>
  <template>
     <random>
        <li>Sorry, could not find a good response!</li>
        <li>Can you rephrase your question?</li>
        <li>Please try again.</li>
     </random>
  </template>
</category>


Now, if there is no response, the user just gets the "Error Response Message". I wonder if there's any insight in that. Maybe I need to manipulate the weight of "RANDOM PICKUP LINE" in the matching function...
chloeml
Casual Member
 
Posts: 17
Joined: September 19th, 2013, 8:57 pm

Re: random pickup line

Postby chloeml » May 22nd, 2015, 12:44 am

Of course, right when I posted that, I think I may have figure out my problem/solution. In find_aiml.php, the global $default_pattern is blank for me. I had to hardcode my pickup line there! When I did, it works! :]
chloeml
Casual Member
 
Posts: 17
Joined: September 19th, 2013, 8:57 pm


Return to AIML/General help

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron