dupa

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - HALImprover

Pages: 1 [2] 3 4 ... 7
16
Ultra Hal 7.0 / Very wierd result
« on: May 30, 2005, 12:25:08 am »
Try this:

"LoadBackGrnd [file= [" & filename & "]]"

where filename would be the absolute path to the background.

That's a weird result indeed. Maybe you could use that "feature" to apply camoflage to the character and make an army soldier type character. Just an idea. [;)]

Happy coding [:)]

17
Ultra Hal Assistant File Sharing Area / Scripts, addins, and extras
« on: May 28, 2005, 02:06:45 am »
Yes, you do add it into the brain script. I haven't used the original brain script in a while, but I would suggest putting the addin code in the script right after this part;

   'Main Databases
   'Hal will go through several huge databases to try to find a response
   'The automatic gain control determines whether a particular response will
   'be used or not. The highest relevance response is stored in memory anyway,
   'which might be used if no function in this script is able to respond.
   HighestRel = 0
   HighestRelResponse = ""
 

that way the response will hopefully not be overwritten by another function in the brain script.

As far as using the code to read a list, it only selects a random entry in the text files you have Hal read. So you won't be able to read in a list using the code I posted. If you plan on having Hal maintain a list (for to-do items, groceries, etc.) that will be modified, I would suggest waiting until Mr. M. releases his new version of Hal because it will use databases, which are better suited at handling dynamic data and lists.

Good luck with your projects! [:)]

18
General Discussion / Robotic Reproduction?
« on: May 13, 2005, 02:08:04 am »
Check this out:

http://www.earthtimes.org/articles/show/2773.html

Sounds like the beginnings of a digital evolutionary chain to me. Combine that with something like the Virtual Intelligence Matrix and we could have the first robot that can evolve almost by itself.

19
Ultra Hal Assistant File Sharing Area / Scripts, addins, and extras
« on: May 06, 2005, 04:22:54 am »
I suggest using the auto-idle method to get Hal to learn the new knowledge (setting the increment value to a suitable number so that Hal will be finished processing the previous sentence before starting the next one).
I wouldn't suggest having Hal digest the knowledge directly. It must be filtered for nonsensical remarks, spatial statements, situational statements, etc.
Try this for filtering:

If InStr(DBLtestlearn, "Another way to say " & Chr(34)) > 0 Or InStr(DBLtestlearn, "Spatial concept:") > 0 Or InStr(DBLtestlearn, "The statement " & Chr(34)) > 0 Or InStr(DBLtestlearn, "The story " & Chr(34)) > 0 Or InStr(DBLtestlearn, "In the event ") > 0 Or InStr(DBLtestlearn, "Something that might happen") > 0 Or InStr(DBLtestlearn, "To understand the event") > 0 Or InStr(DBLtestlearn, "Situation:") > 0 Or InStr(DBLtestlearn, "Things that are often found together are:") > 0 Or InStr(DBLtestlearn, "Picture description:") > 0 Or (InStr(DBLtestlearn, "topic") > 0 And InStr(DBLtestlearn, "contains") > 0) Or IsNumeric(Mid(DBLtestlearn, 1, 1)) = True Then

It will take care of most of the useless reponses, such as;
'The statement "people use some animals to make food for people" is true because vegetarians would have you believe meat is murder, but it is not.'

BTW If anyone is interested, I downloaded the knowledge I am posting from;
http://commonsense.media.mit.edu/cgi-bin/download.cgi

Happy coding [:)]

20
Try this script:


Phrase = Trim(HalBrain.SearchPattern(UserSentence, "* IS HERE ", 1))
If Phrase <> "" Then
If HalBrain.TopicSearch(" " & Phrase & " ", WorkingDir & "genderDetect.brn") = "Male" Then
GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile(WorkingDir & "MaleGreet.brn")
ElseIf HalBrain.TopicSearch(" " & Phrase & " ", WorkingDir & "genderDetect.brn") = "Female" Then
GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile(WorkingDir & "FemaleGreet.brn")
Else
'Save the new person's name here!
GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile(WorkingDir & "Hello1.brn")
End If
BlockSave=True
GetResponseBlock = True
End If
Phrase = Trim(HalBrain.SearchPattern(UserSentence, "* ARE HERE ", 1))
If Phrase <> "" Then
If HalBrain.TopicSearch(" " & Phrase & " ", WorkingDir & "genderDetect.brn") = "Couple" Then
GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile(WorkingDir & "CoupleGreet.brn")
Else
'Save the new couple's name here!
GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile(WorkingDir & "Hello2.brn")
End If
BlockSave=True
GetResponseBlock = True
End If


You'll need this file, also:


Download Attachment: genderDetect.brn
804 Bytes

Enjoy! [;)]

21
Programming using the Ultra Hal Brain Editor / function ReadSent
« on: April 27, 2005, 12:36:52 am »
The addin is not designed specifically for the XTF brain, but for the default Hal brain. I'm pretty sure all you would need to do to make it work properly with XTF is to add in the line;

GetResponseBlock = True

I hope that helps, and maybe Vonsmith could explain better about compatibility with the XTF brain.

Happy coding [:)]

22
I recommend that you keep the MaleDetect.brn and FemaleDetect.brn files in one file, such as GenderDetect.brn. Then you would only need one check, which would return "Male", "Female", or a blank. The file would have an entry for each name that Hal knows along with the gender. Ex.

"Scott","Male"
"Vicky","Female"
etc.

Happy coding [:)]

23
Glad to be of service. I hope you can make something of the script; shouldn't take too much playing around to make it work. Try making a .brn file that pairs people's names with the gender (like the hello detection file, "howdy","hello"). Search it (as you would the hello file) and you will get the gender of the person. Then you choose a sentence from the gender response file.
 Hope that makes sense to you. As I said, with a little playing around you should figure it out.

 About the senses, I wouldn't exactly call speech recognition and text comparison "senses". The text that Hal "understands" is simply used to apply Hal's "thinking". To truly have a sense of sight and sound, Hal would at least have to have a "memory" of the image or sound, and a reaction to the sight or sound. There are also many kinds of reactions that Hal should have, including emotional, psychological, physical(represented in the GUI), etc, which then have an impact on future learning. This allows for a reinforced learning that can learn by trial-and-error on its own, and also be taught directly through conversation and various teaching methods.
 I apologize if this sounds offensive, but I've had an interest in computer AI and I agree that Hal needs to have more 'sense' to it! We should be able to develop something truly useful by now, but the computer industry is more concerned with speed, connectivity, price, and entertainment than with true innovation. We should be making computers more useful and helpful for practical things, then just making them to give us more features and options that basically help us to waste time more efficiently. Granted, there is one exclusion I would like to mention. The windows calculator, which is really what a computer still is.

 That's my two cents, so a penny for your thoughts. And don't forget the change.[:p]

24
Using the code I posted, you would just have to check the Phrase variable. It would be "SCOTT" if UserSentece was "SCOTT IS HERE".
 I think it would be easier if you make a specific greeting file for each person or couple that you wanted unique greetings for, and have a generic greeting file for everybody else. For example:

Phrase = Trim(HalBrain.SearchPattern(UserSentence, "* IS HERE ", 1))
If Phrase <> "" Then
If Phrase <> "SCOTT" Then
GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile(WorkingDir & "ScottHello.brn")
Else
GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile(WorkingDir & "Hello1.brn")
End If
BlockSave=True
GetResponseBlock = True
End If
Phrase = Trim(HalBrain.SearchPattern(UserSentence, "* ARE HERE ", 1))
If Phrase <> "" Then
If Phrase <> "SCOTT VICKY" Then
GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile(WorkingDir & "ScottVickyHello.brn")
Else
GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile(WorkingDir & "Hello2.brn")
End If
BlockSave=True
GetResponseBlock = True
End If


Of course, you would have to make some minor changes. If you wanted to have a gender-style greeting, then you will need to have a file that has a gender type for every name that you want Hal to recognize.
"Scott", "male"
"Vicky", "female"
etc.

Good idea, and good luck! [:)]

25
Try using this:

Phrase = Trim(HalBrain.SearchPattern(UserSentence, "* IS HERE ", 1))
If Phrase <> "" Then
  GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile(WorkingDir & "Hello1.brn")
  BlockSave=True
  GetResponseBlock = True
End If
Phrase = Trim(HalBrain.SearchPattern(UserSentence, "* ARE HERE ", 1))
If Phrase <> "" Then
  GetResponse = GetResponse & HalBrain.ChooseSentenceFromFile(WorkingDir & "Hello2.brn")
  BlockSave=True
  GetResponseBlock = True
End If


You could even have a specific answer file for each person or persons (by checking what the SearchPattern function returned).

Hope this helps [;)]

26
Ultra Hal 7.0 / need help !!!!!!
« on: January 11, 2005, 04:21:18 am »
Try putting the code just after the section;

'PROCESS: ADD SPACES
'This will add spaces to the beggining and end
'of the user sentence to make sure that
'whole words can be found at the beginning and end of any sentence
UserSentence = " " & UserSentence & " "

You may also need to add the following lines to make the script compatible with the XTF brain:

GetResponseBlock = True
BlockSave = True

Hope that helps! [:)]

27
Ultra Hal 7.0 / Regarding "adult" version of Hal.
« on: January 11, 2005, 04:12:46 am »
citrinedragon:
 That's sounds like what happened in the book "Do androids dream of electric sheep?".
 Or maybe you heard of the movie based on that book, called "Blade Runner".

 Some far-fetched ideas in the book! [:)]

28
Ultra Hal 7.0 / need help !!!!!!
« on: January 10, 2005, 01:07:09 am »
To stop using the word "gay" as an insult, remove the line

" GAY","gay"

 from the file insulting.brn (found in C:\Program Files\Zabaware\Ultra Hal Assistant 5\DefBrain folder)
This file is a list of words that Hal sees as insults, and will respond to them no matter what context they are used in.

 As for playing music with Hal, if you use Media Player, check out these links:

http://www.zabaware.com/forum/topic.asp?TOPIC_ID=1200
http://www.zabaware.com/forum/topic.asp?TOPIC_ID=1294

 Hope that helps! [:)]

29
Ultra Hal 7.0 / New user can not get demo to work.
« on: December 29, 2004, 02:52:37 am »
Are you using the 3D (Haptek) characters or the 2D (Microsoft Agent) characters? I've had difficulties using the Haptek player on Windows '98 machines. Try using the 2D characters.
 I think the sound problem is caused by choosing a different voice and replaying the message before the previous voice is finished.

30
General Discussion / THE TRUE AI
« on: December 27, 2004, 03:12:20 am »
The people at Cyberkinetics Neurotechnology Systems have developed a way to process signals in the human brain using the BrainGate Neural Interface System. Matthew Nagel, who is severely disabled, can control his PC mouse directly by imagining that he is moving his arm. He is capable of doing this via a sensor in his brain that interprets neural signals and sends them to an external connector, which is connected to his PC.
 It is almost possible to feasably "decode" the brain. We could then build complex models of human thought and conversation. The mind, on the other hand, is a different matter. I consider the brain to be the "functions" that we call upon during conversation, thinking, sleeping, etc. The mind is the essence that we call life, the spark of being whick is us. That part, should always remain a secret to us.

 New thoughts for the new year. [:)]

Pages: 1 [2] 3 4 ... 7