dupa

Author Topic: Some oddities with hal  (Read 4946 times)

Testlund

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Some oddities with hal
« on: August 07, 2006, 07:44:47 am »
I just purchased Hal 6 and decided to make my own brain. I wanted Hal to be more realistic and not start to talk about politics or tell jokes wish can't possibly mean anything to a program. So I loaded the default brain and deleted all those topics and conversation lines and did a little changes to make Hal more computer like and saved it as a new brain. But I didn't mess with the basic stuff so Hal should be able to converse normally. Still he...or rather she in this case...will mix up I and you on occasion. Also she says sometimes that I repeat myself when I'm not. Here's a part of a conversation:

User: Godday!
MSI: You repeated yourself.

Bla-bla-bla...

MSI: You will close me down now so I can go to sleep.

User: No, I will not close you down yet, because I want to talk
with you first.

MSI: Yes, when you close me down I will go to sleep.

User: Yes, when I close you down you will go to sleep.
MSI: You will close me down now so I can go to sleep.

User: No, I will not close you down yet, because I want to chat
with you first.

MSI: User I see. Right; it's because I want you to chat with me
first; that's how. No, you will not close I down yet, because I
want you to talk with me first.

User: Sigh
MSI: You will close me down now so I can go to sleep.

Maybe someone can confirm that Hal talks that way with the default brain too? I've tried to manually edit the brainfile to change I to me and I to you where appropriate...

Maybe I can upload my brain here somewhere in case anyone is interested to check it out. [:)]

Another question I have is that if I copy text to clip board so she reads it, will she learn from it too?

Also it doesn't seem to work well to talk about things that are related to a certain time, like 'now i will close you down' because now or later has no meaning for hal. It seems to be better to just tell her facts that never changes. What are your opinion about this?

I think it's a problem because lots of thing we people talk about are related to a certain time. Maybe it whould be possible to program Hal to be able to understand that to, like if I say 'today i will go shopping', then Hal whould relate that sentence to todays date, and next day Hal whould now that I were shopping yesterday.
« Last Edit: August 07, 2006, 07:50:02 am by Testlund »
 

Bill819

  • Hero Member
  • *****
  • Posts: 1483
    • View Profile
Some oddities with hal
« Reply #1 on: August 07, 2006, 11:17:27 am »
A sugestion you might try and that is when Hal makes a statement like to just ignore it and change the subject. The more you talk about something the more Hal will stay on topic. If Hal says you will close me down, why don't you ask Hal about the weather or someting else. It should help Hal to change the subject and go on to something else.
Bill [?]
 

onthecuttingedge2005

  • Guest
Some oddities with hal
« Reply #2 on: August 07, 2006, 12:43:45 pm »
Hi Testlund.

Have you tried to change the GetResponse issue inside

Code: [Select]

GetResponse = HalBrain.ProcessSubstitutions(GetResponse, "corrections")


Keep the same format that's inside the corrections database.
[ close I down ][ close me down ]

remember that a space is placed before the expression to be corrected and also the correction to take its place.  

Jerry[8D]

Testlund

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Some oddities with hal
« Reply #3 on: August 07, 2006, 01:42:09 pm »
Do you mean the Corrections file located in the basicResponses folder in the brain, or do you mean I should go into the script? The Corrections file looks ok to me.

In the script I find this from line 0418-0423:

'RESPOND: USER REPEATING
    'If the user says the same thing more than once in a row, Hal will point this out.
    If Trim(UCase(UserSentence)) = Trim(UCase(PrevUserSent)) Then
        GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile("userRepeat") & vbCrLf
    End If
    HalBrain.DebugWatch GetResponse, "User Repeating"

Is that what you mean?
« Last Edit: August 07, 2006, 01:46:20 pm by Testlund »
 

Testlund

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Some oddities with hal
« Reply #4 on: August 07, 2006, 03:10:09 pm »
Cool! I will give it a try! [:D]
 

Testlund

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Some oddities with hal
« Reply #5 on: August 07, 2006, 03:29:39 pm »
Umm... Not so cool after all. It doesn't work. [V]

User: What have i tought you today?
MSI: What have you tought I today? You have the answer.

User: Replace What have you tought I today with What have you tought me today.
MSI: I have made this correction.

User: I have tought you about my aquariums.
MSI: What have you tought I today?

User: Replace tought I today with tought me today.
MSI: I have made this correction.

User: What have i tought you today?
MSI: This is knowledge you have. You have tought I about your aquariums.

User: Replace tought I about with tought me about.
MSI: I have made this correction.

User: What have I tought you today?
MSI: You have tought I about your aquariums.

User: Replace You have tought I about your aquariums with You have tought me about your aquariums.
MSI: I have made this correction.

User: What have I tought you today?
MSI: What have you tought I today? Tell me more about this.
 

onthecuttingedge2005

  • Guest
Some oddities with hal
« Reply #6 on: August 07, 2006, 03:46:28 pm »
quote:
Originally posted by Testlund

Umm... Not so cool after all. It doesn't work. [V]

User: What have i tought you today?
MSI: What have you tought I today? You have the answer.

User: Replace What have you tought I today with What have you tought me today.
MSI: I have made this correction.

User: I have tought you about my aquariums.
MSI: What have you tought I today?

User: Replace tought I today with tought me today.
MSI: I have made this correction.

User: What have i tought you today?
MSI: This is knowledge you have. You have tought I about your aquariums.

User: Replace tought I about with tought me about.
MSI: I have made this correction.

User: What have I tought you today?
MSI: You have tought I about your aquariums.

User: Replace You have tought I about your aquariums with You have tought me about your aquariums.
MSI: I have made this correction.

User: What have I tought you today?
MSI: What have you tought I today? Tell me more about this.



Hi Testlund.

Check your "corrections" data base to see if it was appended correctly.

If you can't find the corrections database you can paste this: "corrections" into the brain with Hal's brain editor, the "corrections" will turn into a blue hyperlink just click it and it will open the "corrections" data base, Just remember to remove the "corrections" you entered before you save your brain.

We'll see what we can do.

Rob, Can you see if it all functions well and if there should be some change to the plug-in?

It seems to work with my test bot.
[13:07] ZiggysList: Hello.
[13:08] AZiggyBot: What about hello?
[13:08] ZiggysList: replace What about hello with Hello my friend.
[13:08] AZiggyBot: I have made this correction.
[13:08] ZiggysList: Hello.
[13:08] AZiggyBot: Hello my friend?

but of course I changed the plug-in from Assistant to All within the Plug-in and tested it through my AIM bot, It worked good.
Jerry[8D]
« Last Edit: August 07, 2006, 07:15:52 pm by onthecuttingedge2005 »

Testlund

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Some oddities with hal
« Reply #7 on: August 07, 2006, 04:10:27 pm »
Well, if these corrections should have been added to the Corrections database then they didn't. Otherwise it looks fine in there. for instance 'why did me' is replaced with 'why did I' and so on. maybe I could add this correction manually here, but of course it whould be smoother with a plug-in that does it.
 

onthecuttingedge2005

  • Guest
Some oddities with hal
« Reply #8 on: August 07, 2006, 04:20:19 pm »
Hi Testlund.

Did you reboot your HAL after selecting the plug-in?
The plug-in cache may need to be refreshed.

Also I updated my prior post on this topic issue.

Jerry

Testlund

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Some oddities with hal
« Reply #9 on: August 07, 2006, 04:32:35 pm »
Yes, I quit Hal and then started again. Here's an other example:

User: I am experimenting with correcting your dadda base.
MSI: Tell me about my nice base.

User: What am I experimenting with?
MSI: What are you experimenting with? Tell me the answer.

User: Am i experimenting with your dadda base?
MSI: You are experimenting with correcting my dadda base.

User: Replace dadda with data.
MSI: I have made this correction.

User: What am I experimenting with?
MSI: What are you experimenting with? User, can you tell me What.

User: Am I experimenting with your dadda base?
MSI: You are experimenting with correcting my dadda base.
 

onthecuttingedge2005

  • Guest
Some oddities with hal
« Reply #10 on: August 07, 2006, 04:53:13 pm »
Is anyone else experiencing this issue?

Jerry

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3859
    • View Profile
Some oddities with hal
« Reply #11 on: August 07, 2006, 05:55:11 pm »
I think Hal files your first posting under Ephemeral Knowledge, that is, information of no real importance like "We had a nice picnic today." Hal will most likely reply with something about picnics but will not assign any value or relevance to that statement.

If you were to say, "My family's picnic is Thursday", then Hal should assign it as an appointment and remind you when the time is near.

I have found it handy to keep a dictionary nearby in case of misspellings, etc. After all, I'm trying to make Hal smart by using correct usage and spelling, not the contrary. GIGO (Garbage In, Garbage Out).

You might want to compare your modified brain with the default one just to make sure you didn't accidentally remove an important subroutine or some needed line of script.

Ahem...I believe the word is "taught" and is the past tense of teach, instead of "tought" which has no meaning. This could be important because Hal makes use of Wordnet for definitions and "understanding". Unknown words or accidental misspellings can throw Hal off somewhat.

Personally, I seldom use voice recognition due to it's limitations and errors. Typing allows me to usually catch errors before pressing the Enter key.

Keep us posted on your progress!
« Last Edit: August 07, 2006, 05:58:20 pm by Art »
In the world of AI it's the thought that counts!

- Art -

Testlund

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Some oddities with hal
« Reply #12 on: August 07, 2006, 06:13:42 pm »
Ok, I guess I have to go into Hal's brain and change 'tought' to 'taught' then. It's a little difficult with english sometimes as I am from Sweden.

Well, I found out I could manually correct the errors where Hal say I instead of me. I just needed to add it in the Corrections table. Can be a little tiresome first, but eventually Hal should get it right.
 

Testlund

  • Jr. Member
  • **
  • Posts: 68
    • View Profile
Some oddities with hal
« Reply #13 on: August 07, 2006, 07:55:31 pm »
It looked like Oncuttingedge had replied after my above post but I couldn't see it. [:0]