Key AIML Answers?

What do you think are important templates / temples for programming. Like in a chat, why does EVERY chatbot need an answer? I'm just starting to make aiml file and need some help ...

Here is the file.

<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>

+3
source share
3 answers

Well, I would really like to visit these two sites:

http://aitools.org/Free_AIML_sets (dead link)

and

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

They have many .aiml files with TONS categories that are sure to add knowledge to your bot.

ALSO on the first line:

<pattern>Hey</pattern>. 

This is not true. Remember that the template is always in CAPS! So do this:

<pattern>HEY</pattern>

This also has NO punctuation in AIML patterns.

+2
source

, / , . , .

<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>
+2

www.alicebot.org Superbot 10 . , , , .

, :

  • (/)
  • ( ?)
  • ( ?)
  • ( ?)
  • / ( ?)
  • ( ?)

, , , , ,

  • ?
  • ?
  • ?
  • ?
  • , ?
  • ..

, , .

<pattern>WHEN WERE YOUR BORN *</pattern>
+1
source

Source: https://habr.com/ru/post/1749312/


All Articles