dupa

Author Topic: Any one can call me if thay need help with Hal  (Read 4588 times)

moreis62

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • http://www.myway.com/
Any one can call me if thay need help with Hal
« on: April 21, 2004, 06:28:10 pm »
Any one can call me if thay need help with Hal.

Ask For Ismael Ledesma
I'm here from 5:30pm to 9:00pm Mountain Time
(1-915)598-0626 I jest got my M.C.S.E  
In artificial intelligence programing
It's not a job for me it's jet's something
I like to do(*_*).
« Last Edit: April 25, 2004, 04:04:03 am by moreis62 »
ISMAEL LEDESMA.

spydaz

  • Hero Member
  • *****
  • Posts: 670
    • View Profile
    • http://www.spydazweb.co.uk/
Any one can call me if thay need help with Hal
« Reply #1 on: April 21, 2004, 07:11:38 pm »
im wondering if you can help or figure out how to make hal LEARN FROM or (Save in RELEVANT *.BRN files) from Comma seperated DATA FILES. such as web data or sql data or output from a database or spreadsheet etc.


ie:
USER: hal open new file on topic, PLANETS, please

(typical file contents)
Planet : saturn : distance :2,000,000,000,000 miles : satalites : 3.
Planet : Mars : distance :1,000,000,000,000 miles : satalites : 0.
eof.

Hal:i have finished reading the file.
User: what is the DISTANCE of the PLANET SATURN.
HAL: the DISTANCE of the PLANET SATURN is 2,000,000,000,000 miles

this would greatly improve HAl's learning capablity.
and Reference capabilities.

Thanking ALL IN Wishfull Thought.

PS. i have posted this query before BUT no reply.

ALways available for comment.

XSPYDAZ <<<< AIMBOT

onthecuttingedge2005

  • Guest
Any one can call me if thay need help with Hal
« Reply #2 on: April 21, 2004, 11:39:57 pm »
'Hi Spydaz.
'Your wish is my command.
'Here's the script you asked for.

'ZIGGY'S SPLIT SENTENCES USERBRAINREL LEARNING USING COMMAS.
     If InStr(OriginalSentence, " ") > 0 And InStr(1, OriginalSentence, ", ", 1) > 0 And Len(OriginalSentence) > 25 And Len(OriginalSentence) < 500 Then
     SentPieces = Split(OriginalSentence, ", ", 2, vbTextCompare)
      SubPhrase = Trim(SentPieces(0))
      PredPhrase = Trim(SentPieces(1))
     HalBrain.AppendFile WorkingDir & "SplitSentences.brn", "@" & PredPhrase & vbCrLf & " " & UCase(SubPhrase)
     GetResponse = HalBrain.QABrain(UCase(OriginalSentence), WorkingDir & "SplitSentences.brn", UserBrainRel)
     End If
« Last Edit: April 22, 2004, 12:42:57 am by onthecuttingedge2005 »

iam bennu

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
    • http://iamARTevolutions.net
Any one can call me if thay need help with Hal
« Reply #3 on: April 22, 2004, 02:45:30 am »
Great looking script, but will it work in the way that Spydaze asked? that would be amazing. And what format would the information have to be in? Like for comma separated values it's:

headings- Planet, moon, distance, size,

values - Earth, the moon, etc.

If i can get Hal to read a database then it is on!

onthecuttingedge2005

  • Guest
Any one can call me if thay need help with Hal
« Reply #4 on: April 22, 2004, 11:27:58 am »
quote:
Originally posted by iam bennu

Great looking script, but will it work in the way that Spydaze asked? that would be amazing. And what format would the information have to be in? Like for comma separated values it's:

headings- Planet, moon, distance, size,

values - Earth, the moon, etc.

If i can get Hal to read a database then it is on!



Hi iam.
The script would do sentence splitting like:
Example: User: The Earth's Moon is made of cheese, The moon also has a creme filled center.
Ziggy(Hal) would split this user sentence as follows.
@The moon also has a creme filled center <-- Ziggy will say this.
 The Earth's Moon is made of cheese <--- If any user says this.

I tell you that this technique isn't new to me cause I've made none
UserBrainRel script using this comma sentence splitting.
Ocassionaly you'll run into buggy little sentences that need to be
corrected only because of the Users use of improper sentencing.

You can also use this in data type sentences such as:
Example: User: Saturn, Saturns mean distance from the Earth is
1,427,000,000 miles.
This script will do this:
@Saturns mean distance from the Earth is 1,427,000,000 miles. <-Topic
  Saturn <--Becomes target word searched for.

You can find these UserBrainRel sentencing for this script in the
SplitSentence.brn

Hope this helped.
Best of wishes and brand new discoveries.
Jerry.
« Last Edit: April 22, 2004, 11:30:39 am by onthecuttingedge2005 »

iam bennu

  • Jr. Member
  • **
  • Posts: 97
    • View Profile
    • http://iamARTevolutions.net
Any one can call me if thay need help with Hal
« Reply #5 on: April 22, 2004, 01:59:33 pm »
Thanks Jerry,

I have put the script in Hal's brain and am anxious to see it is action, thought isn't it a lot like the current way of getting info to Hal in the form of:

user: if, The moon is made of cheese, then it also has a creamy center.

user: the moon is made of cheese.

Hal: It also has a creamy center.

I have found this way of imputing information very handy.

moreis62

  • Full Member
  • ***
  • Posts: 102
    • View Profile
    • http://www.myway.com/
Any one can call me if thay need help with Hal
« Reply #6 on: April 22, 2004, 04:39:35 pm »
quote:
Originally posted by onthecuttingedge2005

'Hi Spydaz.
'Your wish is my command.
'Here's the script you asked for.

'ZIGGY'S SPLIT SENTENCES USERBRAINREL LEARNING USING COMMAS.
     If InStr(OriginalSentence, " ") > 0 And InStr(1, OriginalSentence, ", ", 1) > 0 And Len(OriginalSentence) > 25 And Len(OriginalSentence) < 500 Then
     SentPieces = Split(OriginalSentence, ", ", 2, vbTextCompare)
      SubPhrase = Trim(SentPieces(0))
      PredPhrase = Trim(SentPieces(1))
     HalBrain.AppendFile WorkingDir & "SplitSentences.brn", "@" & PredPhrase & vbCrLf & " " & UCase(SubPhrase)
     GetResponse = HalBrain.QABrain(UCase(OriginalSentence), WorkingDir & "SplitSentences.brn", UserBrainRel)
     End If


m! yeah i like the way you rote this Script and thank you for helping my frend thair.
ISMAEL LEDESMA.

onthecuttingedge2005

  • Guest
Any one can call me if thay need help with Hal
« Reply #7 on: April 22, 2004, 06:58:35 pm »
quote:
Originally posted by iam bennu

Thanks Jerry,

I have put the script in Hal's brain and am anxious to see it is action, thought isn't it a lot like the current way of getting info to Hal in the form of:

user: if, The moon is made of cheese, then it also has a creamy center.

user: the moon is made of cheese.

Hal: It also has a creamy center.

I have found this way of imputing information very handy.



Yep, Just a different way to append info.
Jerry.

spydaz

  • Hero Member
  • *****
  • Posts: 670
    • View Profile
    • http://www.spydazweb.co.uk/
Any one can call me if thay need help with Hal
« Reply #8 on: April 23, 2004, 05:28:14 am »
oh yeah yeah yeah .

HMMM

LOVELY


THANKS

XSPYDAZ

im going to give that a try.....


SAFE AS HOUSES MATE...

(another london phrase)