aiml - 模式术语之间的通配符
答
是的。这样做:
<category>
<pattern>How much are overdue * on my books?</pattern>
<template><srai>YOUR <star/> IS</srai></template>
</category>
<category>
<pattern>YOUR FINE IS</pattern>
<template>Vote me up!</template>
</category
<category>
<pattern>YOUR STAMPS IS</pattern>
<template>20 pounds. Pay for this please.</template>
</category>
答
我没有足够的印象分对Bravax的答案回应,但通过解决所使用的句子的话题添加到解决方案。在Engrish中,通常会说:“我的书上有多少罚款?”; “罚款”是这里的明星,但'猫正在寻找'罚款',所以'猫不会看到它。
考虑将'猫的第二种模式从“罚款”改为“罚款”。剩下的那种流动。
但是,请记住,该模式必须是CAPS并且没有标点符号。 – objectiveccoder001 2010-07-11 12:09:01