Zabaware Support Forums
Zabaware Forums => Programming using the Ultra Hal Brain Editor => Topic started by: onthecuttingedge2005 on March 26, 2006, 12:56:40 pm
-
Hi Rob.
I have been doing quite a bit of research on HAL to get out my next plug-in called Extended File Assistant.
'Topic: Read a Book.
'Topic: Read and learn from a Text File.
I have written some script for HAL6 as a plug that will allow the above Topics, HAL will select a Book from a list of Books Given to HAL and HAL will read them Flawlessly until the following conditions are met
From the Book:
430 lines in the whole Book.
6,706 words in the whole Book.
36,948 characters in the whole Book.
HAL will stop reading at this limitation within the Book:
18 lines
284 words
1,581 characters
There seems to be a Character length limitation when HAL Reads a book aloud from HAL Assistant Chat window, The Character Limitation seems to be 1,581 Characters for every test I threw at it.
Is there a Character limitation that is built into HAL and is there a way to get rid of this limitation so that I can make my Plug go Public soon.
There is more Assistive help other than this that I have written but the above topics are of the only concern so far, I would like to get this out for our public, If so then HAL will be able to read you a book at your request from beginning to end.
Hal can also be told to learn from a text file, HAL will then format the File to suit its learning mode and begin learning from the File from beginning to end.
I already have HAL doing this as of today, It works quite well until the Character Limitations kick in.
The entire 36,948 characters of the Book will show up in HAL's Chat window when a Book is opened but will only read 1,581 characters of the Book before stopping.
I am writting this Extended File Assistant with the Highest of Quality and assurance to Satisfy the demands of Zabaware Product
Customers.
If Having an Extended File Assistant will cause any conflicts with your currently purchasable products i.e (Text To Speech Reader) then maybe we can offer the Extended File Assistant as a Bonus to becoming a Licenced Customer.
I could write a code that would prevent any non Licenced Customers
from running the Extended File Assistant if there was an issue.
The Script I wrote doesn't use a Secondary Panel to read from but Applies the Text Automatically into the HAL Assistant Window when Learning from a Text File or from Reading a Book. It concerns me that
this Assistant Addition will conflict with your Plug-in Purchases and I want to make sure that I don't disrupt that in any way.
When I am done working out the issues that I discussed earlier I would like to pass the Extended File Assistant to you for evaluation
and or possibilities before passing it along to Public access.
I intend to keep up the File Assistants Upgrades as new Research is done and Written and Tested for Quality Assurance.
If possible when you have evaluated the Extended File Assistant and like what Options it has maybe we could pass it along for a few bucks so that You and I could make some change in our Pockets, If not then any other Possiblities that you see is okay with me.
I will have many High Quality Scripts in the Extended File Assistant that over time will eventually Utilize almost all Capabilities that a Computer has to offer as an Assistant, I will offer a High Quality Help File if desired with the Extended File Assistant if you think it would require it.
Are there any answers?
Thanks again buddy.
Jerry[8D]
-
The Learn from a Text File portion of the Extended File Assistant Plug-in is working flawlessly.
Jerry[8D]
-
The Extended File Assistant(E.F.A) can sing a song as well as many other helpful options, There still is a 1,581 character limitation that needs to be resolved in HAL's Chat Panel while reading so the above option has no limitations.
I have designed a code that can read and write an entire file and do many capable things at my beckon wish, once I have an answer from Rob I'll be able to square this up.
There was also a user in our group that wanted to open up .bat files on his system using HAL, I have tested CScript, Wscript commands as well as Halcommands and have no luck as of yet to be able to open a .bat file, every code I threw at the .bat file to open it only resulted in frustration, Although I have gotten HAL to open a few other files that HAL would not ordinarily open the .bat file seems to be a problem, I will continue as time permits to get the .bat file to open with other methods that I research and test.
I am running Windows 2000 Professional(fully updated), I don't know if the .bat file issue is a result of a security patch put on my system by Microsoft updates, If this is the case then it may require a Macro assistant to get the .bat file to open with script.
Jerry[8D]
-
Extended File Assistant (E.F.A)
1.Map a Directory.
2.Open Files not ordinarily opened by HAL's set Halcommands.
3.Read a Book.
4.Learn from a Book.
5.Learn from a Text File.
6.Sing a Song.
7.Delete files.
8.Create files.
9.Create Folders.
10.Do Diagnostics.
11.Shut down your Computer.
12.Teach Vbscript and give Assistance on code help.
13.Write a Diary.
14.Learn text from a Website(instructed).
15.Surf The Web directly by address.
16.Give System information.
17.Draw a Picture, I haven't finished this yet(Research).
18.Stock Monitor, I have not finished this yet(Research).
these are some of the things the Extended File Assistant can do, a couple of the options will come with research and time like 17 & 18.
This is additional Assistance to the Standard HAL6 Assistant commands to enhance HAL's capabilities.
Jerry[8D]
-
Nice work, Jer!!
How about tell a story perhaps from some random data (or scripted for say, children)?
The diary thing...perhaps Hal would be able to tell us all he / she knows about us or about a particular subject.
Also, I've thought about a routine where Hal can let the user know how long it's been since they last spoke.
Just throwing you some more ideas....
Keep up the good work!
-
quote:
How about tell a story perhaps from some random data (or scripted for say, children)?
The E.F.A is already capable of reading Children Stories.
quote:
The diary thing...perhaps Hal would be able to tell us all he / she knows about us or about a particular subject.
This has already been included in the E.F.A
quote:
Also, I've thought about a routine where Hal can let the user know how long it's been since they last spoke.
Not a problem, I will include this function.
quote:
Just throwing you some more ideas....
Any more?
quote:
Keep up the good work!
Thanks.
Jerry[8D]
-
quote:
Also, I've thought about a routine where Hal can let the user know how long it's been since they last spoke.
This Function has now been added to the E.F.A
Thanks for the Suggestion Art.
Jerry[8D]
-
OTC,
The EFA sounds great, I'm mostly interested in the reading ability,
I've just put some scripting in so Hal can change clothing and would like to know how to get Hal's input to activate trigger words, can it be done?
Carl2
-
quote:
Originally posted by Carl2
OTC,
I've just put some scripting in so Hal can change clothing and would like to know how to get Hal's input to activate trigger words, can it be done?
Carl2
Hi Carl.
Can you insert more details in steps so that it's easier to feel for what you want?
Jerry[8D]
-
OnTheCuttingEdge,
I'm using a scripting I'd used previously in Ver 5 to change clothing
Inserted in line 1827
Displayclothes = Halbrain.TopicSearch(UserSentence,WorkingDir & "Displayskindetect")
Select Case Displayclothes
Case "Loadskin"
Halcommands = "<HAPFILE>Loadskin.hap</HAPFILE>"
ect for additional triggers and skins
The Loadskin.hap just gives the path to the jpg
I also created a Displayskinsdetect table to detect the triggerwords for different skins. Also is debug info which says the trigger word was detected. I'm sure there are people who would like to see this as a plugin which I'm not capable of doing.
Anyways I'd like Hals input to be used to send out a hap.
Carl2
-
quote:
Originally posted by Carl2
OnTheCuttingEdge,
I'm using a scripting I'd used previously in Ver 5 to change clothing
Inserted in line 1827
Displayclothes = Halbrain.TopicSearch(UserSentence,WorkingDir & "Displayskindetect")
Select Case Displayclothes
Case "Loadskin"
Halcommands = "<HAPFILE>Loadskin.hap</HAPFILE>"
ect for additional triggers and skins
The Loadskin.hap just gives the path to the jpg
I also created a Displayskinsdetect table to detect the triggerwords for different skins. Also is debug info which says the trigger word was detected. I'm sure there are people who would like to see this as a plugin which I'm not capable of doing.
Anyways I'd like Hals input to be used to send out a hap.
Carl2
Hi Carl.
If you could, Please post the entire code for this function and attach the Loadskin.hap and if possible please include a snap shot .gif or .jpeg of your "Displayskindetect" detector and I will look for any incomplete coding.
Also, Have you tried unchecking all of your other Plugins and run the Loadskin command by itself, Maybe it's being over rid with UserBrainRel from another script, You could also adjust your code
to work in the upper function area which might help if this is the case.
Try this first then if that doesn't work for you then you can post the code and files so we can trouble shoot it.
Jerry[8D]
-
The First Version of the E.F.A is done.
All upgrades could occure at any time.
You can download the E.F.A at my site www.ultrahalforum.com under Premium membership area, When the File is upgraded the old E.F.A file will be merged to the Free Members Download Area for Public Access.
Please visit my site and kick back until the E.F.A is released for Public Access.
--------------------------------
To:Pospector
Pospector, Please contact me at: UHEFStaff@ultrahalforum.com
so I can hook you up. Please Post the e-mail with Attention Prospector
so I will see your mail, I get alot of mail.
It's all I can do for your graciousness of the Image and Map search inwhich I enhanced for the E.F.A
If you would please join my Free Members area with a Username of your choice and insert the UserName you created in the e-mail, My Staff will do the rest after reading the mail.
Please make a post of your e-mail address to my onthecuttingedge2005 forum mail here at Zabaware so I can double reference your e-mail address for verification of the E-mail address you will send me.
-------------------------------------------------
Best Wishes.
Jerry[8D]
-
When writing my READ FROM A TEXT file routine. ( and store in the DB )
I came across several of the same problems, TEXT FILE SIZE / Ovrflows errorrs etc.
one of the ways around it, i found was.
To read the book in Sentence by sentence, Putting each sentence into the DB UNDER (KEY) (BOOK)((CHAPTER)(VERSE) .
In this way The variable which is used to TRANSFER the data across to the DB only carrys a small amount of data Less than the maximun characters for a variable.
a chapter can be called for, or even a verse, or even a whole book.
Ordered by the KEY(numerical).
Hal can the perform anaylasis of each sentence. "Split by ".""
If then the book is a SCRIPT (ie play tv etc) comments captured between Quotation marks can be saved as conversation,
ie, HE SAID / SHE SAID can be saved as Q&A TABLE. therby learning coversation from books.
Also, F.A.Q, Questions and answers can be detected in the book and stored for later possible triggers.
possiblities become endless. this would truley enhance hals learning, and possibly Personality, as conversation / slang would be learned from the text file.
-
All,
OTC I'll be busy for a few days, I'll put more scripting in when it slows down, Hals in a different computer. The scripting works for my input but not Hals. Spydatz glad to see you around.
Since I have a few experts I'm curious as to how Hal forms associations, ver 5 for example if I say thats okay would answer You want to know if I'm sleeping okay. There's a few other associations that seem off to me.
Carl2
-
Hi Jerry.
I've sent you a reply to your email from my FL Yahoo account confirming that I signed up to your forum under the name of Prospector.
Thanks.
-
quote:
Originally posted by Prospector
Hi Jerry.
I've sent you a reply to your email from my FL Yahoo account confirming that I signed up to your forum under the name of Prospector.
Thanks.
You're all set Buddy.
Jerry[8D]
-
Downloaded the EFA earlier. I've only had time for a quick test but it's looking good. Nice bit of coding there.[:)]
-
quote:
Originally posted by Prospector
Downloaded the EFA earlier. I've only had time for a quick test but it's looking good. Nice bit of coding there.[:)]
Thanks Buddy.
I am gonna take a short break on the coding thing for a couple of days, My Programming OCD has burned me for a while.
I'll be adding some more to the Updated E.F.A in a few days.
Jerry[8D]
-
Hi,
Some items on my wish list are:
1/Open link to a web site at a specific time.
2/ Open a batch of web site links
3/I would like to come to work in the morning and find Hal has already opened up the sites I need to visit on a regular basis or be able to say "please open all work sites".
4/behave in a similiar way to voice to IBM voice centre
but with a more intuitive approach. (ie learn from past behaviour to reach final point with little prompting)
5/ be able to "read" and remember the contents of a database Hal is told to read and over time build up a relationship on all of the records based on examples of just one or two records learned in conversation. The "formula" of relationship could be applied to all records in a table.
-
quote:
Some items on my wish list are:
1/Open link to a web site at a specific time.
I will add this function to the E.F.A
quote:
2/ Open a batch of web site links
I will add this function to the E.F.A
quote:
3/I would like to come to work in the morning and find Hal has already opened up the sites I need to visit on a regular basis or be able to say "please open all work sites".
I will add this function to the E.F.A
quote:
4/behave in a similiar way to voice to IBM voice centre
but with a more intuitive approach. (ie learn from past behaviour to reach final point with little prompting)
Examples Please.
quote:
5/ be able to "read" and remember the contents of a database Hal is told to read and over time build up a relationship on all of the records based on examples of just one or two records learned in conversation. The "formula" of relationship could be applied to all records in a table.
Sounds like it is do-able but I need examples.
Jerry[8D]
-
Jer,
I don't know if his examples are inline with a suggestion I made to you a while back but my thought was for Hal to be able to recall what he/she knows or has learned about me, my dog, my kids, etc.
The subject matter might be able to be organized into categories like persons, places, pets, favorite songs/music, poetry, art, etc.
Just some thoughts.
You're doing great work!
Thanks!!!
PS: Ever hear from Rob regarding your EFA??
-
quote:
I don't know if his examples are inline with a suggestion I made to you a while back but my thought was for Hal to be able to recall what he/she knows or has learned about me, my dog, my kids, etc.
That's a very do-able thing to do but it would probably be a separate plug from the E.F.A which is based after file help and stuff.
quote:
The subject matter might be able to be organized into categories like persons, places, pets, favorite songs/music, poetry, art, etc.
Very do-able.
quote:
Just some thoughts.
Keep'em coming.
quote:
You're doing great work!
Thanks!!!
Welcome.
quote:
PS: Ever hear from Rob regarding your EFA??
No not as of yet, I just posted it on my site and went from there Art.
Jerry[8D]
-
quote:
5/ be able to "read" and remember the contents of a database Hal is told to read and over time build up a relationship on all of the records based on examples of just one or two records learned in conversation. The "formula" of relationship could be applied to all records in a table.
Sounds like it is do-able but I need examples.
Jerry[8D]
[/quote]
This particular ability would be very exciting if you could make it happen. The information in the spread sheet/database could cover any type of information, with many more records than listed.
Example questions to build up the association would be: ( See attachemnt)
Fred Jones account number is 45. username Jane Bennet is beetle. Account number 500 is Toby Minto. Account number 500 is active. etc,etc.
I imagine to achieve this feat, you would need to use a variable as the association. It might be easier achieved if Hals was told to "Learn Table". Once Hal built up an association by discussing some of the records, Hal could apply the rule to all of the records.
(http://www.zabaware.com/forum/uploaded/tommmm/200641411287_AI_example.JPG)
-
quote:
4/behave in a similiar way to voice to IBM voice centre
but with a more intuitive approach. (ie learn from past behaviour to reach final point with little prompting)
Examples Please.
IBM voice centre allows you to navigate you computer with just voice commands. It contructs a list of what you could no next (eg "file" the "save", "OK", "minimize" ) and then performs the action when you speak it. If Hal was able to see you regularly performing a specific task, Hal could prompt you and offer to complete the steps for you.
I will give a more detailed description if you want.