|
Posted: Jun 8, 2012 |
[ # 61 ]
|
|
Administrator
Total posts: 2048
Joined: Jun 25, 2010
|
How about srai-ing every wildcard to an atomic?
<category> <pattern>RED *</pattern> <template> <srai>red</srai> </template> </category>
<category> <pattern>_ RED</pattern> <template> <srai>red</srai> </template> </category>
<category> <pattern>_ RED *</pattern> <template> <srai>red</srai> </template> </category>
<category> <pattern>RED</pattern> <that>WHAT COLOUR IS A TOMATO</that> <template> Correct! </template> </category>
<category> <pattern>*</pattern> <that>WHAT COLOUR IS A TOMATO</that> <template> That is incorrect. Please try again. </template> </category>
Then you don’t need the wildcards in the value tags. Bear in mind that checking for single keywords like this leaves it open to all sorts of abuse:
Bot: What colour is a tomato?
Human: It is blue stripes with a green wavy pattern and a tiny red dot near the bottom.
Bot: Correct!
Bot: What colour is a tomato?
Human: Tomatoes are a reddish colour.
Bot: That is incorrect. Please try again.
|
|
|
|
|
Posted: Jun 8, 2012 |
[ # 62 ]
|
|
Administrator
Total posts: 3111
Joined: Jun 14, 2010
|
I think that now we’re getting into the realm of needing to work with topics, Steve. I’m fairly certain that there is going to be more AIML code than what we’re seeing here, and too much generalization outside the realm of a topic will create some unexpected results elsewhere. Perhaps if we divided up each question into it’s own topic, this effort may become more successful. Sure, that’s a LOT more AIML code, but in this case it may well be worth the extra work.
|
|
|
|
|
Posted: Jun 8, 2012 |
[ # 63 ]
|
|
Administrator
Total posts: 2048
Joined: Jun 25, 2010
|
Oh I agree 100% Dave and for a starting project with AIML, I strongly feel that this is a very difficult task for the guys.
|
|
|
|
|
Posted: Jun 8, 2012 |
[ # 64 ]
|
|
Administrator
Total posts: 3111
Joined: Jun 14, 2010
|
No question there, and while I’m more than happy to help, I also don’t want to get into the position of “doing someone else’s homework”, so I’m going to work less with full scale examples, and more with detailed explanations. Sometimes being “too nice” isn’t very nice at all, in the long run.
|
|
|
|
|
Posted: Jun 8, 2012 |
[ # 65 ]
|
|
Member
Total posts: 15
Joined: Jun 1, 2012
|
Thanks Sir,,Before looking into this page…I have just implemented the same procedure….
and I also wanted to ask the very same question of acceptance of absurd answers,...
I had seen the topic tag once and wondered what is the need of using it but I now I am going to implement it and will let you know..
As it is said,“A good teacher is one who do not tells everything to his/her students”...Thankyou Dave Sir, for giving examples ....From them I can understand where I am making mistakes and How to deal the task correctly….
Thankyou Sir Steve for your code snippets….They helped me alot too
and both of you for your timely replies…..
|
|
|
|
|
Posted: Jun 24, 2012 |
[ # 66 ]
|
|
Member
Total posts: 1
Joined: Jun 1, 2012
|
Hello everyone. im also with jaweria and wardah in this project, im trying to make attractive interface for our chatbot, so what can i do?? i know that the changes will be done in index.php,but it will also support html, so i want to make an attractive interface
|
|
|
|
|
Posted: Jun 24, 2012 |
[ # 67 ]
|
|
Administrator
Total posts: 3111
Joined: Jun 14, 2010
|
Hello, Taha, and welcome to chatbots.org!
If I recall correctly, your team is using Program O, version 2(?). If so, all you need to do is replace the HTML code at the bottom of the file index.php with your own HTML markup; but make sure to look over the original HTML, to learn where the chatbot code is inserted, so that you can insert that same chatbot code into your HTML in the correct places. Also remember to keep all form elements the same with respect to element names and id’s. It’s really a simple process, as long as you heed my suggestions.
|
|
|
|
|
Posted: Jul 12, 2012 |
[ # 68 ]
|
|
Member
Total posts: 15
Joined: Jun 1, 2012
|
Hello…....
Do you know in which IDEs are used for creation of chatbot????
|
|
|
|
|
Posted: Jul 12, 2012 |
[ # 69 ]
|
|
Administrator
Total posts: 2048
Joined: Jun 25, 2010
|
What do you mean by IDEs?
|
|
|
|
|
Posted: Jul 13, 2012 |
[ # 70 ]
|
|
Senior member
Total posts: 494
Joined: Jan 27, 2011
|
IDE: Integrated development Environment… like Eclipse for Java, Eric for Python, etc.
I don’t know of any specifically for chatbots, AIMLpad would qualify I think, and maybe Jan’s system.
|
|
|
|
|
Posted: Jul 13, 2012 |
[ # 71 ]
|
|
Senior member
Total posts: 697
Joined: Aug 5, 2010
|
Yes, I have a full IDE with different editors and a debugger. It’s not for AIML or chatscript, but my own system (resonating neural nets). You don’t need the IDE, you can also do it all in a text-editor, but most stuff is easier to do in the IDE
@Steve: PS, notepad is also an IDE, but only for text
|
|
|
|
|
Posted: Jul 13, 2012 |
[ # 72 ]
|
|
Member
Total posts: 15
Joined: Jun 1, 2012
|
actually working with programO ,I have to edit some of its functions and when i try to do what i have implemented through javascript….I am not able to get the results…..
an IDE will may help me solve problems because when googling I donot get the same syntax used in programO…...
I have asked someone and they told me to use eclipse for php or notepad++...but i was not pretty sure about it due to a slight different syntax…..
such as I need to disable my submit button when there is no text in the textbox…..done this in javascript but not here…i have tried to edit response_handler ........but i donot achieve the result
|
|
|
|
|
Posted: Jul 13, 2012 |
[ # 73 ]
|
|
Administrator
Total posts: 2048
Joined: Jun 25, 2010
|
Dave Morton is your man for Program O. However, I believe he is currently on a motorbike touring California. I am sure he will take a look at your query on his return.
|
|
|
|
|
Posted: Aug 12, 2012 |
[ # 74 ]
|
|
Member
Total posts: 19
Joined: May 30, 2012
|
we are using version 1.0.4
|
|
|
|
|
Posted: Aug 12, 2012 |
[ # 75 ]
|
|
Administrator
Total posts: 3111
Joined: Jun 14, 2010
|
Ok, I stand corrected. I’ll have to look at my version 1.0 install, to remind myself how the script integrates with the page. 1 sec, please.
{time passes}
Ok, looking at the version 1 code, I see that the “integration process” is a bit more complex than version 2, but still doable. Here’s index.php:
<?PHP //----------------------------------------------------------------------------------------------- //Program-o Version 1.0.4 //PHP MYSQL AIML interpreter //Written by Elizabeth Perreau //Feb 2010 //for more information and support please visit www.program-o.com //----------------------------------------------------------------------------------------------- include_once("bot/chat.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html > <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>Program-O AIML Chat Bot</title> <style type="text/css"> <!-- body { margin-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; font-family:Verdana, Arial, Helvetica, sans-serif; font-size:12px; } .demouser{ color:blue; } .demobot{ color:green; } --> </style></head>
<body> <div> <p style=\"\"> <?php echo $res; echo "<br/>"; echo $formchat; ?></p> </div> <p> </p> </body> </html>
Note that there’s an include call, early on, to bot/chat.php - This is not only where the bot’s responses are created, but also where the ‘default’ chat form is created. There are several easy ways to create your own HTML page. Simply filling the variable $formchat with the content of the custom page is one option, but there are others that may work as well or better, so try to find the best method for your project.
|
|
|
|