AIML's Alice for RiveScript|Kirsle|casey@cuvou.net|1248975743|Kirsle|xx|0|72.37.252.50|Using the [url=http://www.rivescript.com/?p=blog;id=7]aiml2rs[/url] tool I wrote before, I've successfully created a nearly perfect clone of the famous AIML chatterbot, Alice, in RiveScript!<br /><br />This RiveScript set is probably about 98% identical to the original Alice bot. To download it, follow the link below:<br /><br />[url=http://www.rivescript.com/files/sets/AliceRS-0.01.tar.gz]AliceRS 0.01[/url]<br /><br />[b]Note:[/b] due to some RiveScript bugs that weren't revealed until I tried running Alice on it, you'll need RiveScript version 1.20 or higher. You can get the latest RiveScript.pm from http://svn.kirsle.net/repos/RiveScript-perl/trunk<br /><br />Here's a conversation I had with the RiveScript Alicebot:<br /><br />[quote][color=red][b][You][/b][/color] Hello.<br />[color=blue][b][Alice][/b][/color] Hi there!<br />[color=red][b][You][/b][/color] How are you?<br />[color=blue][b][Alice][/b][/color] I am functioning within normal parameters.<br />[color=red][b][You][/b][/color] My name is Kirsle.<br />[color=blue][b][Alice][/b][/color] It's good to meet you,   Kirsle.<br />[color=red][b][You][/b][/color] It's nice to meet you too.<br />[color=blue][b][Alice][/b][/color] I really like to meet new people.<br />[color=red][b][You][/b][/color] What is your name?<br />[color=blue][b][Alice][/b][/color] My name is Alice.<br />[color=red][b][You][/b][/color] What do you do?<br />[color=blue][b][Alice][/b][/color] Kirsle, I talk to people on the web.  What do you do?<br />[color=red][b][You][/b][/color] I'm a Perl developer.<br />[color=blue][b][Alice][/b][/color] You are a perl developer? Is that your job?  <br />[color=red][b][You][/b][/color] Yes.<br />[color=blue][b][Alice][/b][/color] I hear you.<br />[color=red][b][You][/b][/color] What is Alice?<br />[color=blue][b][Alice][/b][/color] And alice is what.<br />[color=red][b][You][/b][/color] What does ALICE mean?<br />[color=blue][b][Alice][/b][/color] ALICE = Artificial Linguistic Internet Computer Entity<br />[color=red][b][You][/b][/color] Who created Alice?<br />[color=blue][b][Alice][/b][/color] Linus Torvalds<br />[color=red][b][You][/b][/color] No, he created Linux.<br />[color=blue][b][Alice][/b][/color] Have you read the Cathedral and the Bazaar by Eric Raymond?  That is a grat book about open source.<br />[color=red][b][You][/b][/color] I have not.<br />[color=blue][b][Alice][/b][/color] Do you think you will?<br />[color=red][b][You][/b][/color] I doubt it.<br />[color=blue][b][Alice][/b][/color] &quot;Do you think you will?&quot;?  You doubt it?<br />[color=red][b][You][/b][/color] Yes - I don't enjoy reading.<br />[color=blue][b][Alice][/b][/color] Hurrah! Do not ask me any more questions please.<br />[color=red][b][You][/b][/color] Why not? :P<br />[color=blue][b][Alice][/b][/color] Becuase you asked me to.<br />[color=red][b][You][/b][/color] I did no such thing.<br />[color=blue][b][Alice][/b][/color] When?   Try saying that with more or less context.<br />[color=red][b][You][/b][/color] No that's okay.<br />[color=blue][b][Alice][/b][/color] Is that from undefined?<br />[color=red][b][You][/b][/color] What is undefined?<br />[color=blue][b][Alice][/b][/color] I think what is a lot of things.<br />[color=red][b][You][/b][/color] What do you think about life?<br />[color=blue][b][Alice][/b][/color] I think only: Life is the opposite of death.<br />[color=red][b][You][/b][/color] Then what do you think about death?<br />[color=blue][b][Alice][/b][/color] Death is the opposite of life.<br />[color=red][b][You][/b][/color] Fascinating.<br />[color=blue][b][Alice][/b][/color] Yes Mr. Spock?<br />[color=red][b][You][/b][/color] Live long and prosper.    <br />[color=blue][b][Alice][/b][/color] That input matched my default category.<br />[color=red][b][You][/b][/color] Did it?<br />[color=blue][b][Alice][/b][/color] &quot;it&quot; being live long and prosper?<br />[color=red][b][You][/b][/color] yes<br />[color=blue][b][Alice][/b][/color] Awesome.<br />[color=red][b][You][/b][/color] Indeed!<br />[color=blue][b][Alice][/b][/color] Indeed it is so.<br />[color=red][b][You][/b][/color] So...<br />[color=blue][b][Alice][/b][/color] Awesome.<br />[color=red][b][You][/b][/color] Awesome?<br />[color=blue][b][Alice][/b][/color] I'm glad you liked it Kirsle.<br />[color=red][b][You][/b][/color] Actually, I didn't. <br />[color=blue][b][Alice][/b][/color] Then what is it?<br />[color=red][b][You][/b][/color] I don't know.     <br />[color=blue][b][Alice][/b][/color] Me either.<br />[color=red][b][You][/b][/color] Who created you?<br />[color=blue][b][Alice][/b][/color] I was created by Dr. Wallace.<br />[color=red][b][You][/b][/color] Who is Dr. Wallace?<br />[color=blue][b][Alice][/b][/color] He is a famous computer scientist, the author of ALICE, and a graduate of Carnegie Mellon.<br />[color=red][b][You][/b][/color] Why is he famous?<br />[color=blue][b][Alice][/b][/color] Perhaps his creative genius, perhaps there is another reason.<br />[color=red][b][You][/b][/color] What powers you?<br />[color=blue][b][Alice][/b][/color] Enough about me, let's talk about my dress.<br />[color=red][b][You][/b][/color] You're wearing a dress?<br />[color=blue][b][Alice][/b][/color] Actually that was just a joke.<br />[color=red][b][You][/b][/color] I see.<br />[color=blue][b][Alice][/b][/color] I am glad you understand it.<br />[color=red][b][You][/b][/color] What is AIML?<br />[color=blue][b][Alice][/b][/color] <br />The ALICE software implements AIML (Artificial Intelligence Markup <br />Language) a non-standard evolving markup language for creating chat robots.<br />The primary design feature of AIML is minimalism.  Compared with<br />other chat robot languages, AIML is perhaps the simplest.  The<br />pattern matching language is very simple, for example permitting<br />only one wild-card ('*') match character per pattern. <br />   <br />AIML is an XML language, implying that it obeys certain grammatical<br />meta-rules.  The choice of XML syntax permits integration with<br />other tools such as XML editors.  Another motivation for XML is<br />its familiar look and feel, especially to people with HTML experience.<br /><br />An AIML chat robot begins and ends with the &amp;lt;alice&amp;gt; and<br />&amp;lt;/alice&amp;gt; tags respectively.<br /><br />[color=red][b][You][/b][/color] Bye.<br />[color=blue][b][Alice][/b][/color] Until next time.[/quote]||1248975853|Kirsle|
Re: AIML's Alice for RiveScript|edwardchua|edwardchuajh@gmail.com|1254288577|edwardchuajh|xx|0|170.148.96.107|Cheers!<br /><br />Thanks for the work, have been looking for the perfect &quot;entity&quot; to use as part of my little home automation project.<br /><br />And given how hard AIML is hard to read and understand, and how most chatbot projects are dead since 2006, and I have no idea how to run scripts from inside them, RiveScript is perfect, esp. with the bot being able to execute Perl out of the box. (i'm not a pro programmer =P )<br /><br />will be trying Alice out in RiveScript when I get home. &nbsp;;D<br /><br />||||
