Zabaware Support Forums

Any one can call me if thay need help with Hal

Started by moreis62, April 21, 2004, 06:28:10 PM

Previous topic - Next topic

moreis62

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(*_*).
ISMAEL LEDESMA.

spydaz

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

#2
'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

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!

onthecuttingedge2005

#4
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.

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.

moreis62

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

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

oh yeah yeah yeah .

HMMM

LOVELY


THANKS

XSPYDAZ

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


SAFE AS HOUSES MATE...

(another london phrase)