User Control Panel
Advertisements

HELP US, HELP YOU!

Chatbot::Alpha 2.00

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Modules & Add-ons
View unanswered posts
Author Message
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Thu Oct 06, 2005 10:52 pm    Post subject: Chatbot::Alpha 2.00 Reply with quote

With a new Chatbot::Alpha version comes many new changes!

First of all, its entry in the Change Log:
Code:
  Version 2.00
  - Added some AIML emulation:
    - In-reply redirections (like <srai>):
         + * or something
         - Or something. {@<star1>}
    - "That" kind of support.
         + i hate you
         - You're really mean... =(

         + sorry
         % youre really mean
         - Don't worry--it's okay. :-)
  - Renamed all methods to be alternatingCaps instead of with underscores.
  - Chatbot::Alpha::Syntax supports the newly-added commands.
  - Fixed conditionals, should work more efficiently now:
    - Format changed to *VARIABLE=VALUE::HAPPENS
    - Does numeric == for numbers, or eq for strings... = better matching.


All the big differences in Chatbot::Alpha 1.x to 2.0:
Code:
  - Methods have been renamed:
    load_folder     => loadFolder
    load_file       => loadFile
    sort_replies    => sortReplies
    set_variable    => setVariable
    remove_variable => removeVariable
    clear_variables => clearVariables

  - Methods that have been REMOVED:
    default_reply*

  - Alpha commands added:
    %THAT

  - Alpha commands changed:
    *CONDITION
    New format:
      *VAR=VALUE::REPLY

  * Set a trigger of just an asterisk to set up a fallback for when no better
    response is found. Example:

    + *
    - I don't know how to reply to your message!


But in summary...

Updating Your Code

You'll have to update your Alpha parser to rename the methods it calls, as the methods have been renamed. i.e. "sort_replies" becomes "sortReplies"

Fixes/Modifications

All method names containing underscores were renamed to be alternatingCaps instead.

*CONDITION command fixed. Changed the format from
if VAR = VALUE::REPLY to be just
VAR=VALUE::REPLY as well as doing an == check for numbers or an eq check for strings (better matching). I did more testing on it this time round than I did the first time and I'm confident that the new conditionals command will work better than before.

New Additions

Added % command for "that's" as in AIML emulation of <that>.

An example of "that"
Code:
+ ask me a question
- Do you go to school?

+ yes
% do you go to school
- Where do you go?

+ *
% where do you go
- Is it nice there?

etc...


Usage of %THAT
• %THAT must come directly after +TRIGGER
• Command data of %THAT is the bot's last response, lowercase and with no punctuation.

Also, I've added Chatbot::Alpha::Tutorial which is a beginner's tutorial to Chatbot::Alpha.

Download: http://www.aichaos.com/download/aichaos/tech/Chatbot-Alpha-2.00.zip

This soon will be listed on CPAN, http://search.cpan.org/perldoc?Chatbot::Alpha for when it is (or right now it'll take you to 1.70 pod)

POD's (not on CPAN):
Chatbot::Alpha - http://www.aichaos.com/modules/Chatbot/Alpha.html
Chatbot::Alpha::Tutorial - http://www.aichaos.com/modules/Chatbot/Alpha/Tutorial.html

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Cer
Upgraded Agent
Upgraded Agent


Joined: 03 Feb 2004
Posts: 3776
Location: Michigan
Reputation: 146.9
votes: 4

PostPosted: Thu Oct 13, 2005 10:29 pm    Post subject: Reply with quote

Version 2.01

Changes:
Code:
  - Added string tags {formal}, {sentence}, {uppercase}, {lowercase}
  - Added tags <input> and <reply> and alias <star>.
  - Fixed conditionals bug (conditionals wouldn't increment correctly so
    only the last condition remained in memory. Now multiple conditions
    can be used for one trigger... i.e. comparing gender to male/female
    in two different conditions).


http://www.aichaos.com/download/aichaos/tech/Chatbot-Alpha-2.01.zip

edit

A bit of an explanation...

String tags are like {formal}...{/formal}, does that casing method to the text in between (formal = formalized, sentence = first word formal, etc)

<input1> to <input9> are the last 9 things the user has said (or "undefined"), and <reply1> to <reply9> are the last 9 things the bot has said. 1 is newest, 9 is oldest.

And <star> is just an alias to <star1> because it seems kinda dumb to name stars by numbers when you only have one star in the pattern.

_________________
Current Site (2008) http://www.cuvou.com/
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Bot Depot Forum Index -> Modules & Add-ons All times are GMT
Page 1 of 1

 



Protected by phpBB Security phpBB-TweakS
phpBB Security Has Blocked 9 Exploit Attempts.
Antispam Captcha Mod by phpbb-security.com
Powered by phpBB © 2001, 2005 phpBB Group