Hi all,
I am having a problem regarding creating AIML categories in the knowledge base.
Actually my project knowledge base has a restricted domain where it is to answer user queries regarding university course details (acts as a virtual counselor).
So my problem is, say I have an atomic category as follows:
<category>
<pattern>WHAT ARE THE ADMISSION REQUIREMENTS FOR WEB DEVELOPMENT COURSE</pattern>
<template>The qualifications required for admission are 2 Passes at GCE (Advanced Level) Examination and 5 Passes inclusive of 2
Credit Passes for English and Mathematics at GCE (Ordinary Level) Examination.
(Please contact Student Admissions Office for details.)</template>
</category>
And what I do is I am writing other possible ways of asking the same question and direct the answer to this atomic category.I write them identifying certain keywords that can be in a particular user question, which will result in giving the same answer; inserting ‘*’ wildcard in between.Some of the categories can be shown as follows:
<category>
<pattern>* ADMISSION REQUIREMENTS * WEB DEVELOPMENT *</pattern>
<template><srai>WHAT ARE THE ADMISSION REQUIREMENTS FOR WEB DEVELOPMENT COURSE</srai></template>
</category>
<category>
<pattern>* ADMISSION REQUIREMENTS * WEB DEVELOPMENT</pattern>
<template><srai>WHAT ARE THE ADMISSION REQUIREMENTS FOR WEB DEVELOPMENT COURSE</srai></template>
</category>
<category>
<pattern>* WEB DEVELOPMENT ADMISSION REQUIREMENTS</pattern>
<template><srai>WHAT ARE THE ADMISSION REQUIREMENTS FOR WEB DEVELOPMENT COURSE</srai></template>
</category>
<category>
<pattern>* WEB DEVELOPMENT * ADMISSION REQUIREMENTS</pattern>
<template><srai>WHAT ARE THE ADMISSION REQUIREMENTS FOR WEB DEVELOPMENT COURSE</srai></template>
</category>
But the same question can be asked using other key words also.Then I have to replace may be for an example replacing the ADMISSION REQUIREMENTS to ENTRY REQUIREMENTS.Therefore then there will be four more categories like that and I will have to write like this for all possible keywords inputs.
QUESTIONS:
———————-
*Is there a way that I can make the knowledge base concise by writing a category like
“if the user type these two key words anywhere in a user input, give this answer” which will allow in the above example the possible 4 categories in to one simple category???
* And also something like “if the keyword ADMISSION REQUIREMENTS found with WEB DEVELOPMENT then this answer else if with COMPUTING this answer and etc “. What I want to ask simply is combination of list of patterns in a one category??
*I did not find any particular tags or anything to use for that purpose. Is there any special ways of doing it?? Or the AIML simply does not provid that facility where we will have to write all the patterns as it is??
*Anyone came across with this problem when developing a knowledge base with a restricted domain where simply had to write all the knowledge base files from the scratch??
*Any particular software or an API available to write the categories in to AIML files to solve this particular problem??
I know the question is too long and too many questions I am asking sorry for that but if anyone has any ideas or solutions please le me know.
Thank you very much all….:)