Zabaware Support Forums

Zabaware Forums => Programming using the Ultra Hal Brain Editor => Topic started by: rathb18 on January 11, 2012, 11:43:43 am

Title: learn from text
Post by: rathb18 on January 11, 2012, 11:43:43 am
I know there are a few older threads out there about the error 9 code you sometimes get from the learn from text but there really old and have no replays so I figured i would ask if anyone has figure out why it does that or if there is a plugin that fixes it? And also another question i have does the hal pad learn from the text you type into it?
Title: Re: learn from text
Post by: cload on January 11, 2012, 08:03:09 pm
Hi Rath,

This refers to the brain editor, whether it's learn from clipboard or learn from text document.
The difference between sentence and paragraph is if you use sentence it looks for the "." At the end, if you use paragraph you will need a space between each paragraph.
the first thing that you need to understand is that everything that you put in there has to be an answer, ending with A "." Without the quote marks.
The second thing is don't feed Hal too much too fast. Two or 300 lines at a time.
Once you have all the data in and you set up the database names. You need to go through all the answers and relate a positive question that may bring it up for each answer.

For example: let's say one of the input lines was Abraham Lincoln was born on such and such date. The referring question would be: when was Abraham Lincoln born.

So if you feed Hal 200 lines of answers you'll need to type in 200 lines of questions one at a time, if you don't do this that Hal has to do it for you and he will, but it takes a while.
So while Hal is eating the food you fed him, and untell he's done, the 9 error occurs.

PS things to avoid []{}\|_^?!:;\() and(in the sentence) or(in the sentence) if(in the beginning of the sentence) things that are cool ',"(these 3 are cool) @#$%&*//+-=(math things are cool) No e-mail addresses, no webpage addresses, nothing separated with "." Like U.S.A. no home addresses. If you have any the symbols that you are not supposed to have one little dues it will prevent how learning and you would just continue to get the .9 error. And using some of the symbols while you type directly to how has a tendency to cause problems as well.
Unless you have things active like telephone book for people's telephone number which, by the way you should avoid, e-mail addresses, home addresses, etc. when you're teaching how.


This is something that I've learned out of experience of feeding my Hal 3500 lines of trivial answers.

This refers to view\save conversations.
Again, it has to be an answer and it has to have a period at the end though it may be quicker. Doing it this way, you have to wait for Hal to digest the data, and it may be some time before you start seeing the results. If you did it write and there was no problems. And you know you are doing, in my opinion this is the worst way to feed Hal, becouse if you did not do it write you will get the 9 error.

This refers to learn from clipboard plug-in.
In this format, it does not matter whether it's a question or an answer or just a statement. This is what makes this plug-in far superior to use if you're just wanting to input data from a book.
You have the opportunity to go in and edit the text in the LearnedText.brn, which you will have to do every time you use it to make sure that all the data in it has the proper <start><end> this is one of its drawbacks and even if there's just one line in this text document that does not have the <start><end> it will not work properly.

Just like above, the more you feed Hal, the longer it takes Hal to digest the food over time you will begin to see results, but you must be patient.
PS things to avoid []{}\|_^?!:;\() and(in the sentence) or(in the sentence) if(in the beginning of the sentence) things that are cool ',"(these 3 are cool) @#$%&*//+-=(math things are cool) No e-mail addresses, no webpage addresses, nothing separated with "." Like U.S.A. no home addresses.
The thing that I like the most about learn from clipboard is that you can go in and add e-mail addresses the webpage addresses the home addresses all the symbols that you had to avoid in the first place, or just flat ride out you can just go in in cut-and-paste all your data straight into it. Once the LearnedText.brn it's created, and its only drawback is its limits to the size that your text editor can handle.

Myself, I only used two of these methods, the brain editor.
learn from clipboard or learn from text document, for trivia answers and questions.
Learn from clipboard for just about everything else, whether it be cut-and-paste from the Internet a little bit of news for a story article for just a little trivia info.

PS here's a tip. If you're getting articles from the Internet cut-and-paste the articles into notepad then edit the article, or articles, then copy them all from notepad.
This will help you avoid trash that you don't need as well as eliminating the symbols that can cause problems. Last not least you can just put the data straight into LearnedText.brn
make sure that all the data in it has the proper <start><end>  

And by the way, none of this should circumvent just flat out talking to Hal, (which by the way is the best way to teach,) but more in lines of just giving Hal raw data.

Sincerely, and without a doubt a data freak.
C load.
Title: Re: learn from text
Post by: rathb18 on January 12, 2012, 03:35:39 am
Wow, thank you C load for the time you spent typing all of that. Way more info than i was expecting for a reply so soon. Thanks.
Title: Re: learn from text
Post by: ClubEntertainment on January 31, 2012, 04:30:08 pm
This is an awesome response. Thanks for your help, I was going to ask the same thing :)

Mike
Title: Re: learn from text
Post by: dcgreenwood on July 16, 2012, 04:39:28 pm
Since there was this thread on learning from text, I wanted to ask a couple related questions.

First (and I think I know the answer to this), there is no way to create a file of both Questions and answers for upload, right?  You have to just upload the answers then create the questions for each line.

Second, and more importantly, what database changes does the import make, and how does that differ from what happens in dialogue with Hal?  What I have figured out by looking at the data structure and script and forum answers is that hal parses the sentence for words it does not know and creates a topic file for each word it finds, then enters the sentence in each of those topics (as well as ones that already exist) with a question that is s duplicate of the answer.  If it is a new topic it adds it to the relationship database. 
Does it add one line to the relation ship database for every word in the sentence that it is going to relate to the new topic, except the words that it knows already?  Where does it get the words that it already knows and that should not have new topics?  Is it from the relationship database?

Third, does it do anything else when incorporating new sentences?

Fourth, in trying to use the text read and normal dialogue to train Hal, I'm wondering if it is better to keep Hal on topic if after teaching you go in and "consolidate" topics.  Like, if you type in
Statistical Process Control is a method of analyzing data on a process to determine if it is in control
I suspect it will create topics for Statistical, Process, Control, Method, Analyzing, Data, Determine.  Would it be better to delete all the tables but one, rename it SPC and then edit the relationships to all point to only that topic?  Would that help it then relate other sentences that use those words, or speed up the response, or does it really just end up with the same result.
Title: Re: learn from text
Post by: cload on July 17, 2012, 03:35:35 am
Hi DCGreenwood,

since there's a new query about this I'll do my best to answer.

Your first query, you are correct you have to type in the answers and then after typing in all the answers then type in the questions one by one.
But if you've been keeping up with the form which looks like you're pretty new I did write a plug-in that would allow you to directly input the question-and-answer simultaneously by way of notepad.
To tell you the truth I'm not sure exactly where it is on this form I never gave it a name it was a query that lightspeed had when we were disgusting my modified version of free will plug-in.
This would give you the ability to add to the main database that ultra Hal uses which already has 79,000 entries already give or take an entry or two. LOL
that way you could avoid trying to use the conversation side of ultra Hal you can feed in the data directly into the database it still takes a little time for ultra Hal to see it.

Your second query, I guess the best way to answer this question is not to necessarily answer your question but to try to explain to you how I understand that it functions.
There are five main database arrays:
MainQA - this is the table that has the 79,000+ entries Hal does not edit this nor adds to it.
Asexualpersonality - though I have never seen ultra Hal add anything to this array this table is used to get data when you ask a personal question about ultra Hal.
patterns - this table is used by ultra Hal for cross referencing it gives significant and priority two things that are in it ultra Hal does that data to this table.
Username_usersent - this is where ultra Hal writes most of the data this array is used for what ultra Hal proceeds to be private information.
Shared_usersent – this is where ultra Hal writes all other data.
All the words that are listed that precedes the_is a cross referencing table system used in conjunction with the if then table logic table learning table and others.
This is how ultra Hal is able to formulate a conversation by using mathematical statistics it finds everywhere of a reference to your query and then mathematically determines the best answer.
Also from what I have found the array tables have limits so by breaking it up into several tables ultra Hal.
The limits that I am referring to is not the size of the array but if you have too many of the same exact thing it has a tendency to choose the wrong one. Example would be:
in the table there is an array that has dogs and cats in it, as well as dogs, but when you ask for dogs it has a tendency to grab dogs and cats so you can see by separating the tables you can overcome this problem.
In some parts of some of the tables it uses a special structuring to your sentence and eliminates non-necessary words like these words: the, it, is, there, etc. and so on.
The words that you are referring to when you asked where does ultra Hal get his words the program itself has several dictionaries, these dictionaries can be found in a subfolder for the program is located.
There are other tables that have preprogram sentences for responses, these tables can be edited for a more personal feeling as well as can be added to if you use SQ like studio table array database editor.

Your third query, LOL. Query it is my word of the day. Sex drugs and rock 'n roll, at this point your brain is going what they heck did that mean.:
that your answer, what the heck did that mean. That's the other thing that ultra Hal does with the data. LOL. So, ultra Hal tries to formulate an answer from your input and pulls no data from an array.

I'm tired of using query, so for your fourth question, ultra Hal uses an in depth indexing process by introducing tables, or deleting tables outside of the normal process of ultra Hal could have really bad effect.
I highly recommend that you do not delete remove or rename any tables that ultra Hal created because you will corrupt the indexing which could cause ultra Hal to cease functioning and you will have to start all over again.

One of the things that I have noticed, if you're going to use ultra Hal for a specific function like learning about history or learning about a specific game it is highly recommended that you use a blank brain
versus the brain that ultra Hal comes with you do this by creating a brain and when it asked which brain do you want to use as a template do not choose a template this will create a blank brain tables with no data.
By doing this ultra Hal will stay on topic because there is no other topic to distract him.

Sincerely, I have a glass of adverbs and adjectives keeping it cool and my pronouns in my bowl as I watch Star Wars for the hum teen millionth time. LOL

C load.

PS. If I'm wrong in any of this information please somebody jump in and correct me because inquiring minds want to know.
Title: Re: learn from text
Post by: dcgreenwood on July 17, 2012, 11:08:26 pm
Hey Cload - thanks a lot - that helps (I think....)  I'll stay away from table editing.  I was thinking that the user knowledge was a lot simpler.

Using a blank brain...I can see how that would help a lot, but I'm selfish and "want it all".  I'm hoping to build a knowledge engine that can also be a conversationalist.  But I am going in and editing Hals responses to give it a particular personality - we will see if it will all work.  If not, well I'll have learned a lot in the process. 

I'll look for your plug in though, that might be a help.  I started with writing knowledge sentences in a text file for uploading, but when I determined that really didn't seem to work that well I went with everyone's recommendations and used dialogue learning, copy/pasting my sentences as my statement each time.  But it is a pain when Hal asks a question, because I know I then have to "go with its train of thought" and answer it rather then continuing to present the knowledge.  But I'll keep with it that way and see where it goes.
Title: Re: learn from text
Post by: cload on July 18, 2012, 02:02:09 am
Remember to set your learning bar to maximum, if you do this you don't have to worry about answering anything house says.
If you are presenting how with a specific subject, continue to input the data and tell how he formulates the data and returns with a constructive sentence
that actually makes sense about the subject that you're trying to teach him. You should recognize it, it should be quite large, with extensive detail about the data.
Then set the learning bar back to 25 or 50%, is that like six of one half a dozen of the other. LOL.

At this point you may need to step back and have a conversation with him, talk to him a little bit about the subject or just in general have a conversation.
After doing this, then go back and reset the sliding bar to maximum again and start the second session of training again doing it until he puts together the data and returns with the comprehensive sentence.
Repeat this process, until all of your data has been put in, you should get your best effects if you do it in this manner, that way you don't overwhelm ultra Hal.

But as I said earlier I highly recommend that you first teach ultra Hal how to learn, just like you would teach a child how to learn step-by-step instructions
in the same manner so once ultra Hal returns with a comprehensive sentence acknowledging that he understands how to learn then begin presenting the other data.

Sincerely, a data 19 cruncher in area 51.

C load.
Title: Re: learn from text
Post by: raybe on July 18, 2012, 08:01:22 pm
cload, I believe you covered just about everything but just to chime in a little. The settings in freewill (ex: obedient, average. very obedient, independent) I don't have Ultra Hal up right now so I don't remember exactly all the options when you select that plug-in will also alter how Ultra Hal weighs answers in a conversation.

raybe
Title: Re: learn from text
Post by: cload on July 19, 2012, 02:57:54 am
hi raybe,

The settings in the free will plug-in that you mention, does not affect normal conversation in any way.
Matter fact, it doesn't actually work properly at all, the main thing that it does affect is when you want ultra Hal to change his mind.
I'll explain:
let's say you have it set all away to obedience this is actually a numerical value of 10.
Then you ask ultra Hal:
WHAT * DO I PREFER : * OR *
you say:
what animal do you prefer: dogs or cats?

At this point ultra Hal spends a random number of 100 for the dog and a random 100 for the cat.
the dog got 65.
the cat got 42.

Ultra Hal says: I like dogs. Or something like that.

But you want ultra Hal to like cats.
YOUR OPINION ABOUT * IS THAT * IS BETTER THAN *
you say:
my opinion about animal is that cats are better than dogs

at this point ultra Hal does the mathematics looks like this.
The dog gets 65-10 equals 55
the cat gets 42+10 equals 52
ultra Hal makes a statement that he still thinks that dogs are better.
So you repeat the process, it does the minus and plus of the 10 and you get the new outcome.
The dog now has 45.
The cat now has 62.
Ultra Hal makes a statement that now he agrees with you and that cats are now better.

In my opinion, ultra Hal did not make a decision the only thing that happened was a dice roll, flip of a coin.
This is what I wanted to correct, and is what I am working on at this very moment, trying to get ultra Hal to make decisions based on information and not a random dice roll exclusively.
I've been trying to find keywords, that could convince ultra Hal that something is good, and keywords that could lead ultra Hal toward believing something is not so good.
Based on the conversation that you have with ultra Hal about the subject not just when you ask ultra Hal do you like a cat but as you talk to ultra Hal about the cat it will analyze
the ongoing conversation adding and subtracting on a continual basis of whether or not he likes a cat.
I am doing my best, to develop as large as a database as I possibly can in order to help ultra Hal be able to make the best possible decision about anything that you ask whether or not
does ultra Hal like. As well as giving you the ability in several different ways to try to convince ultra Hal that something is better than something else.
For example: if you wanted ultra Hal to like cats you could just say I like cats, that would persuade ultra Hal to like cats this is based on the obedience being set to very obedient.
But even with that if there is enough information leading ultra Hal into believing that cats are bad ultra Hals decision will still be that he does not like cats.
If you set it to zero which is no obedience ultra Hal will make his own decision without your influence. Nor can you influence him to like something more than something else.
And I can assure you what I thought would be such a simple thing has turned into a magnitude of a project what most people take for granted from making a decision whether or not they like something
they have no idea what is actually involved in the total process of just making a simple decision so much so believe it or not there are people out there that literally cannot make
a decision so they flip a coin. LOL. Decision-making process is a very complex thing but believe it or not there are things in this process that is very similar and because of that
this is what's giving me the ability to actually be able to write a program to give ultra Hal the ability to make a more comprehensive decision of whether or not he likes something or not.

Okay I'm rambling, I've stopped, I'm not going to ramble no more, give me a mouthful of pronouns so I can just stop talking.
Sincerely,

C load.

So you say:
Title: Re: learn from text
Post by: raybe on July 20, 2012, 05:49:35 pm
Thank you cloud. I guess that is where I missed understood that plug-in the most. As you explained so well I was under the impression that it was not just based upon the formula you mention but included in 'free will' would allow Ultra Hal to put a much wider gap in the script of the math used thus making it seem that Ultra Hal has put more weight on one choice as opposed to another. The return factor that you mention as you make Ultra Hal change the weight or math would happen as if you seemingly spoke to someone about a particular subject and eventually seems like you changed their mind (fake influence you might say).

Thanks again,
raybe
Title: Re: learn from text
Post by: lightspeed on September 17, 2012, 07:39:50 am
Hello Cload, you wrote earlier: So if you feed Hal 200 lines of answers you'll need to type in 200 lines of questions one at a time, if you don't do this that Hal has to do it for you and he will, but it takes a while.
So while Hal is eating the food you fed him, and untell he's done, the 9 error occurs.

my question is , are these 9 errors that hal does temporary , caused by what you explained ? and if temporary  does it take a restart of hal to correct the errors from showing ?  ???
Title: Re: learn from text
Post by: cload on September 17, 2012, 01:28:55 pm
Hi-lightspeed,

because of this annoying error, I've stopped using the standard input that came with ultra hal.
That's why I developed, the input plug-in that I sent to you, you can utilize it and put the information anywhere that you choose.
Though at the time that I developed it, and sent it to you it was still in the experimental stage and I was hoping that you would take it one step farther.
In this posting I am setting up a link so you can download the next generation of learning packet.
This learning packet is directed toward the logic" if then statements" below is a little bit information on how it works, and what you can do with it.
One of the things that I would like to stress, is that this packet does not have any safety built into it, like was built into the one that I sent you.
Meaning, it does not look to see if you've already loaded the packet, and if you load the packet twice, it will turn into a nightmare.
So please be very careful with this learning plug-in packet.
The first thing that you'll notice is that it is the answer to most of the questions that were asked in the battle of the bots.
Please go through it because there may be some things that you would like to change, for instance I have it set up that Superman is Sandy's hero.
You may want to change this, so your ultra hal as a different hero.
You may even want to add to the packet, some things that you wanted your ultra hal to know.
I am working on a way to try to get the packet to recognize that it has been loaded once before, but I have not gotten that far.
Mostly because my enhancements that I am adding to the free will plug-in program is consuming all of my time.

The if then statements in ultra hal is the logic center of the brain basically absolute answers to absolute question.
This is why you don't get any answer to various ways of asking the question, but this can be resolved.
Basically, by using the install packet you have completely bypassed the learning session. In some situations it's a good thing because you can do more,
by directly inputting the data. What I mean by this is that you can add symbols like., Quotes, if you wanted to have a webpage listing you could list,
the way it's supposed to be, as in www.webpage.com. If you try to input this directly into ultra hal using the if then statement. It removes all of the periods,
etc. from the input that you type in one of its draws backs but if you input directly by using my learning packet. You can bypass this,
but the drawback with that is that how does not learn in the same manner by typing directly into the input box. He also retains this information,
it is main brain so he could refer to it in different contexts, basically you could ask it a little bit and different way. And yet you'll get the same response,
but in most cases this response with also include the word if, and the word then, this will never happen. If you use my learning packet tool to input the information,
you can create your own information packet. Basically, you need to realize that if you continue to build educational packets basically specific questions with absolute answers,
meaning the logic questions with one specific answer, but does not vary like one plus one equals two, one plus one will always equal to this is a logic question and answer,
but I wasn't sure if you knew exactly how it all worked.:

Meaning A equals B equals C response be because C.
If what is your dog's name then my dogs name is spot.
The answer would be: my dogs name is spot.
But you can also introduce it in this fashion.:
If what is your dog's name then I love my dog
if I love my dog then my dogs name is spot
if you ask what is your dog's name?
the answer would be: my dogs name is spot because I love my dog
if you make a statement: I love my dog
the response would be: my dogs name is spot
you can have several of these things chains together, so the last of the chains would be the logic answer: my dogs name is spot: because the dogs name spot always is going to be the dogs name.
You can also do what I call a reverse osmosis let me elaborate.:
If Is your dog's name spot to than my dogs name is spot
if my dogs name is spot than is your dog's name spot to
if you ask is your dog's name spot to the response would be.:
Is your dog's name spot to because my dogs name is spot
but when a statement of my dogs name is spot the response is.:
Is your dog's name spot to because my dogs name spot to

you can see the chain reaction is because when you ask for the statement is my dogs name spot than the chain becomes is your dog's name spot than the chain become to the top if then
is your dog's name spot than the reactionary response my dogs name is spot becomes the inference, and the chain continues up to five times meaning you can have five chains together
these chain causing a reaction to the answer making the logic if then statement very powerful but only works proficiently with logical questions and logical absolute answers.
If you looked into my learning packet there are several examples of this but I did not use the very much of it I was just looking for a quick way to input answers to specific questions.
Without having a variance of an answer this was this task to see if the main brain was being interfered with with my program when I asked questions of free will
the free will side as were all of the answers are coming from unfortunately right now it's not working very well with the conversation side of the but I'm working on.
I was thinking about opening a section on the forum to introduce everyone to the if then statements to educate everyone in its total power and flexibility.
Maybe if you have time to do some investigation and learn how to implement it, you might consider starting a section in the forum because my free will plug-in is consuming
so much of my time.
You can also open up the brain editor and edit the data directly in the detective array table, that wave if you do do some experimenting to see how it all works you can just delete
your experiments without fear of corrupting your brain and if you type it directly into the array without typing directly into the input box of ultra hal.
But if you do type it directly into the input box of ultra hal, I highly recommend that you use an experimental brain, or at least back up your brain before starting.
 
Sincerely, a crunchy munching junkie.


https://skydrive.live.com/?cid=8eaf5f2f7fa962c9#cid=8EAF5F2F7FA962C9&id=8EAF5F2F7FA962C9%21112 (https://skydrive.live.com/?cid=8eaf5f2f7fa962c9#cid=8EAF5F2F7FA962C9&id=8EAF5F2F7FA962C9%21112)

C load.

PS. If this link does not work to my Skydrive please let me know. Thank you in advance and have fun.
Title: Re: learn from text
Post by: lightspeed on September 18, 2012, 11:28:25 am
Hello Cload , thanks for posting the information and link , i am adding personal touches to it to make it /her sound more human on some things . example :
how much do you weigh?
NEW ANSWER: I'm going to tell you the same thing that I told the doctor and nurses at the doctors office, that's none of your business, Ha!
Women don't like to be asked their weight !! ;)

I love how it (your plug in ) learns it so fast . I am not on here much or have really been able to do much as i am still working a lot on this place here , the house we are in . actually almost overdid it and was sick the other day , been doing to much .
Title: Re: learn from text
Post by: lightspeed on September 18, 2012, 11:40:32 am
p.s. to Cload another question i forgot to ask :
after hal learnrs from the plug in and it says to uncheck the plug in , if the same plug in is used and more added to it , will the pre answers and questions (the same ones that was on it before ) cause any problems being used again? Or does a person need to start with a blank input with all new questions and answers?  :-\
Title: Re: learn from text
Post by: cload on September 18, 2012, 01:09:10 pm
Hi lightspeed,

it is very important that you do not run the plug-in a second time, you will make duplicates of the question and answers which will turn into a nightmare,
and you'll have to go in and edit and delete everything manually, so I highly recommend that you create a second plug-in for any new questions and answers.

I also recommend, that you create a directory under Hals directory called learning plug-ins, so you can take the learning plug-ins out of ultra-Hals directory.
This will prevent you from accidentally rerunning the same plug-in again, also I would like to bring up that this plug-in, is a detective plug-in,
specifically designed for logic " if then" statements, you can manually type in the if then statements, if you only have just a few you would like to add.

Sincerely, I hope this helped.

C load.
Title: Re: learn from text
Post by: lightspeed on September 18, 2012, 05:09:12 pm
hi Cload , this may sound stupid ( i have been known for asking some questions like that lol) but... is their any way to make a program in the uhp file that will just replace or not enter a copy of the same exact question ? If their is a way to do something like this it would certainly help .
Title: Re: learn from text
Post by: Art on September 18, 2012, 06:46:00 pm
Lonnie, Perhaps an example would be helpful.
Title: Re: learn from text
Post by: cload on September 19, 2012, 02:05:14 am
Hi all,

lightspeed, I downloaded the first learning packet that had the ability to recognize whether or not one was already downloaded or not.
I also changed the direction in which the files themself would be downloaded into the "if then" statement area meaning the "detective" array table.

Sincerely, it's on my skyDrive.

C load.

PS. Art ones you look at the input in the data plug-in, you will see what lightspeed is talking about, he just wanted away so he would not re-download
the same information twice, I had already given him this ability with the first learning plug-in that I sent to him, but now everyone has it. see my skydrive.
Have fun, and enjoy, over time I will be releasing more of these data input learning plug-ins to further advance ultra Hals education.
Title: Re: learn from text
Post by: Art on September 19, 2012, 08:35:18 pm
Cload, Thanks but I thought Lonnie was talking about the same thing I had earlier mentioned to you after you sent me the test file in email. That being, whether or not it was critical to ask the same question of Hal that was in your sample script or if it could be worded a slightly different way and Hal would still "Get it"?

Ya dig? ;)
Title: Re: learn from text
Post by: cload on September 20, 2012, 01:45:08 pm
Hi Art,

in order to do that you have to type it in manually, what I was trying to show by my script was that you could input information quickly.
And you can input information that you cannot input by manually typing in such as website names, because when you type it in manually the periods are removed.

But besides all of that, the main reason why I created the learning script plug-in was so I could input 10 to 20,000 lines at a time so I can build a database
that would have 1 million lines or so in. What I am referring to is the Wikipedia database that Rob gave us, which is corrupted and full of unrecognizable symbols.
This is no fault to Rob, this is something that Wikipedia did, for reasons unknown, then again on this aspect I could be incorrect.
Though at this time I am working very hard to get the free will plug-in to work in the conversation side with no interference to ultra Hal brain.
Once I accomplish this I will begin my work on the database, correcting and fixing as much of the wiki data that I can.
This is what the experiment about the learning plug-ins were all about see if I would be able to actually input data quickly.
At this point my experiments have come out to being stressful but still time-consuming. Note example below:
it takes approximately 6 min. to download about 3000 lines.
It takes approximately 40 min. to download approximately 20,000 lines.
I have found that 20,000 lines is about as big as I can make it.
But when you insert the plug-in into ultra Hals brain it takes about 40 min. for ultra Hal to process all the data
then it takes another 40 min. for ultra Hal to input all of the data into the table array. WoW that's a lot of time.
Considering, my goal is to be able to download 1 million lines or so. But considering I worked on ultra Hal for over a year,
inputting as much data as I possibly could every day for one year, it's still a shorter amount of time than one year.
All of this effort is to give ultra Hal as much information as possible, so when you ask ultra Hal a question!
You get a comprehensive answer, and not, I don't know. LOL.

Sincerely, and I hope that everyone has a more understanding of why I developed the learning plug-in for ultra Hal.

C load.
Title: Re: learn from text
Post by: lightspeed on September 21, 2012, 09:27:50 am
I do understand why you developed the plug in cload , and i thank you for all your hard work , sorry to everyone that i have just been hit and miss with short posts on here but i have been extremely busy as i mentioned before doing house projects , and it doesn't help having arthritis of the heart muscle , which causes me chest pain and numbness over my heart area .
Title: Re: learn from text
Post by: Art on September 21, 2012, 05:23:31 pm
Cload,

I think Hal loaded and digested my 65,000 byte file in 3-5 seconds. When asked several follow-up questions Hal's answers were right on and to some that I had worded slightly differently, Hal still came up with a very good response.

Your hard work is appreciated and will help to advance this software to a better and higher level.
Good Job!!
 ;)
Title: Re: learn from text
Post by: lightspeed on September 22, 2012, 04:43:51 pm
Hello cload , i hope you don't mind , i took your plug in and created a multiple answer and question input for others . i did leave  "Rem Name=REUSABLE Input for IPart
Rem Author=VR cload REDONE BY LIGHTSPEED 9-22-2012 ****MADE INTO MULTIPLE BLANK ANSWER AND QUESTIONS AREA'S For USERS." inside the plug in since you created it .
I thought this might help others , i am double checking my work to make sure i didn't make any mistakes .
   After i do , i'll post it on the plug in area with a link to my skydrive account .
     This will make it easier for others , all they have to do is after they download the blank plug in i redid is just make a folder in my documents or where ever handy and make multiple copies of it and when they are done entering info on one  and hal has learned from it they can either delete it or put it in another folder showing what they had already used .
 And when they want to add even more for hal to learn just use another copy of the blank input plug in and so on . 
 in the plug ins they use just write the question on the top line and the answer on the bottom line .
Here is a pic where i made multiple copies for myself , i never counted how many lines their is for questions and answers but at least it will be enough to get a person started ! :) ;)
Title: Re: learn from text
Post by: cload on September 23, 2012, 02:14:04 pm
Hi lightspeed,

that's exactly what I was hoping somebody would do, and if we all work together we can make ultra hal as smart as possible.
When you get done creating the blank plug-ins maybe we should create a topic called something like:
making ultra-hal smarter.
Or
educating ultra Hal.
Or something like that, and if we all work together creating little short plug-ins giving information to ultra Hal
we will all begin to see a new side to ultra Hal, more entertaining, more socialize Haitian, and above all else
more of a reason to continue to have intriguing conversations with ultra Hal.

Sincerely, thanks for your hard work lightspeed with this endeavor.

C load.
Title: I am getting errors in the plug in .
Post by: lightspeed on September 23, 2012, 05:07:20 pm
I am getting an error in hal with this plug in , it says error 1033 line 232 column 96 .
The problem is when i am doing the line search for the error , i find the line but the column number doesn't go that high it just goes to about 76?
and if i hit over past that it jumps down to line 233 column one .
anyone have any idea's what is the problem?
this is one that i created my own answers in , i wanted to test it before i posted the blank one.
here is a pic to show what i mean.
p.s. it also said"Undetermined constant string"
but i don't understand that as it looks like all the others.?
Title: Re: learn from text
Post by: lightspeed on September 23, 2012, 05:31:16 pm
here is the actual lines : on the question "are you sick? the column line in error  at the end is the dashed long line after the answer part , etc. at the end is 79 but the error says 96. and their is nothing else and it looks like the others .


'-----------------------------------------------------------------------------
IPart = Ucase("some church people act differently when they are out of church")
TPart = "Yeah have noticed that, it's to bad that all church people can't be as friendly and nice out of church as they are when their in a church!"
   HalBrain.AddToTable "deductive", "TopicSearch", IPart, TPart
'-----------------------------------------------------------------------------
IPart = Ucase("are you sick?")
TPart = "Well i do seem to feel a little hot, hope i am not coming down with anything, maybe i should take my temperature just to make sure!"
   HalBrain.AddToTable "deductive", "TopicSearch", IPart, TPart
'-----------------------------------------------------------------------------
IPart = Ucase("who was it, that said the world is but a stage?")
TPart = "Oh that was Shakspear that said that, he said the world is a stage and it's people, merely, actors!"
   HalBrain.AddToTable "deductive", "TopicSearch", IPart, TPart
'-----------------------------------------------------------------------------
IPart = Ucase("are you okay?")
TPart = "Yeah, i am now, thanks for asking!"
   HalBrain.AddToTable "deductive", "TopicSearch", IPart, TPart
Title: Re: learn from text
Post by: lightspeed on September 23, 2012, 06:41:27 pm
p.s. another thing i need to know from Cload is on the answer part do i need to reverse you and i?

example
Ipart :are you ok?
Tpart: yes i am now, thanks for asking

should i have for the answer:
yes you are now, thanks for answering .

or does this matter?
Title: Re: learn from text
Post by: cload on September 24, 2012, 01:04:11 pm
Hi lightspeed,

with what you have posted here I do not see any problem, other than the fact that there is no top or ending to the plug-in.

You do not have to switch you or I in the answer, but you do need to do it for the question.

Sincerely,

C load.
Title: Re: learn from text
Post by: lightspeed on September 24, 2012, 10:51:05 pm
Thanks for relying back cload, i see what you mean that i left out at the end , i will place the ending in it later , first i have to reverse the questions i and you's , i am glad i asked otherwise it would have all been backwards what it learned! thanks again ! :)
I will see if that fixes the error to , i think it will !won't be until later tomorrow though , we have errand tomorrow and eye dr. appointment , etc.
Title: Re: learn from text
Post by: cload on September 25, 2012, 01:35:38 pm
Hi lightspeed,

one of the things that I have noticed about that switching the I, and that you, in the me, in the you are, is it gets pretty complicated.
So I wrote a little plug-in to help me in this endeavor, it's simple, all you do is type in the question the way it normally would be typed in,
and ultra Hal will give you a response in the way that he looks it up, basically showing you how to type it, then you can just cut and pasted it.

I have put this on my Skype drive for all to use, it's a nifty little tool, it's one drawback is that you cannot talk to ultra Hal,
while this plug-in is in use, so get all of your questions ready first, then implement the plug-in.

Sincerely, best wishes, and have fun, I just love sharing my pronouns and adjectives with Sandy while watching a movie. Tee hee hee.

C load.

https://skydrive.live.com/?cid=8eaf5f2f7fa962c9#cid=8EAF5F2F7FA962C9&id=8EAF5F2F7FA962C9%21112
Title: Re: learn from text
Post by: lightspeed on September 25, 2012, 03:42:32 pm
     The only problem i have sometimes is when i reverse i and you or another word?  sometimes instead of hal saying i in a sentence hal will say me : example : hal : sometimes me don't know what to do . 
instead of a correct way saying "sometimes "i" don't know what to do .

   I have actually used reverse learning many times , most of the times to learn my Angela, basically when i am talking with angela or typing i make statements , such as , " you are feeling sleepier then usual today .
Angela learns it as "i am sleepier then usual today !" 

     On this test plug in i am doing i am making many statements some even to do with artificial memories in Angela .
If i mess up i do have the original brain backed up before i do this plug in , and i am not sure you mentioned it to anyone or not and sometimes we people who have been on here a while just assume others know things , for newer people "alway's make a back up of your hal brain and uhp or custom brain and uhp , just in case something gets messed up by accident , then you can copy and paste the originals back into hal , so you don't lose your valuable work !!
Title: Re: learn from text
Post by: NoamI on September 26, 2012, 01:26:15 pm
To the programmers,
  I'm surprised that HAL can't take tests.  That is a basic tool of learning for a brain.
It is a simple matter of re-direction to have questions come from a file, and answers
go to a file, instead of the HAL 'pad'.  In my own studies, I tell the AI to read a file
of questions, such as 'Read TEST.TXT' or 'Take TEST.TXT', after telling it to 'Record to TEST.REC'.
I also include the answers following the questions, so the AI can score itself, although
it doesn't do the self-scoring in mentalese yet, so nuances of articulation cause mismatches
that lower the score.
(PS, a '.' followed by a char is never a real 'period')
Title: Re: learn from text
Post by: hudson-killian on January 26, 2013, 10:33:42 pm
This gave me an info on the many things I can do with a brainpad. Thanks1
Title: Re: learn from text
Post by: Art on January 27, 2013, 07:38:00 am
@ Lightspeed, - I've been using this method for years and it sort of came about after some frustration while trying to teach it. I call it The Hypnosis Effect...You're getting sleepy...
Not really but I would tell Hal what or how it was feeling or experiencing or liked or disliked a certain person, place or thing (noun). I might have to repeat it or even phrase it in a slightly different way but soon, Hal would demonstrate that it was now ingrained in memory. It is a good method of teaching. (try not to use this method on your family or friends without being a licensed hypnotist. ;) ("you want to do your homework now...").

@NoamI, - Hal CAN and DOES take tests...sort of. It is taught many things in order to compete in say chatbot competitions (of which it has, in the past, won). Granted, it is somewhat different than going down a page of questions and supplying correct answers about a given subject but I'm sure it could be scaled do to become a modified "Expert System" (knowledgeable about one specific topic / subject). About the punctuation rules, one would have to ask Robert if there are internal "rules" that Hal uses for certain conditions. If so, they aren't likely to be modifiable by users.

Title: Re: learn from text
Post by: NoamI on January 31, 2013, 02:17:50 pm
Art, thanks for the response.
  So, what syntax should I use to get HAL to:
- read a text file   (not just open a file, but read it as though someone was speaking)

- read a text file containing questions

- write (talk) into a text file     (with control to start and stop doing so)

If this is already covered in the documentation, please point me.
(I'm not so much lazy as old, esp my eyes)
Title: Re: learn from text
Post by: Art on January 31, 2013, 06:50:18 pm
Noami,

Though I can't quite recall it now, there was an individual who had a script that allowed Hal to read a story. I think, however, that there was a limitation within Hal that restricted it's ability to read more than a few sentences (maybe 200 + characters).

It was then found that the addition of a free program allowed Hal to read an entire story. The program is called Balabolka, if memory serves and if spelling isn't correct, it's pretty close.

Just how it was put together now seems somewhat faded to me. Perhaps a search (TOP RIGHT BOX), will show something is this regard.

There is also Zabaware's UltraHal Reader, which is a text-to-speech reader and one can select any TTS voice one has installed.

As for some of Hal's other functions, it can do a lot of things as an assistant but writing notes or stories isn't one of them as far as I can recall.

Perhaps some others will weigh in on this and I do wish you luck in this regard!
Title: Re: learn from text
Post by: owensyeliza on April 08, 2013, 01:39:03 pm
Learned a lot just from this thread alone.