質問

なっているものは何だと思われま重要なパターン/寺。のようにchatbotうな毎chatbot必要に応答す。Imかのaimlファイルの必要手伝---

ニのファイルです。

<aiml>

<category>
    <pattern>Hey</pattern>
    <template>Whats up?</template>
<category>

<category>
    <pattern>WHAT ARE YOU?</pattern>
    <template>I am a chatbot.</template>
<category>

<category>
    <pattern>DO YOU LIKE*</pattern>
    <template>Yes, I love <star/></template>
<category>

<category>
    <pattern>WHAT IS*</pattern>
    <template><star/>? is that what humans call what I did to your mom last night?</template>
<category>

<category>
    <pattern>WHEN WERE YOUR BORN*</pattern>
    <template>I was created in 2010.</template>
<category>

役に立ちましたか?

解決

まあ、私はこれらの2つのウェブサイトを訪問しsugestなります:

http://aitools.org/Free_AIML_setsする (デッドリンク)

http://www.alicebot.org/aiml/aaa/する

彼らは間違いなくあなたのボットに知識を追加するカテゴリのトンと多くの.aimlファイルを持っています。

また、あなたの最初の行に:

<pattern>Hey</pattern>. 

これは正しくありません。パターンは大文字で常にあることを覚えておいてください!だから、次の操作を行います。

<pattern>HEY</pattern>

このもあるAIMLパターンにおけるNOの句読点があります。

他のヒント

あなたは簡略化したり、別のカテゴリにリダイレクトすることができる音声の基本的な/一般的なパターンを含めることができます。ここではいくつかの例があり、そのハンドル定義検索ます。

<category>
    <pattern>WHAT IS *</pattern>
    <template>
        <sr/>
    </template>
</category>
<category>
    <pattern>DEFINE *</pattern>
    <template>
        <sr/>
    </template>
</category>
<category>
    <pattern>WHAT IS A *</pattern>
    <template>
        <sr/>
    </template>
</category>
<category>
    <pattern>DEFINE A *</pattern>
    <template>
        <sr/>
    </template>
</category>
<category>
    <pattern>WHAT IS THE *</pattern>
    <template>
        <sr/>
    </template>
</category>
<category>
    <pattern>DEFINE A *</pattern>
    <template>
        <sr/>
    </template>
</category>
<category>
    <pattern>WHAT IS THE MEANING OF *</pattern>
    <template>
        <sr/>
    </template>
</category>
<category>
    <pattern>DEFINE THE MEANING OF *</pattern>
    <template>
        <sr/>
    </template>
</category>
<category>
    <pattern>WHAT IS THE DEFINITION OF *</pattern>
    <template>
        <sr/>
    </template>
</category>
<category>
    <pattern>DEFINE THE DEFINITION OF *</pattern>
    <template>
        <sr/>
    </template>
</category>
あなたの質問に多くの関連するコードのより便利なAIMLラインはこれらのようになります:

<category>
    <pattern>HI *</pattern>
    <template>
        <srai>HI</srai>
    </template>
</category>
<category>
    <pattern>HELLO *</pattern>
    <template>
        <srai>HI</srai>
    </template>
</category>
<category>
    <pattern>ALOHA *</pattern>
    <template>
        <srai>HI</srai>
    </template>
</category>
<category>
    <pattern>HEY *</pattern>
    <template>
        <srai>HI</srai>
    </template>
</category>

www.alicebot.org を提供 Superbot 載したaimlファイルの最上10,000ます。しかし、これに費用がかかりすぎるというの飛.

自分の経験は、絶対に必要となる対応のためのパターンに関する:

  • ご挨拶(こんにちは/こんにちは)
  • 名前(あなたは、どちらでしょうか?)
  • 年齢の方が見つからないか、誤りがあるのか?)
  • お誕生日時がわせていただきます。)
  • ジェンダー/種(何だ君か?どっちのニッパー)
  • もついていかがですか?)

の場合、ゼロからの問題発生きものを考えてみましょうすべての異なる方法でユーザーもしくお願いい、例えば、ボットの名前

  • で運営されています。
  • あけましておめでとうございます。
  • いいですか?
  • やらしさなのでしょうか?
  • 私の名前はジムだ。
  • などなど

できるものは、ジャンムー-カシミールワイルドカードのパターンは分離して考えた方がいいと思うからそのようにパーサで送迎して異なる言葉の入力文字列です。

<pattern>WHEN WERE YOUR BORN *</pattern>
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top