-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlearn.aiml
35 lines (31 loc) · 1019 Bytes
/
learn.aiml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="UTF-8"?>
<aiml version="2.0">
<!-- Using conversational variables (i.e., SET and GET) -->
<category>
<pattern>MY NAME IS *</pattern>
<template>
<think><set name="name"><star /></set></think>
I will remember that.
</template>
</category>
<category>
<pattern>WHAT IS MY NAME</pattern>
<template>
Your name is <get name="name" />.
</template>
</category>
<!-- Learning new categories with LEARN -->
<category>
<pattern>* IS *</pattern>
<template>
<think>
<learn>
<category>
<pattern>WHAT IS <eval><star index="1" /></eval></pattern>
<template><eval><star index="1" /></eval> is <eval><star index="2" /></eval>, as you told me.</template>
</category>
</learn>
</think>
</template>
</category>
</aiml>