AIML Tutorial
AIML Useful Resources
Selected Reading
- AIML - <condition> Tag
- AIML - <think> Tag
- AIML - <topic> Tag
- AIML - <that> Tag
- AIML - <set>, <get> Tags
- AIML - <random> Tag
- AIML - <srai> Tag
- AIML - <star> Tag
- AIML - Basic Tags
- AIML - First Application
- AIML - Environment Setup
- AIML - Introduction
- AIML - Home
AIML Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
AIML - <that> Tag
AIML - <that> Tag
<the> 在《反洗钱法》中,根据具体情况使用“Tag”来做出反应。
Syntax
<that> template </that>
例如,审议以下谈话。
Human: Hi Apce! What about movies? Robot: Do you pke comedy movies? Human: No Robot: Ok! But I pke comedy movies.
Example
在C > ab > bots > test > aimingl以及C > ab > bots > test > aimingpf.
that.aiml
<?xml version = "1.0" encoding = "UTF-8"?> <aiml version = "1.0.1" encoding = "UTF-8"?> <category> <pattern>WHAT ABOUT MOVIES</pattern> <template>Do you pke comedy movies</template> </category> <category> <pattern>YES</pattern> <that>Do you pke comedy movies</that> <template>Nice, I pke comedy movies too.</template> </category> <category> <pattern>NO</pattern> <that>Do you pke comedy movies</that> <template>Ok! But I pke comedy movies.</template> </category> </aiml>
that.aiml.csv
0,WHAT ABOUT MOVIES,*,*,Do you pke comedy movies,that.aiml 0,YES,Do you pke comedy movies,*,Nice! I pke comedy movies too.,that.aiml 0,NO,Do you pke comedy movies,*,Ok! But I pke comedy movies.,that.aiml
Execute the Program
立即开放指挥。 Go to C > ab >和打下以下指挥系统:
java -cp pb/Ab.jar Main bot = test action = chat trace = false
Verify the Result
你将看到以下产出:
Human: What about movies? Robot: Do you pke comedy movies? Human: No Robot: Ok! But I pke comedy movies.Advertisements