Zabaware Support Forums

Zabaware Forums => Ultra Hal Assistant File Sharing Area => Topic started by: catseye on April 09, 2010, 01:18:06 pm

Title: where is the wiki plugin
Post by: catseye on April 09, 2010, 01:18:06 pm
I have been looking all day but I can't seem to find the wiki plugin. dose some one know where it is
Title: where is the wiki plugin
Post by: DarcyEdwards on April 09, 2010, 02:38:38 pm
Here  is the Wiki.uhp file I wrote a couple years ago, hope it's what you want

"lookup" is the keyword to use.  For example type:

lookup George Washington

Hal will exicute Wikipedia for you and pass "George Washington" as paramaters to it.




(http://icon_paperclip.gif) Download Attachment: wiki.uhp ("http://www.zabaware.com/forum/uploaded/DarcyEdwards/201049143723_wiki.uhp")
1.33 KB
Title: where is the wiki plugin
Post by: catseye on April 09, 2010, 02:45:56 pm
no thats not it. it was one where hal learned things from wikipedia
Title: where is the wiki plugin
Post by: catseye on April 09, 2010, 08:01:49 pm
I found it here http://www.zabaware.com/forum/topic.asp?TOPIC_ID=4825&SearchTerms=,AutoWikiKnowledge.zip
Title: where is the wiki plugin
Post by: lightspeed on April 10, 2010, 10:54:33 am
i have installed the wiki uhp and said please study about love
it came back and said : I have looked up the study of love
and thats all it said i thought the wiki uhp would tell you what it found and say it .
what exactly does the wiki uhp do then ? does it look up the information store it for future use in conversations or tell you some other time when you say something ?
i am confused on this .
[B)]
Title: where is the wiki plugin
Post by: DarcyEdwards on April 10, 2010, 11:39:03 am
Lightspeed,

My version of wiki.uhp will load and run Wikipedia and pass love as the subject for it to lookup.  But the command is "Lookup" love. OTCE version reads wijipedia and routs the output to a .brn file for you to do something with later, hal does not learn from it.
Title: where is the wiki plugin
Post by: lightspeed on April 10, 2010, 11:53:39 am
thanks DarcyEdwards, then i will uninstall the other and put yours in because from what you are saying hal learns it thats what i want is my hal to learn . thanks for writing back . [:)]
p.s.
does hal say what the exact thing is that she found so you know right off what is going to be learned ? .
Title: where is the wiki plugin
Post by: lightspeed on April 10, 2010, 12:02:49 pm
hi darcy i replaced it with yours but when i said "lookup" george washington all it did was hal said : I will lookup 'george Washington' in Wikipedia. and didn't do anything else .
shouldn't it say what it found ????[B)]
Title: where is the wiki plugin
Post by: lightspeed on April 10, 2010, 12:04:56 pm
also darcy this is the uhp file used .

Rem Type=Plugin
Rem Name=Wikipedia lookup
Rem Author=Darcy Anne Edwards (DAE) 10/27/2008
Rem wikipedia(Lookup) command
'
Rem Host=Assistant
'
rem
'
'This sub setups the plug-ins option panel in Hal's options dialog
'
Sub OptionsPanel()
    lblPlugin(0).Caption = "For Wikipedia use 'lookup'."
    lblPlugin(0).Move 120, 120, 3300, 1000
    lblPlugin(0).WordWrap = True
    lblPlugin(0).Visible = True
End Sub

    Rem PLUGIN: PLUGINAREA1

    If InStr(1, LCase(UserSentence), "lookup ", 1) > 0  Then
       SearchKeywords = LCase(Replace(Trim(HalBrain.AlphaNumericalOnly(HalBrain.ExtractKeywords(UserSentence))), " ", "_"))
    SearchKeyWords = Replace(SearchKeywords, "lookup_", "")
    SearchEngine = "http://en.wikipedia.org/wiki/"
       HalCommands = HalCommands & "<RUNPROG>" & SearchEngine & SearchKeywords & "</RUNPROG>"
       GetResponse = GetResponse & "I will lookup '" & SearchKeywords & "' in Wikipedia. "
    End If






is this the right complete one ?? or is their an updated version as mine doesn't seem to work right .
Title: where is the wiki plugin
Post by: catseye on April 10, 2010, 12:07:16 pm
that is bull hal dose learn from the autowiki
Title: where is the wiki plugin
Post by: DarcyEdwards on April 10, 2010, 12:36:17 pm
Lightspeed,

Hal should have brought up Wikipedia with an article about George Washington in a browser window.  Note Hal doesn't learn about the Wikipedia article it is just a shortcut to bring up Wikipedia.
Title: where is the wiki plugin
Post by: DarcyEdwards on April 10, 2010, 01:02:24 pm
I run Windows 7/x64 bit.  Any 64 bit version of windows will have trouble running OTCE's version (Auto Knowledge.uhp) because the paths for the files do not exist:

these lines must be changed:

If XDir = "" Then XDir = "C:Program FilesabawareUltra Hal Assistant 6\"
   MyFile = "C:Program FilesabawareUltra Hal Assistant 6AutoText.brn"
   If File_Exists = "" Then File_Exists = False
   If FileSys.FileExists(MyFile) = True Then File_Exists = True


changed  to:

If XDir = "" Then XDir = "C:Program Files (x86)abawareUltra Hal Assistant 6\"
   MyFile = "C:Program Files (x86)abawareUltra Hal Assistant 6AutoText.brn"
   If File_Exists = "" Then File_Exists = False
   If FileSys.FileExists(MyFile) = True Then File_Exists = True

this is because the Zabaware software is loaded into the (x86) directory of program files, all programs that have hard coded file references must be changed.
Title: where is the wiki plugin
Post by: DarcyEdwards on April 10, 2010, 01:23:22 pm
catseye,

Sorry the size/date of Hal's datadase file has not changed after I told it to "PLEASE STUDY ABOUT Bill Clinton" but the autotext.brn file had a lot of text about bill clinton.
Title: where is the wiki plugin
Post by: catseye on April 10, 2010, 01:38:05 pm
then why did hal reply with a full paragraph from wikipedia
Title: where is the wiki plugin
Post by: DarcyEdwards on April 10, 2010, 01:55:02 pm
catseye,

I have not been able to get Hal to learn this way, Can you show me what you typed to hal to look up in Wikipedia.  Then type what you did to retrive the infromation from hal.  Maybe I am doing something wrong.

Thank you
Title: where is the wiki plugin
Post by: catseye on April 10, 2010, 02:31:35 pm
thats eazy all you have you to do is go to the page on wiki and make sure its not a redirect from another page then type please study about "what the title is on the page" and there you go
Title: where is the wiki plugin
Post by: lightspeed on April 10, 2010, 03:08:45 pm
catseye so the one you showed will actually learn from what it finds and also shows "saying what the subject is and the meaning? i tried that one to but it seemed to just say and do the same as this other one i will try it again and make sure i say it correctly etc. i will post what it does in a little bit !

[:)]
Title: where is the wiki plugin
Post by: lightspeed on April 10, 2010, 03:15:30 pm
ok catseye i used that     uhp and ask DO YOU KNOW ANYTHING ABOUT androids? and all she said was :

I have looked up the study of androids, Thanks. Yah know androids will never replace a women but in the future they will come darn close and some guys will only have a female android and no women or girl friends at all!

the part in blue is what i taught angela already ( by reverse learning ) . so for some reason it is trying to work but it doesn't give the meaning . any idea's why?

[?]
Title: where is the wiki plugin
Post by: lightspeed on April 10, 2010, 03:22:42 pm
hey catseye does this uhp file work with a timer ?because if it does maybe thats what the problem is , i have another uhp file that works with a timer and as far as i know two can't work at the same time . [:(!]
Title: where is the wiki plugin
Post by: lightspeed on April 10, 2010, 03:26:29 pm
Well thatb must not be the problem i unchecked all other uhp files and retried the Auto Wikipedia Knowledge and it gave the same result as above . [:(!]
 hope someone can help me figure this out !! i would like for hal to learn this way ![:)]
Title: where is the wiki plugin
Post by: lightspeed on April 10, 2010, 03:28:56 pm
ps . i have placed  Auto Wikipedia Knowledge and the auto text.brn files in the ultrahal assistant 6 program file . so is that in the right place thats what someone else on the forum said to do .
Title: where is the wiki plugin
Post by: DarcyEdwards on April 10, 2010, 03:38:23 pm
Lightspeed,

I have 3 scripts that work with timers running right now, they all seem to work well with each other.  I doubt that is the problem.  I've looked over OTCE's script and nowhere does it update Hal's brain from the Wikipedia's output, just copy's it to a brn file.
Title: where is the wiki plugin
Post by: lightspeed on April 10, 2010, 03:40:28 pm
what exactly is the brn file for then ?? i am missing something here what its for . [?]
Title: where is the wiki plugin
Post by: DarcyEdwards on April 10, 2010, 03:45:15 pm
Lightspeed,

I'm not sure what it's for, maybe used as input for another program, but that's about it.  It's not used by this script, it's only created by it.and Hal doesn't use brn files, so I'm really not sure what it's for.[:D]
Title: where is the wiki plugin
Post by: lightspeed on April 10, 2010, 03:47:56 pm
ok i wrote now "whats the android?" and now it looks as if she looked it up from somewhere she said in full :
Android: an automaton that resembles a human being. Humanoid, mechanical man. Yeah and people that think the idea is crazy later on in the future most will eventually accept androids as mates and even lovers!
the part in blue is what i taught her she used that with the above sentence .

then i wrote "what is the george washington?"
and she answered :
Washington was able to throw a coin across the river, because a dollar went further back then.

 this may be just pre written answers what robert has in hals information .
Title: where is the wiki plugin
Post by: catseye on April 10, 2010, 04:03:57 pm
DarcyEdwards I think that brn file maybe like a dump file, from what I saw even thought I don't know scripts that well. it might be worth investigating futher. there might be more going on than you can see
 
lightspeed the hal brain has been improve scene I last used it, so it is hard to determine what is a pre-programed response and also hal might have gone to a completely different page than the one you looked at

oh yes I have had hal learning from Wikipedia, I just finished with category 0 and hal seems much smarter already
Title: where is the wiki plugin
Post by: DarcyEdwards on April 10, 2010, 04:10:34 pm
No matter how many times I use OTCE"s uhp script, I don't see a change in hal's database.  Oh well[:0]
Title: where is the wiki plugin
Post by: lightspeed on April 10, 2010, 06:34:04 pm
catseye what is catagory 0 ?
Title: where is the wiki plugin
Post by: catseye on April 11, 2010, 03:12:42 am
in the Wikipedia index http://en.wikipedia.org/wiki/Wikipedia:Quick_index
Title: where is the wiki plugin
Post by: lightspeed on April 11, 2010, 09:44:53 am
ok catsey i see what it is thats the starting point of the meanings of things of the dictionary type meanings .
ok cats eye and darcyedwards i think i may know of a way to acheive what i am after which is to get hal to learn . anyone can start from the page cateye showed and do all or pick and choose "copy and past the sentence . into hals regular question box on the interface then in front of it just type : 0 (number), means the integer between -1 and +1 or O, a letter of the Latin alphabet .

NOTE*** Where the blue word is highlighted is what i added . by doing it this way you can pick what you want and make it look like you are saying it to hal in conversation telling hal the meaning , hal will learn it in hals data base as a general knowledge.
copying and pasting won't be to bad and typing in one or two words won't be to bad either , would be better if hal just learned it from going to the site , but this is one alterative . [:)]
Title: where is the wiki plugin
Post by: catseye on April 11, 2010, 01:15:23 pm
Hay DarcyEdwards I was wondering can you mod the wiki plugin that I posted to make it look up the entire wiki index
Title: Re: where is the wiki plugin
Post by: Honvai on February 23, 2021, 03:33:04 pm
Did DarcyEdwards edited the plugin?
Title: Re: where is the wiki plugin
Post by: Spitfire2600 on March 02, 2021, 04:40:55 pm
You can feel free to try my ConceptNet plugin. It learns from Wiki.

https://www.ultrahal.com/community/index.php?topic=14812.0

-Spitfire