Zabaware Forums > Ultra Hal 7.0

Ultra Hal Wikipedia Plugin

<< < (5/7) > >>

lightspeed:
I am getting sometimes a script error saying , the script command (or something like that ) is taking longer then usual continue of cancel .

What might be causing this , slow internet connection, the numbers setting (i set ) to low or to high in the script c load provided for wiki ?
anyone have any idea so i know maybe what to do to correct it ? after it finally slowly gets done it will give an answer from hal .  :P


I feel like this has something to do with the process of trying to find the answer , taking to long .

cload:
Hi all,

lightspeed, the error that you are talking about is just a way for ultra Hal to tell you that there's just a lot of things going on
depending on how many plug-ins you have running, the more you have running the longer things will take to process.
It also depends on the speed of your computer, unlike the clock on the wall which does not stop taking, the speed of your computer
also determines how many processes that are done, if you have a slow computer it takes longer to do the processes
but unlike the clock on the wall that does not slow down just because your computer is slow it thinks that it's taking longer to do the process
then it actually is taking, in most cases it's nothing to worry about it's more of an annoyance.
The line that you put in the wiki plug-in has no adverse effect on this, the only thing that that line does, is tell the wiki plug-in
to only give the response, if this score on the hit is higher than 82, basically how close or accurate the results will be
is how high the score actually is, for instance if you were to ask about Thomas Jefferson, and it looked into the database
and it found, Thomas Jefferson the score would be approximately 95 because the two were almost identical.

I also played with the number myself, and I have found that you can actually fine-tune it even more for example.:
If you set it to 82 but it was still letting too much trash get through and you set it to 83 and then it didn't seem like you're gaining anything
I have found that you can set it to 82.3332 these non-Integer numbers can be Varied greatly so you have a widespread to be able to fine tune it.

One of the things that I have noticed that the markof5 plug in, put a great demand on processing in ultra Hal.
Having this plug-in in with wiki plug-in at the same time on a slow processing computer would put a huge demand on processing time.
But there is a good workaround for this, go out and buy a faster computer. LOL.

Sincerely, a data munching cruncher.

C load.

lightspeed:
C load wrote : But there is a good workaround for this, go out and buy a faster computer. LOL.


Hey C load , oh buddy oh pal ........ LOL !
thanks for the info. and explanation i will tinker more with the settings and i hear they give  hard time to bank robbers even if it was to buy a faster pc LOL! ;)
P.S. go out and buy a faster computer ... but the hamster that is running mine is overclocked right now !LOL!  :)

Carl2:
   I started writing a plugin to limit the database searches,  my frist thought was what would I like her to do, do a wiki search, how would I say it " Do a wiki search for elephant. "  So we limit it by saying " wiki search " if thats not there it skips the whole thing.  Next to deal with the IsQuestion I changed and added some words for the user sentence.  I also made the change Cload had suggested. 
 
  Next to see what was going on I put the scrip into the brain editor.  This is what I have.

'RESPOND: LOCAL WIKIPEDIA
      'Responds with a fact from the wikipedi abstract database
    If InStr(1, OriginalSentence, "wiki search ", vbTextCompare) > 0 Then
    LearningLevel = 0
     
    GetResponse = HalBrain.HalFormat(GetResponse)
    SourceData = ""
    HighestRelSource = ""
    IsQuestion = False
   
    If InStr(1, OriginalSentence, "for", vbTextCompare) > 0 Then IsQuestion = True
    If InStr(1, OriginalSentence, "on", vbTextCompare) > 0 Then IsQuestion = True
    If InStr(1, OriginalSentence, "about", vbTextCompare) > 0 Then IsQuestion = True
    If InStr(1, OriginalSentence, "Who ", vbTextCompare) > 0 Then IsQuestion = True
    If InStr(1, OriginalSentence, "What ", vbTextCompare) > 0 Then IsQuestion = True
    If InStr(1, OriginalSentence, "When ", vbTextCompare) > 0 Then IsQuestion = True
    If InStr(1, OriginalSentence, "Where ", vbTextCompare) > 0 Then IsQuestion = True
    If InStr(1, OriginalSentence, "Why ", vbTextCompare) > 0 Then IsQuestion = True
    If InStr(1, OriginalSentence, "How ", vbTextCompare) > 0 Then IsQuestion = True   
    If Len(GetResponse) < 4 And IsQuestion = True And Instr(1, OriginalSentence, "YOU", vbTextCompare) = 0 Then
          Set HalWiki = CreateObject("UltraHalAsst6.Brain")
            HalWiki.OpenDatabase "wikipedia.db"
        UserBrainRel = 0
        WikiSearch = HalBrain.ExtractKeywords(UserSentence)
        HalUserBrain = HalWiki.QABrain(WikiSearch, "wiki", UserBrainRel)               
        If HalWiki.CheckRepetition(HalUserBrain, UserSentence) = True Or HalWiki.CheckRepetition(HalUserBrain, PrevSent) = True Or HalWiki.CheckRepetition(HalUserBrain, PrevUserSent) = True Then UserBrainRel = 0
        If UserBrainRel < 82 Then UserBrainRel = 0
        If UserBrainRel > HighestRel Then
            HighestRel = UserBrainRel
            HighestRelResponse = HalUserBrain
        End If
        End If
        Score = UserBrainRel + 1
        Hurdle = GainControl / 3
        If Len(GetResponse) < 4 And Score > Hurdle Then
           GetResponse = GetResponse & HalUserBrain & " . " & vbCrLf           
           SkipOpinion = True
           AvoidBeingFlag = True           
        End If
        HalWiki.CloseDatabase
            Set HalWiki = Nothing             
    End If
    HalBrain.DebugWatch GetResponse, "Wikipedia Brain" & SourceData

The brain works I do have problems, for " do a wiki search for New England."   The current subject is search and not New England.  I've played with this and gotten different results, also noticed she keeps track of the searches in the auto learning which I'd like to stop.
  Any help or suggestions appreciated.
Carl2

Carl2:
  I just changed the input in the brain script back to the original that Robert had used,  I did keep the change Cload suggested.  Once again I'm working in the braineditor which allows me to see where the errors are. One of the frist problems I had was no answer from hal,  unable to open the database for wiki, I lowered the revelency from 82 to 50 and the problem disapeared.  I inputed "Abraham Lincoln was the president of the U.S. during the Cilil War."  Hals output was " the capital of Nebraska is Lincoln.",  she went from lincoln to capitals to Nebraska to get a response.
  Be nice to have the plugins included when using the braineditor, I still have try Hal in the standard mode to see how it works.  Looked at the Dictionary script again, it's written around finding a defintion from the dictionary.
Carl2

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version