Noobie questions

View: New views
4 Messages — Rating Filter:   Alert me  

Noobie questions

by Ad-17 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sorry but this is giving me a headache, Ive been playing with it for a day
now and I'm getting some good output, but I have a couple of code questions.
I had a quick rake through the archives but nothing came up so I hope you
dont mind me asking basic stuff here.

I am starting with an empty list.

1) If there is no answer in the aiml I want the bot to say nothing and give
no response but I keep getting blank lines coming up when random things are
entered that I have no pattern for yet. I tried

<category>
<pattern>*</pattern>
  <template/>
</category>

with no joy. Can this be done?


2) How do I stop it writing the full stop at the end of every line?


3a)

<category>
<pattern>HOW ARE YOU</pattern>
<template>
  <random>
  <li>great</li>
  <li>fine</li>
  <li>could be worse</li>
  <li>good thanks</li>
  </random>
</template>
</category>

<category>
  <pattern>* HOW ARE YOU</pattern>
  <template>
    <srai>HOW ARE YOU</srai>
  </template>
</category>

<category>
  <pattern>HOW ARE YOU *</pattern>
  <template>
    <srai>HOW ARE YOU</srai>
  </template>
</category>

<category>
  <pattern>* HOW ARE YOU *</pattern>
  <template>
    <srai>HOW ARE YOU</srai>
  </template>
</category>


Do I have to have all 3 srai codeblocks to cover all eventualities of things
like

hi how are you?
how are you today?
hi how are you today?

Or is there a simpler way to do this?




4) From above

_ HOW ARE YOU

seems to work just as well as

* HOW ARE YOU

Any real difference there?



Thanks a lot for any help, im sure i'll have another 10 questions soon, but
those are the ones in my mind right now.


A

_______________________________________________
This is the pandorabots-general mailing list
To Post, reply to pandorabots-general@...
Unsubscribe and change preferences at http://list.pandorabots.com/mailman/listinfo/pandorabots-general
Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
Learn to read at http://www.literacy.org/

Re: Noobie questions

by Ad-17 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Come on guys we all had to start somewhere? If they are not worthy of
answers by the obviously more informed people here could someone point me to
somewhere that I can ask basic questions please?

Thank you

Ad

----- Original Message -----
From: "Ad" <admail@...>
To: <pandorabots-general@...>
Sent: Tuesday, August 19, 2008 2:56 PM
Subject: [pandorabots-general] Noobie questions


> Sorry but this is giving me a headache, Ive been playing with it for a day
> now and I'm getting some good output, but I have a couple of code
> questions.
> I had a quick rake through the archives but nothing came up so I hope you
> dont mind me asking basic stuff here.
>
> I am starting with an empty list.
>
> 1) If there is no answer in the aiml I want the bot to say nothing and
> give
> no response but I keep getting blank lines coming up when random things
> are
> entered that I have no pattern for yet. I tried
>
> <category>
> <pattern>*</pattern>
>  <template/>
> </category>
>
> with no joy. Can this be done?
>
>
> 2) How do I stop it writing the full stop at the end of every line?
>
>
> 3a)
>
> <category>
> <pattern>HOW ARE YOU</pattern>
> <template>
>  <random>
>  <li>great</li>
>  <li>fine</li>
>  <li>could be worse</li>
>  <li>good thanks</li>
>  </random>
> </template>
> </category>
>
> <category>
>  <pattern>* HOW ARE YOU</pattern>
>  <template>
>    <srai>HOW ARE YOU</srai>
>  </template>
> </category>
>
> <category>
>  <pattern>HOW ARE YOU *</pattern>
>  <template>
>    <srai>HOW ARE YOU</srai>
>  </template>
> </category>
>
> <category>
>  <pattern>* HOW ARE YOU *</pattern>
>  <template>
>    <srai>HOW ARE YOU</srai>
>  </template>
> </category>
>
>
> Do I have to have all 3 srai codeblocks to cover all eventualities of
> things
> like
>
> hi how are you?
> how are you today?
> hi how are you today?
>
> Or is there a simpler way to do this?
>
>
>
>
> 4) From above
>
> _ HOW ARE YOU
>
> seems to work just as well as
>
> * HOW ARE YOU
>
> Any real difference there?
>
>
>
> Thanks a lot for any help, im sure i'll have another 10 questions soon,
> but
> those are the ones in my mind right now.
>
>
> A
>
> _______________________________________________
> This is the pandorabots-general mailing list
> To Post, reply to pandorabots-general@...
> Unsubscribe and change preferences at
> http://list.pandorabots.com/mailman/listinfo/pandorabots-general
> Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
> Learn to read at http://www.literacy.org/ 

_______________________________________________
This is the pandorabots-general mailing list
To Post, reply to pandorabots-general@...
Unsubscribe and change preferences at http://list.pandorabots.com/mailman/listinfo/pandorabots-general
Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
Learn to read at http://www.literacy.org/

Re: Noobie questions

by Flemming Kudsk Jørgensen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hell one of the best tutorials in AIML,I read
I think are the one that comes with this AIML editor :

GaitoBot AIML Editor..

Try to download it (you can find it in google).
The software is free on beta licence.It gave me a lot of answers on
how to use AIML.
And the Editor is one of the best AIML editors availebel.



2008/8/25 Ad <admail@...>:

> Come on guys we all had to start somewhere? If they are not worthy of
> answers by the obviously more informed people here could someone point me to
> somewhere that I can ask basic questions please?
>
> Thank you
>
> Ad
>
> ----- Original Message -----
> From: "Ad" <admail@...>
> To: <pandorabots-general@...>
> Sent: Tuesday, August 19, 2008 2:56 PM
> Subject: [pandorabots-general] Noobie questions
>
>
>> Sorry but this is giving me a headache, Ive been playing with it for a day
>> now and I'm getting some good output, but I have a couple of code
>> questions.
>> I had a quick rake through the archives but nothing came up so I hope you
>> dont mind me asking basic stuff here.
>>
>> I am starting with an empty list.
>>
>> 1) If there is no answer in the aiml I want the bot to say nothing and
>> give
>> no response but I keep getting blank lines coming up when random things
>> are
>> entered that I have no pattern for yet. I tried
>>
>> <category>
>> <pattern>*</pattern>
>>  <template/>
>> </category>
>>
>> with no joy. Can this be done?
>>
>>
>> 2) How do I stop it writing the full stop at the end of every line?
>>
>>
>> 3a)
>>
>> <category>
>> <pattern>HOW ARE YOU</pattern>
>> <template>
>>  <random>
>>  <li>great</li>
>>  <li>fine</li>
>>  <li>could be worse</li>
>>  <li>good thanks</li>
>>  </random>
>> </template>
>> </category>
>>
>> <category>
>>  <pattern>* HOW ARE YOU</pattern>
>>  <template>
>>    <srai>HOW ARE YOU</srai>
>>  </template>
>> </category>
>>
>> <category>
>>  <pattern>HOW ARE YOU *</pattern>
>>  <template>
>>    <srai>HOW ARE YOU</srai>
>>  </template>
>> </category>
>>
>> <category>
>>  <pattern>* HOW ARE YOU *</pattern>
>>  <template>
>>    <srai>HOW ARE YOU</srai>
>>  </template>
>> </category>
>>
>>
>> Do I have to have all 3 srai codeblocks to cover all eventualities of
>> things
>> like
>>
>> hi how are you?
>> how are you today?
>> hi how are you today?
>>
>> Or is there a simpler way to do this?
>>
>>
>>
>>
>> 4) From above
>>
>> _ HOW ARE YOU
>>
>> seems to work just as well as
>>
>> * HOW ARE YOU
>>
>> Any real difference there?
>>
>>
>>
>> Thanks a lot for any help, im sure i'll have another 10 questions soon,
>> but
>> those are the ones in my mind right now.
>>
>>
>> A
>>
>> _______________________________________________
>> This is the pandorabots-general mailing list
>> To Post, reply to pandorabots-general@...
>> Unsubscribe and change preferences at
>> http://list.pandorabots.com/mailman/listinfo/pandorabots-general
>> Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
>> Learn to read at http://www.literacy.org/
>
> _______________________________________________
> This is the pandorabots-general mailing list
> To Post, reply to pandorabots-general@...
> Unsubscribe and change preferences at http://list.pandorabots.com/mailman/listinfo/pandorabots-general
> Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
> Learn to read at http://www.literacy.org/
>
_______________________________________________
This is the pandorabots-general mailing list
To Post, reply to pandorabots-general@...
Unsubscribe and change preferences at http://list.pandorabots.com/mailman/listinfo/pandorabots-general
Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
Learn to read at http://www.literacy.org/

Parent Message unknown Re: Noobie questions

by Square Bear :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

1) The * matches anything you haven't coded for so if you say random things
that have no match you will get that response.
2) You don't. It's a pain with pandorabots that it assumes you want a full
stop at the end of each comment when in many cases you do not.
3) Yes you need to srai every match unless you have a keyword in which case
you could do something like _ KEYWORD _ which will give the same response as
long as KEYWORD is mentioned.
4) _ overwrites anything even a direct match. * is used when nothing
matches. Here is an example:

Human: Hi robot, how are you.

This will call any pattern that has _ HOW ARE YOU, even if you have a
pattern HI ROBOT HOW ARE YOU. Now assume you have a category HI * and * HOW
ARE YOU . In this case, the HI * will be matched as the input starts with HI
but if the user said YO HOW ARE YOU then * HOW ARE YOU is called as no
pattern matches YO *.

Hope that makes sense.
- Steve Worswick
http://www.mitsuku.com


> Date: Mon, 25 Aug 2008 15:25:26 +0100
> From: "Ad" <admail@...>
> Subject: Re: [pandorabots-general] Noobie questions
> To: <pandorabots-general@...>
> Message-ID: <006c01c906be$6c4df110$86df1052@hotbox>
> Content-Type: text/plain; format=flowed; charset="iso-8859-1";
> reply-type=original
>
> Come on guys we all had to start somewhere? If they are not worthy of
> answers by the obviously more informed people here could someone point me
> to
> somewhere that I can ask basic questions please?
>
> Thank you
>
> Ad
>
> ----- Original Message -----
> From: "Ad" <admail@...>
> To: <pandorabots-general@...>
> Sent: Tuesday, August 19, 2008 2:56 PM
> Subject: [pandorabots-general] Noobie questions
>
>
>> Sorry but this is giving me a headache, Ive been playing with it for a
>> day
>> now and I'm getting some good output, but I have a couple of code
>> questions.
>> I had a quick rake through the archives but nothing came up so I hope you
>> dont mind me asking basic stuff here.
>>
>> I am starting with an empty list.
>>
>> 1) If there is no answer in the aiml I want the bot to say nothing and
>> give
>> no response but I keep getting blank lines coming up when random things
>> are
>> entered that I have no pattern for yet. I tried
>>
>> <category>
>> <pattern>*</pattern>
>>  <template/>
>> </category>
>>
>> with no joy. Can this be done?
>>
>>
>> 2) How do I stop it writing the full stop at the end of every line?
>>
>>
>> 3a)
>>
>> <category>
>> <pattern>HOW ARE YOU</pattern>
>> <template>
>>  <random>
>>  <li>great</li>
>>  <li>fine</li>
>>  <li>could be worse</li>
>>  <li>good thanks</li>
>>  </random>
>> </template>
>> </category>
>>
>> <category>
>>  <pattern>* HOW ARE YOU</pattern>
>>  <template>
>>    <srai>HOW ARE YOU</srai>
>>  </template>
>> </category>
>>
>> <category>
>>  <pattern>HOW ARE YOU *</pattern>
>>  <template>
>>    <srai>HOW ARE YOU</srai>
>>  </template>
>> </category>
>>
>> <category>
>>  <pattern>* HOW ARE YOU *</pattern>
>>  <template>
>>    <srai>HOW ARE YOU</srai>
>>  </template>
>> </category>
>>
>>
>> Do I have to have all 3 srai codeblocks to cover all eventualities of
>> things
>> like
>>
>> hi how are you?
>> how are you today?
>> hi how are you today?
>>
>> Or is there a simpler way to do this?
>>
>>
>>
>>
>> 4) From above
>>
>> _ HOW ARE YOU
>>
>> seems to work just as well as
>>
>> * HOW ARE YOU
>>
>> Any real difference there?
>>
>>
>>
>> Thanks a lot for any help, im sure i'll have another 10 questions soon,
>> but
>> those are the ones in my mind right now.
>>
>>
>> A
>>

_______________________________________________
This is the pandorabots-general mailing list
To Post, reply to pandorabots-general@...
Unsubscribe and change preferences at http://list.pandorabots.com/mailman/listinfo/pandorabots-general
Learn netiquette at http://www.dtcc.edu/cs/rfc1855.html
Learn to read at http://www.literacy.org/