Zabaware Support Forums
Zabaware Forums => Programming using the Ultra Hal Brain Editor => Topic started by: Holllywood on March 13, 2007, 12:20:51 pm
-
I don't know what's gone wrong. But Hal's Correction Tutor is not functioning. It use to work. O.T.C maybe you could shed some light??? I have just resently installed a fresh copy of H 6. [?]
-
quote:
Originally posted by Holllywood
I don't know what's gone wrong. But Hal's Correction Tutor is not functioning. It use to work. O.T.C maybe you could shed some light??? I have just resently installed a fresh copy of H 6. [?]
Hi Holllywood.
Try redownloading it again, I have updated it, it seems to work better the way I have changed it, let me know of any issues.
Jerry[8D]
-
O.T.C I the updated corection tutor. Maybe It's what I'm asking her to correct.
H6: What is up because hey
H.Wood: Replace What is up With What's up?
H6: I have made corrections to that response.
When I reload Hal Use the say conversation to get that response... She stays with What is up response. Which does really fit as a response.
-
quote:
Originally posted by Holllywood
O.T.C I the updated corection tutor. Maybe It's what I'm asking her to correct.
H6: What is up because hey
H.Wood: Replace What is up With What's up?
H6: I have made corrections to that response.
When I reload Hal Use the say conversation to get that response... She stays with What is up response. Which does really fit as a response.
Hi Holllywood.
If you look inside the default brain you should see this default script near the bottem of the brain:
'PROCESS: REVERSE CERTAIN CONTRACTIONS AND OTHER SUBSTITUTIONS
'Standardizing on contractions can make Hal sound conversational.
'However, certain sentence constructions don't work well
'if expressed as contractions. For example:
'"I don't know where it is" becomes "I don't know where it's."
'For another example, "That's how he is" becomes "That's how he's."
'To solve these types of cases
'we attempt to modify certain contractions, words, and phrases
'at the end of this function, now that Hal's thinking is done.
GetResponse = HalBrain.HalFormat(GetResponse)
GetResponse = HalBrain.ProcessSubstitutions(GetResponse, "corrections")
I believe this code below is causing your contractions to be altered:
GetResponse = HalBrain.HalFormat(GetResponse)
It will change contractions like: What's up to what is up.
you could locate that line of code and comment it out to see if it solves your contraction issues like this:
'GetResponse = HalBrain.HalFormat(GetResponse)
do not remove the line just incase you don't like the results, it is easier to just comment it out so it doesn't function and the comment is easy to remove.
make sure to refresh your default brain and plugs after doing so.
Hope it helps
Jerry[8D]
-
Thanks my friend. I tried that with no joy. I also went into the brain editor and tried to add the correction in the Corrections table, but it would save in the table. [?]
-
quote:
Originally posted by Holllywood
Thanks my friend. I tried that with no joy. I also went into the brain editor and tried to add the correction in the Corrections table, but it would save in the table. [?]
Hi Holllywood.
Try redownloading it again, I have modified it once more.
tell me if it works.
Jerry[8D]
-
Well "O" Here's what's happening.
ME: Well hello there.
HAL:Good evening Hollywood. Any thing going on this evening? WHAT'S UP because hey. WHAT'S UP because hey.
ME:Replace WHAT'S UP because hey. '(trying to get to Cap>LwrCase)With What's up.
HAL gives Some response that does not address the correction (and Correction is not applied)
Then I tried to replace "because hey." With "with you" HAL tells me the reason is because hey.
Bottom line, I'm looking for...
ME: Well hello there.
HAL: What's up with you.
-
Hi Holllywood.
try downloading it again and see if it helps, this version of the correction tutor doesn't require you to restart, it should work on the fly once the plugin is selected.
also, all corrections are stored in a file called
C:\Program Files\Zabaware\Ultra Hal Assistant 6\Corrected.uhp
I chose to place the corrections in a .uhp file so that a user had two options, one of telling HAL to correct something through talking and the other is that a user can manually edit the Corrected.uhp even when AIM bot or Assistant is active, I stayed away from storing them in a table because the table has some limitations compared to using a file when AIM bot or Assistant is active.
I changed the Rem from post-process to pre-process to see if it corrects the capitals issue.
Jerry[8D]
-
Hi Jerry, I just re Dloaded and gave it a shot. Here's what we got...
Me: Well hello there.
HAL: Almost lunch time. Hungry? Wuzup because hey. Wuzup because hey.
ME: Replace Wuzup because hey With Hello whats up.
HAL: I have made this response correction. That's the explanation?
The explanation is, hey; it's so apparent Hollywood. Hi Hollywood!
Any lunch plans? The sky. The sky.
Even though HAL acknowledges the correction... She does not make the correction.
-
Hi Holllywood.
I updated it once again.
Could you post a good length of actual chat so I can study it.
do the corrections work at all?
I know the corrections are working fine with my bot and I will study conversations of my AIM bot and use the assistant to make corrections on the fly for my AIM bot which work pretty well.
Jerry[8D]
-
I've put in the update and here's what we get.
Hollywood: Yes thank you. I did keep that appointment.
Vanessa: No thanks are necessary, Hollywood; Don't give it another thought, Hollywood.
If we can keep plugging away in the face of disappointment, it helps.
Hollywood: Well hello there.
Vanessa: Good day Hollywood. The day is wearing on isn't it? What is up because hey.
What is up because hey.
Hollywood: Replace What is up because hey. With What's up with you
Vanessa: It's becausehey; there's the answer. Right; it's because hey; I can see it.
The sky. The sky.
Hollywood: Replace What is up because hey With What's up with you.
Vanessa: I have made this response correction. I have made this response correction.
Hollywood: Did you know that you are repeating yourself?
Vanessa: It's fun to pretend ignorance under certain circumstances.
Hollywood: Yes, I see what you mean.
Vanessa: Ah, yes, in that sense, I see what you mean.
ReSTARTED HAL HERE..
Hollywood: Well hello there.
Vanessa: Hi Hollywood. How's the day's work gone? What is up because hey. What is up
because hey.
As we see... No correction made and Hal repeats herself.
-
Hi Holllywood.
I have re-updated the corrections tutor.
redownload it and try again.
also look in your corrected.uhp and see if everything appears correct
there should be no blank lines like: "","" with nothing it it.
Jerry[8D]
-
Hi Jerry, I just got the latest again. I also chked for the blank lines. All look good. I ran the Tutor and here's what we got...
Hollywood: Well hello there.
Vanessa: Good evening Hollywood. Tis getting late, eh? What is up because hey.
What is up because hey.
Hollywood: Replace What is up because hey With What's up with you.
Vanessa: I have made this response correction. I wondered about that.
Because hey with what is up with me; there's the answer.
Hollywood: Yes I guess that is the answer.
Vanessa: Is yes you guess that going to often be the answer?
Hollywood: Oh, I don't
Vanessa: Oh well, people cope, don't they?
Hollywood: I would like to think that most people cope very well.
Vanessa: Most people like the color green. Of course! Hollywood I can't wait for you to
think that most people cope very well Of course! I can't wait for you to think that most
people cope very well; There's no time like the present.
Hollywood: You keep repeating yourself.
Vanessa: That's good, isn't it?
Hollywood: Not really. I understood you the first time.
Vanessa: Do you prefer to fly, or to drive? Everything was impossible until it was
done the first time.
HERE I RESTARTED HAL
Hollywood: Well hello there.
Vanessa: Hi Hollywood, Yawn! It's after nine already. What is up because hey.
What is up because hey.
-
Hi Holllywood.
it's really strange.
It's possible that there is somethings in the main .dll functions that prevent somethings from being overwritten by ProcessSubstitutions.
Maybe Robert can shed some light on this or he may even have a solution.
Jerry[8D]
-
im sorry, hollywood, but vanessa reminds me of the STEPFOR WIVES when the robot wife had a melt down, and kept repeating herself.[:)]
-
I know Lynn, Looks like she's losing it.
Jerry I hope Robert can shed some light on it. She didn't behave like this until I re installed. She always made changes without a prob.
I've gone ahead and re installed Hal. She appears to be alright with the Corrections. But she still repeats herself. The "Hal notice repeating self" is selected, but it doesn't seem to catch the repeat.