vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   TalkerBot Add-on - Learning System (https://vborg.vbsupport.ru/showthread.php?t=60429)

DaveLogic 03-18-2004 02:52 AM

Quote:

Originally Posted by Geographic2
All info is pushed into the pattern and template tables.

I had success teaching it like this:

Loading this entry from the learning thread:

Thread Title: What are snausages?
Thread Body: Dog Treats.


Then asking the bot: What are snausages?
and it would return the correct answer.

I've also had success giving it Dictionary style entries where the
thread title is a single word and the body is the definition.


I'd also like to note that I have tried to teach it things that it failed to learn.
The reason for this failure is likely due to the bot being taken away to a different success result in it's DB. Sort of distracted by too many paths to take.

Hope you get it going ;)

I've checked my PATTENS table and all BOT entries seem to have a value of 1 for parent and 1 for isend.They don't follow sequence...Is this correct..If not could it be an error with the first thread / first post config???- It's the only thing I can think of...

bot id word ordera parent isend
0 287801 NULL 3 287800 1
0 287802 <topic> 2 287801 0
0 287803 NULL 3 287802 1
0 287804 2 287803 0
0 287805 MYWORD 2 1 1
0 287806 <that> 2 287805 0

rockergrrl 03-27-2004 05:59 PM

I can't seem to get this to work on my board.

Everything is loaded, and I'm pretty sure I got the IDs correct.

But the thing doesn't seem to want to run at all :/

Someone care to take a look at it for me?

PM, let me know.

Gracias!

Geographic2 03-27-2004 06:17 PM

What's happening/Not Happening...?

When you make posts and run botlearner do the posts get moved?

Do you get any output when using the external.php URL?

rockergrrl 03-27-2004 07:08 PM

Posts have been made, but the bot isn't responding.

When I run botlearner, I get:
Loading learnwhat.xml
Loading data aiml file: /forum/external.php?type=AIML
DONE LOADING
Inserted 0 categories into database

And when I run the external.php?type=AIML file, I get a blank page

Suggestions?

If you want, PM me your email address, and I can send you over whatever is needed if you want to look at it specifically.

Thanks for your help!

Geographic2 03-27-2004 07:50 PM

If you get a blank page in the external.php then there is nothing to be read when you go and run botlearner.

My first guess is that there must be something wrong with the threadids.
Look at the external.php changes and check the threadids.
Make a few more posts in the thread and try to see if you can get external.php running.
When it works and you follow the external.php?type=AIML you should get results on the screen which should be your entries in an xml type format... If it's blank that's no good.

I don't have a email I like to share but you can PM me things here if you like.

I have to go to family party now.
Be back later this evening.

rockergrrl 03-27-2004 08:13 PM

At the end of external.php before:
Code:

/*======================================================================*\
I have:

Code:

else if ($_REQUEST['type'] == 'AIML')
{ // XML/AIML output

 $posts = $DB_site->query("
 SELECT post.title, post.pagetext, post.postid
 FROM post
 WHERE post.threadid=182 AND post.postid!=536");
 $postcache = array();
 while ($post = $DB_site->fetch_array($posts))
 { // fetch the posts
 $postcache[] = $post;
 }
 // set XML type and nocache headers
 header('Content-Type: text/xml');
 header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');
 header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
 header('Pragma: public');
 // print out the page header
                echo '<?xml version="1.0" encoding="' . $stylevar['charset'] . '"?>' . "\r\n";
 echo '<aiml version="1.0">';
 
 
 foreach ($postcache AS $post)
 {
  echo "<category>";
  echo "<pattern>";
  echo strtoupper($post[title]);
  echo "</pattern>\r\n";
  echo "<template>  \r\n";
  echo $post[pagetext]."  \r\n";
  echo "</template>  \r\n";
  echo "</category>  \r\n";
 $DB_site->query("UPDATE post SET threadid=183 WHERE postid=".$post[postid]);
 }
 echo "\r\n</aiml>";
}
else if ($_REQUEST['type'] == 'AIMLSHARE')
{ // XML/AIML output
 $posts = $DB_site->query("
 SELECT post.title, post.pagetext, post.postid
 FROM post
 WHERE post.threadid=183 AND post.postid!=537");
 $postcache = array();
 while ($post = $DB_site->fetch_array($posts))
 { // fetch the posts
 $postcache[] = $post;
 }
 // set XML type and nocache headers
 header('Content-Type: text/xml');
 header('Expires: ' . gmdate('D, d M Y H:i:s') . ' GMT');
 header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
 header('Pragma: public');
 // print out the page header
                echo '<?xml version="1.0" encoding="' . $stylevar['charset'] . '"?>' . "\r\n";
 echo '<aiml version="1.0">';
 
 foreach ($postcache AS $post)
 {
  echo "<category>";
  echo "<pattern>";
  echo strtoupper($post[title]);
  echo "</pattern>\r\n";
  echo "<template>  \r\n";
  echo $post[pagetext]."  \r\n";
  echo "</template>  \r\n";
  echo "</category>  \r\n";
 }
 echo "\r\n</aiml>";
}

I'm pretty sure I got everything correct (I double checked the thread ids, etc. They're correct.

Unless I missed editing something in there.

Geographic2 03-29-2004 05:38 AM

Check your PM's.

Bro_Joey_Gowdy 04-10-2004 03:39 PM

/me clicks install

mikeee 04-20-2004 07:45 AM

Can someone help? I keep getting this error:
=========================
Loading learnwhat.xml
Loading data aiml file: http://www.MYSITE.com/external.php?type=AIML
XML error: syntax error at line 1

Mijae 04-20-2004 12:56 PM

My bot wont use smilies :(


All times are GMT. The time now is 03:51 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01140 seconds
  • Memory Usage 1,747KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete