User Control Panel
Advertisements

HELP US, HELP YOU!

AIML to Alpha Converter

 
Post new topic   Reply to topic    Bot Depot Forum Index -> Commands
View unanswered posts
Author Message
Cer
Upgraded Agent
Upgraded Agent


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

PostPosted: Sat Feb 19, 2005 3:23 am    Post subject: Reply with quote

I've programmed a simple converter that I used to translate the Standard A.L.I.C.E. AIML into Chatbot::Alpha-friendly responses.

Attached is a zip containing the converter.pl file and the converted Alpha reply file for the Alice replies.

AIML Conversion:
Quote:
This converter tool was only designed for the standard ALICE AIML files. It expects the AIML files to be formatted just like these:

Code:
<category><br /><pattern>HELLO BOT</pattern><br /><template><br />Hello human!<br /></template><br /></category><br /><br />--or--<br /><br /><category><br /><pattern>HELLO</pattern><br /><template><br /><random><br /><li>Hello there!</li><br /><li>Hey! What's up?</li><br /><li>Not everyone replies to just a simple "hello".</li><br /></random><br /></template><br /></category>


Rules it follows:
, pattern text, -- all must be on a single line
on their OWN lines. Template text between those lines.
• If , then and on their OWN lines. All lines between should be
  • text


  • Unsupported AIML Elements:
    - this will be added in a later version
    - unless somebody finds a Perl JS evaluator
    - might be added later

    Known Bugs:
    If the