Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for documentation on Creating my own corpus #1041

Closed
pranavlal opened this issue Oct 26, 2017 · 5 comments
Closed

Request for documentation on Creating my own corpus #1041

pranavlal opened this issue Oct 26, 2017 · 5 comments
Labels

Comments

@pranavlal
Copy link

Hi all,
I want to use chatter bot in a FAQ situation. My users will pose questions to the bot and the bot will answer them. I have a list of questions and responses in AIML that are broken down by topics. Does chatter bot support topics? I see a category tag but I am not sure if this is the same thing as an AIML topic.
Is there any documentation that explains this in detail?

@vkosuri
Copy link
Collaborator

vkosuri commented Oct 27, 2017

@pranavlal Thank you showing interesting updating corpus. The information grabbed from http://www.alicebot.org/aiml.html

The most important units of AIML are:

<aiml>: the tag that begins and ends an AIML document
<category>: the tag that marks a "unit of knowledge" in an Alicebot's knowledge base
<pattern>: used to contain a simple pattern that matches what a user may say or type to an Alicebot
<template>: contains the response to a user input

The free A.L.I.C.E. AIML includes a knowledge base of approximately 41,000 categories. Here's an example of one of them:

<category>
    <pattern>WHAT ARE YOU</pattern>
    <template>
        <think><set name="topic">Me</set></think> 
        I am the latest result in artificial intelligence,
        which can reproduce the capabilities of the human brain
        with greater speed and accuracy.
    </template>
</category>

And the below response is very clear, AIML category and chatterbot tag both are same, but coming AIM topic and Chatterbot tag aren't same

In any case, if this category is called, it will produce the response "I am the latest result in artificial intelligence..." shown above. In addition, it will do something else interesting. Using the tag, which causes Alicebot to perform whatever it contains but hide the result from the user, the Alicebot engine will set the "topic" in its memory to "Me". This allows any categories elsewhere with an explicit "topic" value of "ME" to match better than categories with the same patterns that are not given an explicit topic. This illustrates one mechanism whereby a botmaster can exercise precise control over a conversational flow.

@pranavlal
Copy link
Author

Hi,
Thanks for your answer. I understand how topics are used in AIML. I am confused by the YAML syntax in chatter bot. There is a categories: heading that I see in the corpus files. What is that used for? Can I exercise flow control by using these categories?

@vkosuri
Copy link
Collaborator

vkosuri commented Oct 27, 2017

The best answer you could found here #924

@pranavlal
Copy link
Author

Understood thanks.

@lock
Copy link

lock bot commented Mar 10, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Mar 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants