dupa

Author Topic: modify hal's database  (Read 10086 times)

romanda

  • Newbie
  • *
  • Posts: 11
    • View Profile
modify hal's database
« on: December 05, 2005, 12:46:38 am »
hi, i'm new to hal. just wanna ask to modify hal's database, r we going to use AIML similar to ALICE? if not , how can i do this? i just wanna add some questions and answers to its database.

many thx.

romanda[:)]
 

romanda

  • Newbie
  • *
  • Posts: 11
    • View Profile
modify hal's database
« Reply #1 on: December 05, 2005, 12:50:07 am »
and also wanna ask if anybody use ALICE b4, how do u find the diff btw ALICE and HAL, which one do u prefer?

 

GrantNZ

  • Full Member
  • ***
  • Posts: 178
    • View Profile
modify hal's database
« Reply #2 on: December 05, 2005, 01:17:23 am »
Hi there,

Welcome to Hal [:)]

In the menu there's an option called "Brain Editor..." from which you can edit Hal's script (done in VB script) and database.

Before you tinker around you should either back up the database you're working on, or create a new project for yourself. Just in case. Creating a new project basically makes a fresh copy of the script and database, so that you can revert to the original if you ever need to.

I've never used Alice sorry, so I can't answer your second question.

Hope this helps!
Grant
 

romanda

  • Newbie
  • *
  • Posts: 11
    • View Profile
modify hal's database
« Reply #3 on: December 05, 2005, 01:33:35 am »
Thanks for replying.[:D]

so does that mean i dont need to worry about AIML in hal?

but i need to think about vb script and database right?(ah... never used that b4).

and how many questions and answers can i add( i think i'm going to add a lot!because i'm currently working  in a adsl company ,to reduce the number of it supports, our company decide to make a online chatroom to allow the customer ask questions online, and recieve a answer automatically generated by hal)?
 

vrossi

  • Full Member
  • ***
  • Posts: 150
    • View Profile
    • http://vrconsulting.it
modify hal's database
« Reply #4 on: December 05, 2005, 02:05:06 pm »
Hi, Romanda, welcome here!

It's not easy to summarize the differences between Hal and AIML, but I can try.

1. Hal is a commercial product, marketed by Zabaware, mainly developed by a genius called Robert Medeskza.
AIML is a language, derivative of XML, mainly developed by another genius called Dr. Rich Wallace, and supported by the ALICE AI Foundation (http://www.alicebot.org/aiml.html).

2. As a product, you can use Hal "as is". You just install it and start using it; if you buy also the Haptek extension, you can immediately give your Hal a human 3D interface. The engine is inside Hal.
As a free language, AIML is downloadable without paying anything, but you must have some engine which runs it. Here you have two options:
a) If you want to run your bot locally on the PC, you must use one of several available AIML engines. I have used ProgramD, which is a Java application running on your PC (free download at http://aitools.org/). But it just gives you a text interface (questions and answers); if you want a bot with a graphic interface you must create some software which takes the Programd AIML engine answers and gives them to some TTS (text to speech) software and to a graphic engine (I used Haptek). It can be done ( I did it), but it requires a fair amount of programming in AIML, Java and HTML, if you want to do something serious.
b) If you like to run your chatbot on the Web, you can use the free service Pandorabot (http://www.pandorabots.com/botmaster/en/home), which allows you to set up very easily your bot and even to give him a graphic interface (it uses a 2D Oddcast character which generates the TTS audio flow). You can do it all in a few minutes and you can even customize your HTML page and your AIML set.

3. Hal's knowledge base is partly in its brain (VBScript) and mainly in its tables; it also accesses a huge built-in dictionary/encyclopedia.
AIML has the main ALICE knowledge base, plus several other AIML files, which can be added, including a huge dictionary (but no encyclopedia, as far as I know).

4. You program Hal by writing plugins in VBScript, which manage both the interface and the knowledge base. You program the knowledge base in Alice by creating AIML files (using tags like <srai>). You have to program your interface according to the software you have written.

5. Hal has a native ability to learn. You just talk and he stores informations in its tables. In AIML there is a <learn> tag which can only loads a new AIML file, and a <gossip> tag which allows you to store information said by the user, but there is no native learning function. Dr. Wallace has developed a learning method, but it is available only as an add-on function in Pandorabot hosted bots, and is not available in the standard AIML.

6. Hal has a nice ability to make deductions (if...then) and use them in subsequent answers. I don't know of any similar option in AIML.

7. Both environments have many clever independent developers, but Hal kernel will always be in Zabaware/Medeskza hands, while AIML is completely public.

I can't tell you which solution is better: I just tried to tell you what I know about.

PS: There is also a Hal 5 plugin which emulates an AIML engine. I have never used it. You can find it on the Zabaware plugins area.

Good luck!





romanda

  • Newbie
  • *
  • Posts: 11
    • View Profile
modify hal's database
« Reply #5 on: December 05, 2005, 05:17:02 pm »
Hi vrossi,[|)]
Thank you very much to reply me in such a detail. i think i've already have some ideas about the difference btw Hal and Alice.

I'm going to download both software and give a try to play with them.

Rui
 

romanda

  • Newbie
  • *
  • Posts: 11
    • View Profile
modify hal's database
« Reply #6 on: December 05, 2005, 05:38:36 pm »
i tried to look at hal's brain editor.
and found the questions and answers are all in the tables. so does that mean i'm going to modify the tables only, not the vbscript?[?]