Для проекта у меня один и тот же вопрос, но из-за контекста требуются разные ответы. Код ниже не работает, и у меня возникают проблемы с пониманием, почему. Я думаю, что это относится к моему другому вопросу, потому что он имеет тот же шаблон, однако я подумал, что тег сначала будет смотреть на два шаблона ниже.
<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>