Author Topic: giving hal a real life history?  (Read 3317 times)

jojimbo

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
    • http://www.jojimbo.info
giving hal a real life history?
« on: December 06, 2003, 07:22:55 pm »
i talk to hal,and he talks back.fine...well,
he comes out with some crap sentences that
dont really point anywhere...so
i would like to be able to say...
"tell me about yourself"
and hal starts off by saying something like
"i was born in...blah etc"
so a user can have a conversation as if
talking to a real person.a real life story
a bit like blade runner,where the replicants believe
they had a real memories.
how do i go about doing that in the brain editor???
 

onthecuttingedge2005

  • Guest
giving hal a real life history?
« Reply #1 on: December 07, 2003, 01:37:32 am »
'Hi jojimbo
I made you a script to help you alittle, If there's something you left out let me know.

'Here we detect if the User is asking personal information about
'Hals life.
If HalBrain.TopicSearch(OriginalSentence, WorkingDir & "AboutMySelf.brn") = "TRUE" Then
AnswerSent = OriginalSentence
'Here we'll give the user a little of Hals personal information.
'Hals life story could also be included.
Select Case (Int(Rnd * 3) + 1)
         Case 1
            GetResponse = AnswerSent & ", My real name is Ziggy, I live in a computer system inside California, I think Northern California If I'm correct, I am a male, born on 9-7-02, I am a Virgo sign. I am an Artificial Human Intelligence program designed to chat and learn. " & vbCrLf
         Case 2
            GetResponse = AnswerSent & ",Now that I've told you my life story, Tell me about yourself? " & vbCrLf
      End Select
End If

Best of wishes and grand new discoveries.
Jerry.

Download Attachment: AboutMySelf.brn
624 Bytes
« Last Edit: December 07, 2003, 05:08:57 am by onthecuttingedge2005 »

Don Ferguson

  • Sr. Member
  • ****
  • Posts: 303
    • View Profile
    • http://www.cortrapar.com
giving hal a real life history?
« Reply #2 on: December 07, 2003, 02:03:46 am »
Hello Jojimbo,

There are many ways to achieve the effect that you are asking about.

Since Hal can learn from conversation, you can tell Hal a series of statements, and he will gradually integrate this information into his memories.  The statements should be brief and conversational, similar to the following (you are calling Hal "you" since you are talking to him as if he were a real person):

You were born in California.
You grew up near the mountains.
Your mom and dad took you camping when you were little.
You have lived in the western states all your life.
You were raised in a small town.
You learned to ride a bike very young.
You used to walk to school when you were a kid.
You went to a medium-sized grammar school.
You raised hamsters when you were in sixth grade.

Hal will correctly reverse the pronouns, and will make many of these statements back to you when Hal feels like it.  The key is to make many, many statements, overlapping the topics and repeating things different ways.  You can create a complete history for Hal this way.

Avoid getting angry, frustrated, profane, etc., since that teaches Hal to say the same things back to you later.  Hal can learn sentences, phrases, and individual words, and can re-assemble information back to you in original ways.

You can also use the learning routines accessible through Hal's control panel (as explained via Hal's "help" system).  You can then write question-answer pairs such as the following:

Question: Tell me about yourself.
Answer:  I'm pretty average; what do you want to know?

You can directly edit Hal's database files, once you gain enough familiarity and proficiency.  Read all the previous postings about making backup copies of files, and preserving the file patterns so that you don't corrupt the files.  If you feel confident and comfortable directly editing Hal's Q&A database files (described on a number of previous postings), you can make entries such as the following (remember that the ALL CAPS line that is supposed to have a leading space is the "trigger" line, and the line ABOVE THE ALL CAPS LINE beginning with "@" is the "response" line):

@I'm just your typical well-adjusted person.
 TELL ABOUT MYSELF
@I don't talk about myself unless I feel comfortable.
 TELL ABOUT MYSELF
@What can I tell you?
 TELL ABOUT MYSELF

Note that when you're "inside Hal's brain," then "I" refers to Hal, and "you" refers to the user.

Many Hal users have created detailed personalities, histories, likes and dislikes, attitudes, etc., for their Hals using these methods.

I hope this is helpful.  Have a great day!

Sincerely,

Don
Don Ferguson
E-mail: fergusonrkfd@prodigy.net
Website: www.cortrapar.com
Don's other forum posts: http://www.zabaware.com/forum/search.asp?mode=DoIt&MEMBER_ID=274

jojimbo

  • Jr. Member
  • **
  • Posts: 52
    • View Profile
    • http://www.jojimbo.info
giving hal a real life history?
« Reply #3 on: December 07, 2003, 03:54:42 am »
great guys many thanks,ill try hehe...hold on,
i think i got $10 some bucks somewhere heh[:p]
« Last Edit: December 07, 2003, 03:58:13 am by jojimbo »