gpt4 book ai didi

xml - 如何让 标签在 AIML 中处理这个问题?

转载 作者:行者123 更新时间:2023-12-02 02:41:38 27 4
gpt4 key购买 nike

对于一个项目,我提出了相同的问题,但由于上下文的不同需要不同的答案。下面的代码不起作用,我无法理解原因。我认为它指的是我的另一个问题,因为它具有相同的模式,但我认为标签会首先查看下面的两个模式。

<category>
<pattern>WHAT IS *</pattern>
<template>
<think>
<set name = "topic">
state<star />
</set>
</think>
<condition name = "topic" value = "beauty">A subjective judgment evoked by an emotional response</condition>
<condition name = "topic" value = "Bristol">Bristol is a city.</condition>
<condition name = "topic" value = "London">London is a city.</condition>
<condition name = "topic" value = "UWE">I do not have an answer for that</condition>
</template>
</category>
<topic name = "state">
<category>
<pattern># WHERE IS IT #</pattern>
<that>Bristol is a city.</that>
<template>In the South-West of England</template>
</category>
<category>
<pattern># WHERE IS IT #</pattern>
<that>London is a city.</that>
<template>Somewhere east of Bristol</template>
</category>
</topic>

最佳答案

删除句号。 标签中不应使用标点符号。您不需要为此使用主题。

<that>Bristol is a city</that>

实际上,您可以在不使用像这样的主题标签的情况下更清晰地完成此操作:

<category>
<pattern>WHAT IS *</pattern>
<template>
<think><set name="it"><star/></set></think>
<condition name="it">
<li value="beauty">A subjective judgment evoked by an emotional response.</li>
<li value="Bristol">Bristol is a city.</li>
<li value="London">London is a city.</li>
<li value="UWE">I do not have an answer for that</li>
<li>I have no idea.</li>
</condition>
</template>
</category>

<category>
<pattern># WHERE IS IT #</pattern>
<template>
<condition name="it">
<li value="beauty">In someone attractive.</li>
<li value="Bristol">In the South-West of England.</li>
<li value="London">Somewhere east of Bristol.</li>
<li value="UWE">I do not have an answer for that</li>
<li>Where is what?</li>
</condition>
</template>
</category>

关于xml - 如何让 <topic> 标签在 AIML 中处理这个问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59120226/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com