私は最近、Pythonでaimlを取り上げ、最も単純なプログラムを試しましたが、それでも問題が発生するようで、その理由がわかりません。
Python スクリプトは次のとおりです。
import aiml
kernel = aiml.Kernel()
kernel.learn("std-startup.xml")
kernel.respond("load aiml b")
while True:
print (kernel.respond(raw_input("Enter your message >> ")))
std-startup.xml の内容は次のとおりです。
<category>
<pattern>
LOAD AIML B
</pattern>
<template>
<learn>basic-chat.aiml</learn>
</template>
</category>
これが basic-chat.aiml の内容です。
<category>
<pattern>HELLO</pattern>
<template>
Well, hello!
</template>
</category>
<category>
<pattern>WHAT ARE YOU</pattern>
<template>
I'm a bot, silly!
</template>
</category>
そして、このエラーが表示されます WARNING: No match found for input: load aml b.
以前に何人かの人々がそれらに対処しているのを見たことがあり、彼らの解決策を試しましたが、何もうまくいかないようです. あなたが提供しなければならない知恵を前もって感謝します