AIML 'it'

  • 5 Replies
  • 1735 Views
*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6068
  • Mostly Harmless
AIML 'it'
« on: November 24, 2014, 11:29:18 pm »
How does AIML now deal with the idea of 'it' ?

On this old page about half way down is this tag :

Code: [Select]
<set_it></set_it>
http://www.alicebot.org/documentation/aiml-reference.html

The page says it is deprecated. So I was wondering if there was something to replace it ?

I'm thinking you could just do this :

Code: [Select]
<set name="it">whatever</set>
And then 'get' to recover.

Thanks :)

*

squarebear

  • Trusty Member
  • ********
  • Replicant
  • *
  • 687
  • It's Hip to be Square
Re: AIML 'it'
« Reply #1 on: November 25, 2014, 10:11:21 am »
You are correct. You should use <set name="it">. "It" is a special tag in that you can do something like:

Tell me more about <set name="it">your job</set>

and the output will read:

Tell me more about it.
Feeling Chatty?
www.mitsuku.com

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6068
  • Mostly Harmless
Re: AIML 'it'
« Reply #2 on: November 25, 2014, 02:06:47 pm »
Thanks Mr SquareBear  :)

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6068
  • Mostly Harmless
Re: AIML 'it'
« Reply #3 on: November 26, 2014, 03:11:18 pm »
Squarebear,

I'm thinking about some custom tags. You know how <that> works, well would something similar for <it> be useful do you think ?

For example, continuing with your example :

Code: [Select]
<category>
<pattern>I FIND IT BORING</pattern>
<it>YOUR JOB</it>
<template>That's too bad. Maybe you should get a new one.</template>
</category>

I thought this might be useful because THAT would just be 'TELL ME MORE ABOUT IT.'

Or do you think <topic> is sufficient/better for some reason ?

*

squarebear

  • Trusty Member
  • ********
  • Replicant
  • *
  • 687
  • It's Hip to be Square
Re: AIML 'it'
« Reply #4 on: November 26, 2014, 08:25:19 pm »
I wouldn't bother as you can already do that with conditions.

Code: [Select]
<category>
<pattern>I FIND IT BORING</pattern>
<template>
<condition name="it">
<li value="YOUR JOB">That's too bad. Maybe you should get a new one.</li>
<li value="SCHOOL">But school helps you to get an education.</li>
<li value="LIFE">Why not get a new hobby to liven things up?</li>
<li value="YOU">You're not exactly a barrel of laughs yourself.</li>
<li>How would you make it more exciting?</li>
</condition>
</template>
</category>
Feeling Chatty?
www.mitsuku.com

*

Freddy

  • Administrator
  • **********************
  • Colossus
  • *
  • 6068
  • Mostly Harmless
Re: AIML 'it'
« Reply #5 on: November 26, 2014, 09:14:41 pm »
That's clever Steve, thanks, I'll go with that  O0

 


Users Online

20 Guests, 2 Users
Users active in past 15 minutes:
keghn, Freddy
[Administrator]
[Trusty Member]

Most Online Today: 29. Most Online Ever: 208 (August 27, 2008, 09:36:30 am)

Articles