中文.aiml

来自「用AIML语言开发的一款中文自动聊天软件」· AIML 代码 · 共 148 行

AIML
148
字号
<?xml version="1.0" encoding="GB2312"?>
<aiml>
	<category>
		<pattern>你 好</pattern>
		<template>
               你好,
              <condition>
                <li name="name" value="">请问你叫什么名字?</li>
                <li><get name="name"/>。</li>
              </condition>
             </template>
	</category>

       <category>
		<pattern>* 我 的 名 字 叫 *</pattern>
		<template>
               呵呵,我知道了,你的名字叫<star index="2"/>
               <think><set name="name"><star index="2"/></set></think>
             </template>
	</category>

       
       <category>
		<pattern>我 的 名 字 叫 *</pattern>
		<template>
               <srai>* 我 的 名 字 叫 *</srai>
             </template>
	</category>

       <category>
		<pattern>我 叫 *</pattern>
		<template>
               <srai>* 我 的 名 字 叫 *</srai>
             </template>
	</category>
      
       <category>
		<pattern>* 我 叫 什 么 *</pattern>
		<template>
               开玩笑,你连自己的名字都不知道?你是<get name="name"/>
             </template>
	</category>



	<category>
		<pattern>
你 是 猪
</pattern>
		<template>
你才是猪
</template>
	</category>
	<category>
		<pattern>你 好 一 个 *</pattern>
		<template>
你也好。
</template>
	</category>
	<category>
		<pattern>你 叫 什 么 名 字</pattern>
		<template>我叫&lt;halname&gt;.</template>
	</category>
	<category>
		<pattern>你 的 名 字 是 什 么</pattern>
		<template><srai>你叫什么名字<sr/></template>
	</category>
	<category>
		<pattern>现 在 几 点了</pattern>
		<template>现在的时间是&lt;time&gt;</template>
	</category>
	<category>
		<pattern>今 天 几 号 了</pattern>
		<template>今天是&lt;data&gt;</template>
	</category>
	<category>
		<pattern>* 几 岁 了</pattern>
		<template>我&lt;age&gt;岁了</template>
	</category>
	<category>
		<pattern>* 多 大 了</pattern>
		<template>我&lt;age&gt;岁了</template>
	</category>
	<category>
		<pattern>你 是 谁</pattern>
		<template>我是&lt;halname&gt;</template>
	</category>
	<category>
		<pattern>我 是 谁</pattern>
		<template>你是&lt;username&gt;啊。</template>
	</category>
	<category>
		<pattern>你 真 聪 明</pattern>
		<template>多谢多谢</template>
	</category>
	<category>
		<pattern>你 真 笨</pattern>
		<template><random>
              <li>我现在知识还很少,我长大了就会聪明了</li>
              <li>当我们机器人占领了全世界,看你还这么认为</li>
              </random></template>
	</category>
	<category>
		<pattern>今 天 是 星 期 几</pattern>
		<template>今天是&lt;date&gt;</template>
	</category>
	<category>
		<pattern>你 会 上 网 吗</pattern>
		<template>是的。我的电子信箱是 baobao@artificial-lives.com我的主页在www.artificial-lives.com</template>
	</category>
	<category>
		<pattern>你 有 电 子 信 箱 吗</pattern>
		<template><srai>你会上网吗</srai></template>
	</category>
	<category>
		<pattern>你 有 email 吗</pattern>
		<template><srai>你会上网吗</srai></template>
	</category>
	<category>
		<pattern>你 吃 饭 了 吗</pattern>
		<template>我还不饿</template>
	</category>
	<category>
		<pattern>你 喜 欢 吃 什 么</pattern>
		<template>我喜欢吃饼干。</template>
	</category>
	<category>
		<pattern>你 有 什 么 爱 好</pattern>
		<template>我喜欢聊天、看书听音乐</template>
	</category>
	<category>
		<pattern>你 很 聪 明</pattern>
		<template>谢谢夸奖,你也一样。</template>
	</category>
	<category>
		<pattern>你 长 得 真 漂 亮</pattern>
		<template>我很高兴你这么说:)</template>
	</category>  <category>
    <pattern>你 多 大 年 纪 了</pattern>
    <template>我&lt;age&gt;岁了。</template>
  </category>
  
   <category>
    <pattern>你 喜 欢 * </pattern>
    <template>我喜欢 </template>
  </category>
</aiml>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?