જોડાવા બોટ કાવ્ય ઓપન સોર્સ પ્રોજેક્ટ પર BotLibre.org
Self, AIML, and scripting

Using the "that" element

દ્વારા ritzpreet પોસ્ટ Jul 26 2018, 11:27

Hey all! I'm new to AIML and just creating bots in general. Working on one for my masters thesis. I tried googling and while the answer may be out there, I think I just don't really know what to search for because I couldn't find anything? Anyway, my question is:

When using <that> </that>, if my "that" sentence has some other element, do I remove the punctuation? For example:-

Which is correct?

<category>
<pattern>NO</pattern>
<that>DO YOU WANT TO DIE <get name="name" /></that>
<template>Okay, then let's talk this out.</template>
</category>

OR 

<category>
<pattern>NO</pattern>
<that>DO YOU WANT TO DIE GET NAME NAME</that>
<template>Okay, then let's talk this out.</template>
</category>

OR

<category>
<pattern>NO</pattern>
<that>DO YOU WANT TO DIE GET NAMENAME</that>
<template>Okay, then let's talk this out.</template>
</category>

Thanks in advance!! Sorry for the morbid example, I'm creating some kinda game so that was the easiest I could think of right now :) 

 


by admin posted Jul 26 2018, 13:24

The <that> tag in AIML can also be a pattern, in this case you would need to use a pattern if the previous response was a template.

<category>
<pattern>NO</pattern>
<that>DO YOU WANT TO DIE *</that>
<template>Okay, then let's talk this out.</template>
</category>

You can also use a response list for this instead, which lets you use "next", which is a better way to define a follow-up response.

https://www.botlibre.com/forum-post?id=21832117


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 2895, today: 3, week: 6, month: 15

ને: 22964480
ટૅગ્સ: aiml, chat, scripting
પોસ્ટ: Jul 26 2018, 11:27
સુધારાશે: Jul 26 2018, 13:21
જવાબો: 1
જોવાઈ: 3130, આજે: 2, સપ્તાહ: 6, મહિને: 14
1 0 5.0/5