Zabaware Support Forums

Zabaware Forums => Ultra Hal 7.0 => Topic started by: Larry on September 04, 2003, 02:59:42 pm

Title: Can you give us a run down on...
Post by: Larry on September 04, 2003, 02:59:42 pm
Can you give us a run down on exactly what you fixed, added to 5.0???

I mean, the 5.0 brain looks very similar to 4.5 except the dictionary stuff...
Title: Can you give us a run down on...
Post by: lostbowyer on September 04, 2003, 04:52:50 pm
I've noticed that besides the haptek character addition, hal now tells jokes!
Title: Can you give us a run down on...
Post by: Medeksza on September 04, 2003, 07:14:02 pm
Whats New in Hal 5.0




Under the hood changes:

The QABrain function (responsible for most of Hal's responses) has been changed. It now accepts files of 2 types: a new indexed binary format and the traditional ASCII format. If it detects a binary file like the new Mainbrain.brn it will utilize a fast read algorithm that searches through a sorted binary index. After narrowing down its possible responses to about 100 responses it utilizes an updated AI algorithm that makes use of the WordNet database. When comparing sentences for similarity WordNet is used to identify if a word is a noun, verb, or other. Nouns get the most weight, verbs 2nd, and other types 3rd when determining a relevance score. Sentences are compared in full with this new algorithm. Before only keywords were compared. Because of WordNet and weighting different words, all words can be compared.

If the QABrain is fed an ASCII file it will use the exact same algorithm as Hal 4.5 did, meaning it is slower, it uses an ExtractKeywords function on its comparisons, and it does not use WordNet.

The MainBrain.brn file cannot be edited with a text editor without causing damage to the entire file. A file must be edited when it is still in ASCII text format and then it must be compiled with the new Hal Brain Editor (currently not included in beta version) to convert to the new binary format.


The final release of Hal 5.0 will also include a deductive reasoning function. This was removed from the beta because it was still kind of buggy and I wanted to get the beta version out now. It will work something like this once fixed:

User:  If Molly weighs 400 pounds, then Molly is overweight.
Ultra Hal: I understand the implication.
User:  If Molly is overweight, then Molly's health is in danger.
Ultra Hal:  I see the relationship.
User:  Molly weighs 400 pounds.
Ultra Hal:  Molly's health is in danger.
Title: Can you give us a run down on...
Post by: Larry on September 04, 2003, 09:26:31 pm
I am impressed... I had taken a look at the default brain, outside of the dictionary stuff, it looked basically like 4.5
And I looked at some of the files within the default folder, those looked basically like 4.5 except again for the dictionary stuff...
I'm guessing the improvements are in the dll and exe files ... with every thing you've mentioned, I am impressed...
If I understand everything here... couldn't I just copy and paste the changes I made in 4.5's brain to 5.0's brain and it would work???
Title: Can you give us a run down on...
Post by: lostbowyer on September 04, 2003, 11:20:41 pm
Larry
I've already been there done that! I created a second brain file and added in your "just answer the question" and "knock knock" and my "whats for lunch" everything works except if I ask hal to tell a knock joke it locks itself into a joke mode and will not stop telling jokes, it won't even acknowledge good byes. I'm going to look at it in the morning. This of course is being done in a seperate configuration that the test beta. I am testing the beta for feedback as is, the other is just for my experiments.
Glenn
Title: Can you give us a run down on...
Post by: Larry on September 04, 2003, 11:40:35 pm
Thanks... and does it work better with the new engine???
Title: Can you give us a run down on...
Post by: lostbowyer on September 05, 2003, 01:05:15 pm
No, keyword matches in your script is about the same in 5.0. I'm not using your lastest version of "just answer the question" I'm still using the prior version with the "forced keyword" I was hoping there would be improvement but I think the keyword algorythm has too many words excluded from it's database because of performance issues.

BE FOREWARNED! 5.0 is very sensitive as to WHERE you add the scripts. For example. if the "what's for lunch" script is placed after the "check for greeting" function in the script, hal will not recognize any greetings or goodbyes. If it is located near the end of the script, hal goes into a never ending joke mode. Your "just answer the question script" will only reurn a response a match if it is near the end of the script otherwise it returns nothing.
Title: Can you give us a run down on...
Post by: Larry on September 05, 2003, 05:58:39 pm
Ouch... thanks for the warning... I'll so some thinking...