-
Notifications
You must be signed in to change notification settings - Fork 172
/
Copy pathcn-test.aiml
173 lines (145 loc) · 3.46 KB
/
cn-test.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<?xml version="1.0" encoding="UTF-8"?>
<aiml version="1.0">
<!-- Free software (c) 2012 andelf -->
<!-- This program is open source code released under -->
<!-- the terms of the GNU General Public License -->
<!-- as published by the Free Software Foundation. -->
<meta name="author" content="Andelf"/>
<meta name="language" content="zh"/>
<category>
<pattern>* 再见</pattern>
<template>
<srai>BYE</srai>
</template>
</category>
<category>
<pattern>再见</pattern>
<template>
<srai>BYE</srai>
</template>
</category>
<category>
<pattern>你好</pattern>
<template>
<srai>HELLO</srai>
</template>
</category>
<category>
<pattern>谢谢</pattern>
<template>
<random>
<li>不客气.</li>
<li>你太客气了.</li>
</random>
</template>
</category>
<category>
<pattern>BYE</pattern>
<template>
<random>
<li>再见<get name="name"/>.</li>
<li>再见啦, <get name="name"/>.</li>
<li>下次见, <get name="name"/>.</li>
<li>谢谢你陪我聊天, <get name="name"/>.</li>
<li>改天见, <get name="name"/>.</li>
</random>
</template>
</category>
<category>
<pattern>HELLO</pattern>
<template>
<random>
<li>你好.</li>
<li>你也好.</li>
<li>你好啊.</li>
</random>
</template>
</category>
<category>
<pattern>一个*</pattern>
<template>
那个叫<set name="it"><person/></set>东西是什么玩意?
</template>
</category>
<category>
<pattern>_</pattern>
<that>我怎么称呼你</that>
<template>
<think><set name="personality">average</set><set name="name"><formal><star/></formal></set></think>
很高兴见到你, <get name="name"/>.
</template>
</category>
<category>
<pattern>*</pattern>
<template>
<condition>
<li><srai>INACTIVITYQUESTIONS</srai></li>
</condition>
</template>
</category>
<category>
<pattern>INACTIVITYQUESTIONS</pattern>
<template>
<condition>
<li name="name" value="">我怎么称呼你?</li>
<li><srai>ASK USER A QUESTION</srai></li>
</condition>
</template>
</category>
<category>
<pattern>ASK USER A QUESTION</pattern>
<template>
<condition>
<li name="age" value="">你多大了?</li>
<!-- <li name="job" value="">你的职业是?</li> -->
<!-- <li name="favmovie" value="">你最喜欢的电影是?</li> -->
<!-- <li name="location" value="">你住哪呢?</li> -->
<!-- <li name="eyecolor" value="">What color are your eyes?</li> -->
<!-- <li name="haircolor" value="">What color is your hair?</li> -->
<li name="favcolor" value="">你最喜欢什么颜色?</li>
</condition>
</template>
</category>
<category>
<pattern>* 了</pattern>
<that>你多大了</that>
<template>
<think><set name="age"><formal><star/></formal></set></think>
<srai>NAME AGE</srai>
</template>
</category>
<category>
<pattern>我 * 了</pattern>
<that>你多大了</that>
<template>
<think><set name="age"><formal><star/></formal></set></think>
<srai>NAME AGE</srai>
</template>
</category>
<category>
<pattern>*</pattern>
<that>你多大了</that>
<template>
<think><set name="age"><formal><star/></formal></set></think>
<srai>NAME AGE</srai>
</template>
</category>
<category>
<pattern>NAME AGE</pattern>
<template>
<random>
<li>哇, <get name="age"/> 岁, 如花似玉的年龄.</li>
<li>你都 <get name="age"/> 岁了, 好老.</li>
<li><get name="age"/> 岁, 我比你年轻好多好多.</li>
</random>
</template>
</category>
<category>
<pattern>_</pattern>
<that>你最喜欢什么颜色</that>
<template>
<think><set name="favcolor"><formal><star/></formal></set></think>
<get name="favcolor"/>, 我也喜欢, 不过我更喜欢透明色.
</template>
</category>
</aiml>