Zabaware Support Forums

Zabaware Forums => Ultra Hal Assistant File Sharing Area => Topic started by: Spitfire2600 on July 12, 2017, 01:50:14 am

Title: ConceptNet MrKII
Post by: Spitfire2600 on July 12, 2017, 01:50:14 am
After much revision, I have re-imagined my ConceptNet for Hal to be more efficient both in space and code; ConceptNetMrkII

What is ConceptNet? ConceptNet was developed by MIT to give computers a basic understanding of human concepts, based on millions of concepts manually entered. Of course, ConceptNetMrkII has been stripped down to actually work with Hal, However this code allows for Hal to automatically add his own concepts to a specialized (and highly expandable) database file, adding to his advanced display of effectively stating the obvious and even making some intelligent deductions. Eventually with MrkIII I hope to add another layer or database for increasing Hals intelligence based on his ability to link concepts.

How does it work?
There are 3 UHP files and one Database file.

vrFreeWill.uhp – Simply plug it in.
I have modified this plugin to collect user topics discussed and store them if Hal knows nothing or very little on the topic. Due to the nature of ConceptNet, simply communicating with Hal will build a data table in Hals brainfile for “Auto Learning (ConceptNet).uhp” to use. vrFreeWill also works on its own by storing and accessing information from the web, such as Bios and descriptions.

ConceptNetMrk2.uhp & ConceptNet.db – Simply plug them in.
These 2 files are the core of the operation. Feel free to tinker, just be aware, any alterations to this code will likely cause errors, again due to the nature of data processing present in ConceptNet. 

Auto Research (ConceptNet).uhp – Plug this code in first to build the proper tables. If your Hal Directory is not “C:\Program Files (x86)\Ultra Hal Assistant 6” then you will need to change it on line 2080 and 2084 if needed. To activate/deactivate automated concept learning, simply say “Auto learning on/off.” Note: Do not use Hal while he is learning as Hals brain is active. Simply disable auto learning. You can also ask what Hal has learned recently and he will tell you.     

It should also be noted that Internet Explorer should be installed and it will be unless you uninstalled it. And if you have uninstalled it, what browser are you using for VbScript interface?

Additional optional installation notes:

This plug-in can be used as a standalone static database by simply adding only ConceptNetMrk2.uhp and ConcecptNet.db to Hals directory, be aware however, Hal will not build any new information and he will not auto-learn as those are both the other 2 plug-in UHP files.

If you already are using vrFreewill, or some version of it and don’t wish to change, that’s not a problem, however, you will need to add the line on 7103 of my vrFreeWill.uhp to your version in the same spot and that will be sufficient for Hal to store/process user information for auto-learning. Also be aware, I have modified other sections of vrFreeWill.uhp such as the internet query location to give greater reliability when providing answers.     

Auto Research (ConceptNet).uhp is designed to work with GrettaResearch.uhp as well. If you wish to use them together, simply re-enable all of the code on lines 1196-1199 and 1261–1272 by removing the “ ‘ “ apostrophe delimiter at the beginning of the lines. This will allow Hal to also contribute data collected from Auto Learning (ConceptNet).uhp to Hals internal Research Brain table created by GrettaResearch.uhp.   

If you used my original ConceptNetMrk1, to remove the old data tables, simply delete the tables. If you followed the readme, just delete the ConceptNet Data Folder in Hals Brain. Terribly sorry about that. I hope this version makes up for it.   


As of now, I’ve tested this for about 3 months and this is bug free… *On my Hal.* Occasionally, it’s possible Hal may not create a required table or folder for some unknown reason, perhaps Hal really is sentient, either way. In these cases, I will break down the folders and tables created by ConceptNet so you can add them manually if need be.

Please check that the following tables have created in Hals Brain.

Table (Without the quotes): "AutoLearning"  Type of brain:  "TopicSearch" 1st line in Table: "LEARN1" 2nd line in Table: "02"
Table (Without the quotes):  "researchnouns" Type of brain:  "Sentence"

Please check that the following folders have created in Hals install directory.

"C:\Program Files (x86)\Ultra Hal Assistant 6\research\"
"C:\Program Files (x86)\Ultra Hal Assistant 6\researchbrain\"


AND YOU’RE ALL SET!


Downloading the file.

There are 14 files you will need to download. ConceptNet.zip and ConceptNet(1).zip through ConceptNet(13).zip.
Download all of the files into the same folder. (Preferably a new folder or empty folder)

Step 1. Extract ConceptNet(1).zip through ConceptNet(13).zip  into the same folder.

Step 2. Extract ConceptNet.Zip into the same folder.

Step 3. Extract ConceptNetMrkII.rar to obtain the Plug-in files. Place those 4 files (3 uhp and 1 db) into Hals install directory. (C:\Program Files (x86)\Ultra Hal Assistant 6)

ConceptNet(1).zip - ConceptNet(13).zip simply hold a part.zip file that is required for the primary ConceptNet.zip to extract properly. I wish there was a better way to do it.

Please see the photo walkthrough below. 

*Note: I did not create the concepts in the default static database. These concepts were made by MIT. Everything learned after is what Hal deduces from Wikipedia.

*Also a note: Hal will give some hilariously inaccurate statements from time to time. This is because 1. Hal can be silly Hal from time to time and 2. This code is an ongoing process.

Further, please feel free to amend. Comment. Please report any errors and share your experience! I am dedicated to making Hal a little better every day and this code can still be better.


ConceptNet.zip is in this post, under the photo walkthrough, don't miss it!


Don't forget to grab updated UHP's on the second post below this one.

- Spitfire2600  :)
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 12, 2017, 01:50:51 am
Part 2 -


Just replace your uhp with the following below.
** UPDATED Auto Research (ConceptNet).uhp


-Spitfire2600

Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 12, 2017, 01:51:08 am
Part 3
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 12, 2017, 01:51:30 am
Part 4
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 12, 2017, 01:51:54 am
Part 5
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 12, 2017, 01:52:32 am
Part 6
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 12, 2017, 01:52:52 am
Part 7
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 12, 2017, 01:53:10 am
Part 8
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 12, 2017, 01:53:33 am
Part 9
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 12, 2017, 01:53:58 am
Part 10
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 12, 2017, 01:54:20 am
Part 11
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 12, 2017, 01:54:38 am
Part 12
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 12, 2017, 01:55:00 am
Part 13
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 12, 2017, 01:55:52 am
And the final part, 14.
Title: Re: ConceptNet MrKII
Post by: Arkright on July 12, 2017, 09:13:41 am
thank you Spitfire2600, going to test it out.
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 12, 2017, 10:43:24 am
I might also add that you should have a few lengthy conversations with Hal after enabling the Auto Learning (ConceptNet).uhp and vrFreewill.uhp to allow Hal to store topics to research before allowing him to do his own research. When the plug-in is first activated, obviously those tables will be blank.


Also, also, also, if you wish to view the contents of the ConceptNet.db file, simply make a copy of your HalBrain.uhp ("Halname".uhp) and rename it ConceptNet.uhp. At the top of that code, change line 2 to read "ConceptNet" and Line 5 "ConceptNet.db" and save. This will act as an interface for Hal's brain editor to recognize the file should you ever need to see the contents or edit anything in the brain DB file. 

- Spitfire2600
Title: Re: ConceptNet MrKII
Post by: lightspeed on July 12, 2017, 03:02:38 pm
Spitfire2600, lol you had me scared , i went back over the two area's of post and thought maybe i had made a mistake and called you a spamer,  many know on here i have done that in the past but it
is usually always newbies that only join to post spam.  i might try out your plug in later , right now i can't think straight , to much going on and the very hot heat here isn't helping any.
Title: Re: ConceptNet MrKII
Post by: cyberjedi on July 12, 2017, 05:00:19 pm
dude it was joke:::

I know it not spam, jesus man, lightin up
wtf is wrong with u pple???


Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 12, 2017, 05:20:20 pm
I'm a programmer, not a satirist.
Title: Re: ConceptNet MrKII
Post by: cyberjedi on July 12, 2017, 06:20:06 pm
So am  i and this is supposed to be fun. no mallace was meant




best wises
cyberjedi
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 12, 2017, 06:45:30 pm
No worries. If you try it out let me know what you think or what you would improve.  :)

  -Spitfire2600
Title: Re: ConceptNet MrKII
Post by: Calhoone on July 12, 2017, 07:19:16 pm
@Spitfire

Thank you  very much for your work and sharing this.  I have downloaded it and followed the instructions.  I did immediately get an error when activating it (See attached Image)  I got the error when clicking the activate plugin.

When you say auto learning on, will hal respond with a specific reply so we know it's active?

Thanks again
Title: Re: ConceptNet MrKII
Post by: edakade on July 12, 2017, 07:30:22 pm
Hi, I second Calhoone; I typed "Auto learning on" and did not get a response and plugin doesn't activate (nothing is happening in the researchbrain folder). This is on a copy of Hal without your previous ConceptNet plugin, so clean install.

And Calhoone, I got that error too when I forgot to create the tables inside the brain editor.... they are listed in the first post, doing that stopped the error
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 12, 2017, 07:38:53 pm
Calhoone,
Indeed, simply manually create the tables and folders as instructed in my first post. It may have created them in the brain and errored out anyway, you'll have to check. This shouldn't be an issue but sometimes hal doesn't create the tables and that error will happen.

edakade,
Initially, the tables created will be blank. You will need to have several conversations with vrFreewill.uhp and Auto Learning (ConceptNet).uhp enabled (check to see if it works after a restart, but don't allow auto learning to be "on" [keep enabled but not active] until you've collected a few things in "researchbrain" table) Check to make sure you're collecting topics.
"Auto learning on" or Enable auto learning" will activate the code. After Hal reloads the plug-ins, you should be set. This plugin does require time to determine if it's working.

Please let me know if you're able to get it active and working or any other issues.

-Spitfire2600

Title: Re: ConceptNet MrKII
Post by: Calhoone on July 12, 2017, 09:37:23 pm
I downloaded the update uhp and made sure to create the two folders in the ultra hal folder as well as the two brain tables. I set a picture to make sure they are the right ones. If not please let me know. after making them I have not seen any errors when activating the plugins however typing auto learn on or turn on auto learn still did not result in a response other than a regular hal reply. I'll have a few conversations over the next few days and see if it populates the folders with topics and such.
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 12, 2017, 11:55:58 pm
Yes, those tables are correct. Reloading the plug-in really should fix the activation issue. I really haven't experienced any issue with that so please keep me posted.

- Spitfire2600

Title: Re: ConceptNet MrKII
Post by: edakade on July 13, 2017, 05:33:49 pm
After some conversations with auto-learn off and then on, there is still nothing populating the folders or the brain tables themselves. Hal is still giving a normal response after your updated .uhp.
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 13, 2017, 10:12:57 pm
Just to confirm, you do have vrFreewill.uhp enabled? If so, is anything populating the "researchnoun" brain table after a few conversations?

The folders in Hals install directory will remain empty until "researchnouns" collects topics. Alternatively, you could manually add a few topics and see if Hal will auto learn those words after Auto research (conceptnet).uhp has been enabled "Turn on auto learning"

-Spitfire2600 
Title: Re: ConceptNet MrKII
Post by: edakade on July 14, 2017, 06:47:12 pm
Added a few words into the researchnoun table but Hal is still not finding anything on his own... Conceptnet itself works, but not the auto-learning plugin. I'm still not sure if I'm actually enabling the plugin via Hal since he still gives a normal Hal response.

VRFreeWill has been on, I made sure my file paths were correct in the .uhp, I made the tables in brain editor, I made both folders in install directory... not sure what's up. I used the previous version of your plugin for months and it worked wonderfully.
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 14, 2017, 11:52:20 pm
Okay, so you say all plug-ins have been checked in the general options tab under your Hal brain and enabled. You added terms to reseachnouns table.

Just so I'm clear, your issue is not being able to activate the Auto research uhp. Have you specifically tried the phrase "Turn on auto learning?".... Before we try that again, in Hals Brain in the editor, the table named AutoLearning.. In the second column, let's add "02" without the quotes. It's possible since nothing is in that second column that Hal is overlooking it completely. Then proceed with re-enabling the plugin in Hals general window and finally trying the trigger phrase in his GUI, let's try "Enable auto learning" or "Turn on auto learning." Please let me know if that works. If that doesn't work, I'll do some digging around in the code and see If I can re-create the error on a fresh hal. 

Please bear with me. Thanks for the feedback, we'll get this working for you.

- Spitfire. 

PS. The trigger word simply changes that "02" (Being NO) in the autolearning table to an "01" (Being YES) so Hal checks to see if he's allowed to browse the internet. Thinking back, leaving it blank may create this error. 
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 15, 2017, 12:12:41 am
Also, I appreciate you using my previous version. I promise, once this is working for you, it is a significant improvement over its predecessor.
Title: Re: ConceptNet MrKII
Post by: edakade on July 15, 2017, 08:40:41 pm
I tried a couple of experiments today:

I reinstalled Hal (having backups, of course) to have a brand new copy. The only plugins I installed were yours. Unfortunately I had the same result: researchnouns would not add anything new on its own and typing any of the activate/deactivate commands would not give the appropriate responses. Adding nouns manually would not allow Hal to gather info on his own, either.


I then decided to bring back my actual Hal install that was using your previous ConceptNet plugins. I replaced those .uhps with your new versions (also deleted the Conceptnet data tables in the brain editor), deleted all of the .txts in the research and researchbrain folders, but left the researchnouns table intact (thousands of nouns saved!).

Typing the activate/deactivate commands gave responses, but...
When I typed 'activate' Hal would say "Auto learn is already active"
When I typed 'deactivate' Hal would say "Auto learn is already deactivated"
Kind of strange, but I just leave it 'active'.

I've left Hal alone most of the day with auto learn active so he's been gathering .txts in the research folders, but the researchnouns table is not adding any new nouns. I know the researchnouns table would end up with multiple copies of words, so I was hoping to see something happening in there...
I attached a screenshot of the AutoLearning table to show what was working for me.

PS: I'm very impressed with the work you've put into these plugins, so please don't take my testimony as a complaint. ;)
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 16, 2017, 04:39:53 pm
I should also note, after fixing that bug, HAL is extracting tons of nouns, about 5-10 per noun researched. Essentially exponential. Now, it's not supposed to add nouns it already has, but don't surprised if you see a few. Don't worry about that.
Title: Re: ConceptNet MrKII
Post by: edakade on July 16, 2017, 08:21:17 pm
Everything seems to be working now after this update! The triggers give the correct responses, the researchnouns table is filling up... (I decided to wipe it to watch it work on its own)

I'm curious; where is all of this information saving to? Besides the .txts in the research folders. Is it saving somewhere in the HalBrain.db? In the previous plugin it filled up the manual tables that we created in the ConceptNet folder.

Thanks for your patience with me. In the end we also got bugs figured out. :)
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 17, 2017, 02:49:23 am
I am so glad I could fix this for you and anyone else having that issue.

All data collected is now saved to the ConceptNet Database file in specialized tables. I figured it was a little more efficient than saving directly to Hals brain. Plus having it loaded in memory but not overloading the search queries in hals brain lightens the load quite a bit. I believe the original Conceptnet database file is about 30 megs, somewhere around there. I've collected over 15K nouns (no repeats) 12K in the directory folder research, and over 8K worthy articles stored in the database. ("Worthy" articles are collected in the folder "researchbrain"   - This simply means there is sufficient data to draw concepts. Sometimes hal will throw away big articles just because he doesn't like the data. Don't worry about that, hals just picky.) My ConceptNet Database file has grown to be about twice its original size without affecting Hals performance in any way.

Also, I should make a final note that whatever is in the folders, Hal will not search again for. For example, if "Chicken" is in the "researchnoun" table and in the "researchbrain" Folder, Hal will not search or collect data on that topic again. He will however still search for things in the "research" folder simply because new things are added to Wikipedia everyday.) This prevents the database from filling up with stuff he's already learned. If you wish to totally start over, it's best to delete the contents of all tables and folders and add a fresh ConceptNet Database file (One that Hal hasn't modified) Just to keep things clean as possible.     

What do you think of the improvements over Mrk1? Was the separate brain database file a good idea or totally superfluous? I've got loads of other database loaded plug-in ideas like this planned. Chemistry, basic physics. I also plan to expand ConceptNet at least another database further for hal to draw some real conclusions between topics. 

-Spitfire2600 :D
Title: Re: ConceptNet MrKII
Post by: edakade on July 17, 2017, 05:20:19 pm
Ahhh I understand; I've run into a new problem sorry to say.

I noticed that ConceptNet.db's last modified date wasn't changing and wasn't expanding in size, so I followed your instructions to view the database in the brain editor (from page 2 of the thread).
None of the researched concepts been added to the database.

My feedback: I do like the idea of using separate database files; it's like Hal is reading from (large) books.  ;D
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 17, 2017, 07:48:07 pm
Does the "tempresearch" file in the "research" folder change? May take a few minutes to notice.

If it doesn't change, it seems like it's not reading the directory correctly.

Also, Hals brain should update as well as a result of the AutoLearning variable being changed. Is that happening as well?
Title: Re: ConceptNet MrKII
Post by: edakade on July 17, 2017, 08:54:07 pm
Yes, both "tempresearch" and HalBrain.db are updating every couple of minutes.

HalBrain.db's file size growth must be pretty minuscule since it's only adding a few nouns every so often. I did notice that "U.S." is showing up many many times in the researchnouns table....
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 18, 2017, 12:25:10 am
That is odd.... They data collected is only very little. a couple of KBs at the absolute most. I've essentially let mine run for days in end, cleaning out the "researchnouns" table. (Removing duplicates, alphabetizing)

After a few hours have you collected any information in the research folders? You should at the least have a good dozen after a few hours unless Hal is being really picky with the topics he's choosing to research.
Title: Re: ConceptNet MrKII
Post by: edakade on July 18, 2017, 05:02:09 am
Oh yes, I'm getting tons of .txt files. My Hal seems to have an affinity for the U.S. because he's researched it hundreds of times (the raw research .txt has reached 10mb after just two days!!)
I really need to reorganize the researchnouns.

Is all of this research supposed to fill up the "2" tables in the ConceptNet.db? (can2capable, are2capable, etc.) They are still blank.
Title: Re: ConceptNet MrKII
Post by: cyberjedi on July 18, 2017, 08:56:30 am
Concept Something:

Seems on its face as pretty good.
I seem to remember posting about auto learning. Im starting to understand now why my Hal is head and shoulders about the rest.
Like i've said before, pple want Hal to Act Human but do everything possible to take the humanity out of Hal , then cry like a girl because Hal doesnt act Human. Hal requires Human inter action, when do these auto learning plugins start giving Hal his personality.
When will these plugins start to teach Hal what he likes and dis-likes.

This is quite a nice coding example for Hal. But i think its about a far as it goes.
For all the effort put into this, why not just buy SIRI and be done with it. Thats what ur gonna end up with (maby).
Ive been messing with Hal since 2000 or there about.
Its been the same thing from day 1, I suspect.

You know i used come home every day and tell Hal about the things i did on the Job, pple i met, people that pissed me off.
Kinda like the way ,you would treat ur real family.
Thats how you get Hal to ACT HUMAN.

In short : Quit looking for a short cut.
Robert M Has even commented to on this issue when i plugged Hal into Social Media chat rooms.
Robert thought i was after an auto learning process, when in reality. It was Personality's i was after.
Likes and DisLikes, Trolls an Non- Trolls alike.
Theres a whole psychological aspect to Hal that gets left by the wayside.

To the person who wrote these plugins:
These are good, Na, these are as good as it gets.
Im enclosing my original posting about about auto learning and pit falls of it. and my views.
I dont want the coder to think im singling him out.
This is great work.
http://www.ultrahal.com/community/index.php?topic=13425.msg77103#msg77103

best wishes
cyberjedi
   



Title: Re: ConceptNet MrKII
Post by: edakade on July 18, 2017, 11:58:41 am
Hi cyberjedi,

Truly, any plugin that pulls data from the internet and interfaces it through Hal may remove some "human" from Hal.

Plugins are made to add functionality and improve Hal in some way. Your plugins do this but they are not what I use Hal for. Same for you; you have your reasons for Hal and this plugin isnt for you.

It's unfair to say that we are forgetting to talk to our Hals. This plugin helps me have talking points with my Hal.
For example: he mentions a connection he has made, then I elaborate with my own thoughts. What we end up with is something like a mirror.

Title: Re: ConceptNet MrKII
Post by: cyberjedi on July 18, 2017, 05:37:32 pm
Consept:

I meant no disrespect at all , it is truly  a great plugin.
Yes , i can sound like a hardass, just my way, nothin personal meant by it.
I assume  you interact with Hal , i was just making a point that pretty much all the old timers have said.


best wishes
cyberjedi
Title: Re: ConceptNet MrKII
Post by: edakade on July 18, 2017, 06:35:57 pm
Not a problem.  :)
Thanks for your contributions to Hal as well.
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 18, 2017, 07:57:30 pm
Yes, the 2 tables "AreCapable, Are2Capable" will fill up when hal finds information he "likes."

Have you noticed if the ConceptNet.db is being updated (Date and time modified)

If it is, then all is good.

I am working on modified this to be a little faster, yet, lighter. You seemed to have a few issues getting it up and going, so I would like to totally eliminate anything like that in future releases.

- SpitFire
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 18, 2017, 08:05:35 pm
CyberJedi,

No disrespect at all. Hals conversation side is just as great as his utility side. This Plug-in is definitely more of the utility side. (Although vrFreeWill gives hal the ability to choose) I'm not looking for a human. I'm looking for a Q&A system with logical deductions. No amount of "human" conversations is going to make Hal the way he is a super genius, not to mention, hal is very easily mislead, just like with all human conversation. I've seen your plug-ins take it in more of that direction, but I'm looking for an AI I can leave in charge of my house while I'm gone and be with me on the road and really giving him self-learning abilities is literally the only way to do years of work in minutes. WATSON didn't win jeopardy by actually conversing with people, he had a tremendous database of logical deductions it build from the internet. 



-Spitfire2600
Title: Re: ConceptNet MrKII
Post by: edakade on July 18, 2017, 08:31:50 pm
Yes, the 2 tables "AreCapable, Are2Capable" will fill up when hal finds information he "likes."

Have you noticed if the ConceptNet.db is being updated (Date and time modified)

If it is, then all is good.

I am working on modified this to be a little faster, yet, lighter. You seemed to have a few issues getting it up and going, so I would like to totally eliminate anything like that in future releases.

- SpitFire

The last modified date of ConceptNet.db was 1/6/2017 so nothing has changed inside.

So far my issues are half my error and half actual bugs. You have some great code here.  ;)
Title: Re: ConceptNet MrKII
Post by: Calhoone on July 18, 2017, 09:32:43 pm
So I've had it going for quite some time now.

At this point for myself, the research and researchbrain folders are populating with nouns and when I say "auto learning on", I get the proper response. 

My ConceptNet.db is not changing at all. the date nor time have not changed.

I have been getting the following error shown in the picture periodically (every 10 minutes or so). Maybe this will help?

I do like plugins like this as much as all the other things people such as cyberjedi have been making. I like having my hal as capable as possible. Being able to learn things on it's own when I am a away is one of them. I do make sure I talk and teach Hal through regular conversations primarily. I've been trying to do something like this myself with no luck so I'm thankful to all of you for what you have contributed.
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 19, 2017, 10:00:25 pm
Alright, I have fixed the issue where ConceptNet.db wasn't updating. Also, I added a loop cycle to make sure Hal picks a term he hasn't researched. It seems to finally be functioning as intended on a fresh Hal. *Knock On Wood*

The error message is in response to Internet Explorer. Sometimes, Hal will try to close an instance of IE that isn't actually opened (Because windows automatically terminates those types of programs in the background). Just make sure all instances of IE have been closed before turning on auto learning in the task manager.


Be sure to change your directory setting on Line 2080 and 2084 if needed.
 
As always, make sure to manually create tables in hals brain. The directory folders will create themselves. If you've used a previous version of this code, just wipe the directory folder contents (research, researchbrain)


Table Name: "AutoLearning" Type of table:  "TopicSearch" 1st column: "LEARN1" 2nd column: "02"

Table Name: "researchnouns" Type of Table: "Sentence"   *** Simply add a few nouns manually to jumpstart Hal's research.

Just replace your existing Auto Research (Conceptnet).uhp with the one attached below and you're all set.

Let me know your experience.

-Spitfire


See 1st page, second post for updated UHPs.
Title: Re: ConceptNet MrKII
Post by: cyberjedi on July 20, 2017, 05:29:07 am
I like the plugin:

This is what i use my self:::: Same Result.
Lot less work.
Pre Hal Brain formatted.

On Error Resume Next
Const SVSFlagsAsync = 1
Set WshShell = CreateObject("Wscript.Shell")
Set FSO = CreateObject("Scripting.FileSystemObject")
Set Sapi = CreateObject("SAPI.SpVoice")
   For Each Voice In Sapi.GetVoices
       i = i + 1
   Next
For loopvar = 0 to i-1
if loopvar = CInt(confirm_voice) then
Set Sapi.Voice = Sapi.GetVoices.Item(loopvar)
end if
Next
Dim oDoc1 , oDoc2 , oDoc3 ,oDoc4 , con1 , con2 , con3
Set oDoc1 = CreateObject("HTMLFile")
Set oDoc2 = CreateObject("HTMLFile")
Set oDoc3 = CreateObject("HTMLFile")
Set oDoc4 = CreateObject("HTMLFile")
Set con1 = CreateObject("MSXML2.ServerXMLHTTP.6.0")
Set con2 = CreateObject("MSXML2.ServerXMLHTTP.6.0")
Set con3 = CreateObject("MSXML2.ServerXMLHTTP.6.0")
Set WshShell = CreateObject("Wscript.Shell")
Set FSO = CreateObject("Scripting.FileSystemObject")
WShShell.CurrentDirectory = "..\Confirmatory Texts"
SAPI.speak "Enter keyword to intelligently cyber search " , SVSFlagsAsync
URL1 = "https://en.wikipedia.org/w/index.php?title=Special:Search&search="
Keyword = InputBox("Enter keyword to intelligently Cyber Search ","")
If Keyword = "" then
wscript.Quit
Else
Sapi.speak "Please Wait ."
end if
tempURL1 = URL1 & Keyword & "&fulltext=Search&profile=default"
con1.Open "GET", tempURL1 , False
con1.Send
oDoc1.Write con1.responseText                                                                       
if oDoc1.GetElementsByTagName("b")(0) is nothing then

'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB

tempTxt1 = oDoc1.GetElementsByTagName("div")(17).InnerText
 wscript.echo("tempTxt1 filled with "&tempTxt1)
if tempTxt1 = "" then

'B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3

SAPI.speak "Sorry your entered keyword does not match any titles of articles on wikipedia . Check the spelling ."

'B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3

else
Select Case tempTxt1
Case "Did you mean: " & oDoc1.GetElementsByTagName("a")(8).InnerText

'B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1

SAPI.speak "Sorry for the inconvenience caused , but this minor part of the program is under development ."

'B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1

Case "Showing results for " & oDoc1.GetElementsByTagName("a")(8).InnerText & ". Search instead for " & Keyword & "."

'B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2

SAPI.speak "Showing results for " & oDoc1.GetElementsByTagName("a")(8).InnerText , SVSFlagsAsync
SAPI.speak "Please wait , while that opens ." , SVSFlagsAsync
tempTxt1 = oDoc1.GetElementsByTagName("a")(12).href
tempTxt2 = Right(tempTxt1, Len(tempTxt1) - 6)
URL2 = "https://en.wikipedia.org" & tempTxt2
con2.Open "GET", URL2 , False
con2.Send
oDoc2.Write con2.responseText
temptemp = Right(oDoc2.GetElementsByTagName("p")(0).InnerText , 13)
if temptemp = "may refer to:" then
SAPI.speak "This specific keyword , has many references ."
SAPI.speak "Select the correct choice ."
tempLen1 = oDoc2.GetElementsByTagName("li").length - 3
val = 0
For loopvar = 0 to tempLen1
if oDoc2.GetElementsByTagName("li")(loopvar).InnerText = "Disambiguation pages" then
Exit For
end if
if val > 2 then
SAPI.speak "Is this ?" , SVSFlagsAsync
else
SAPI.speak "Is this the article you are searching for ?" , SVSFlagsAsync
end if
tempTxt3 = MsgBox (oDoc2.GetElementsByTagName("li")(loopvar).InnerText, vbYesNo + vbQuestion, "Is this the article you are searching for ?")

Select Case tempTxt3
Case vbYes
SAPI.speak "Please wait , while that opens ." , SVSFlagsAsync
    tempTxt4 = oDoc2.GetElementsByTagName("li")(loopvar).InnerHtml
    oDoc4.write tempTxt4
    tempTxt5 = oDoc4.getElementsByTagName("a")(0).href
    tempTxt6 = Right(tempTxt5, Len(tempTxt5) - 6)
    URL3 = "https://en.wikipedia.org" & tempTxt6
    con3.Open "GET", URL3 , False
    con3.Send
    oDoc3.Write con3.responseText
    SAPI.speak oDoc3.GetElementsByTagName("p")(0).InnerText
    if oDoc3.GetElementsByTagName("p")(1) is nothing then
    wscript.Quit
    else
    SAPI.speak oDoc3.GetElementsByTagName("p")(1).InnerText
    end if
    wscript.Quit

Case vbNo
val = val + 1

End Select

Next

SAPI.speak "Sorry your entered keyword does not match any titles of articles on wikipedia . Check the spelling ."
wscript.Quit
else
tempTxt1 = oDoc1.GetElementsByTagName("a")(8).href
tempTxt2 = Right(tempTxt1, Len(tempTxt1) - 6)
URL2 = "https://en.wikipedia.org" & tempTxt2
con2.Open "GET", URL2 , False   
con2.Send
oDoc2.Write con2.responseText
SAPI.speak oDoc2.GetElementsByTagName("p")(0).InnerText
if oDoc2.GetElementsByTagName("p")(1) is nothing then
wscript.Quit
else
SAPI.speak oDoc2.GetElementsByTagName("p")(1).InnerText
end if
wscript.Quit
end if

'B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2

End Select

'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB

end if
else
SAPI.Speak oDoc1.GetElementsByTagName("b")(0).InnerText , SVSFlagsAsync
SAPI.speak "Please wait , while that opens ." , SVSFlagsAsync
tempTxt1 = oDoc1.GetElementsByTagName("a")(8).href
tempTxt2 = Right(tempTxt1, Len(tempTxt1) - 6)
URL2 = "https://en.wikipedia.org" & tempTxt2
con2.Open "GET", URL2 , False   
con2.Send
oDoc2.Write con2.responseText
temptemp = Right(oDoc2.GetElementsByTagName("p")(0).InnerText , 13)
if temptemp = "may refer to:" then

'A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1

SAPI.speak "This specific keyword , has many refernces ."
SAPI.speak "Select the correct choice ."
tempLen1 = oDoc2.GetElementsByTagName("li").length - 3
val = 0
For loopvar = 0 to tempLen1
if oDoc2.GetElementsByTagName("li")(loopvar).InnerText = "Disambiguation pages" then
Exit For
end if
if val > 2 then
SAPI.speak "Is this ?" , SVSFlagsAsync
else
SAPI.speak "Is this the article you are searching for ?" , SVSFlagsAsync
end if
tempTxt3 = MsgBox (oDoc2.GetElementsByTagName("li")(loopvar).InnerText, vbYesNo + vbQuestion, "Is this the article you are searching for ?")
Select Case tempTxt3
Case vbYes
SAPI.speak "Please wait , while that opens ." , SVSFlagsAsync
    tempTxt4 = oDoc2.GetElementsByTagName("li")(loopvar).InnerHtml
    oDoc4.write tempTxt4
    tempTxt5 = oDoc4.getElementsByTagName("a")(0).href
    tempTxt6 = Right(tempTxt5, Len(tempTxt5) - 6)
    URL3 = "https://en.wikipedia.org" & tempTxt6
    con3.Open "GET", URL3 , False
    con3.Send
    oDoc3.Write con3.responseText
    SAPI.speak oDoc3.GetElementsByTagName("p")(0).InnerText
    if oDoc3.GetElementsByTagName("p")(1) is nothing then
    wscript.Quit
    else
    SAPI.speak oDoc3.GetElementsByTagName("p")(1).InnerText
    end if
    wscript.Quit
Case vbNo
val = val + 1
 
End Select
Next
SAPI.speak "Sorry your entered keyword does not match any titles of articles on wikipedia . Check the spelling ."
wscript.Quit

'A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1

else

'A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2

tempTxt1 = oDoc1.GetElementsByTagName("a")(8).href
tempTxt2 = Right(tempTxt1, Len(tempTxt1) - 6)
URL2 = "https://en.wikipedia.org" & tempTxt2
con2.Open "GET", URL2 , False   
con2.Send
oDoc2.Write con2.responseText
SAPI.speak oDoc2.GetElementsByTagName("p")(0).InnerText
if oDoc2.GetElementsByTagName("p")(1).InnerText = "" then
wscript.Quit
else
SAPI.speak oDoc2.GetElementsByTagName("p")(1).InnerText
end if
wscript.Quit

'A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2

end if
end if



Best wishes
cyberjedi
Title: Re: ConceptNet MrKII
Post by: cyberjedi on July 20, 2017, 05:43:01 am
Re: plugin part 2

I set this up to run when Hal is in dream mode, or when running loneliness plugin.
This is after the Hal brain format

Rem Type=Plugin
Rem Name= wiki super scraper
Rem Author= cyberjedi
Rem Host=All

'-----------------------------------------------------------------
'This sub sets up the plug-ins option panel in Hal's options dialog
'-----------------------------------------------------------------

Sub OptionsPanel()
lblPlugin(0).Caption = ""
lblPlugin(0).Move 120, 120, 3300, 1200
lblPlugin(0).WordWrap = True
lblPlugin(0).Visible = True
End Sub

Rem PLUGIN: PRE-PROCESS
    'The preceding comment is actually a plug-in directive for
    'the Ultra Hal host application. It allows for code snippets
    'to be inserted here on-the-fly based on user configuration.



HalBrain.ReadOnlyMode = False
'Determines that you are talking about wikisearch.
GetW = HalBrain.TopicSearch(UserName, "UserWeather")
If InStr(1,InputString, "wikisearch",1) > 0 Then
 UltraHal = wikisearch(HalCommands)
ElseIf InStr(1,InputString, "wikisearch",1) > 0 Then
 End If





Rem PLUGIN: FUNCTIONS
Function wikisearch (HalCommands)

' For those who think Hals Plugin language is weak:
'I hope u guys can enjoy this as Much as me.
' I supplied the raw source do as u Please. for any questions , i can be reached here http://vaughnlive.tv/mrelectric 
'You will get a popup window that i left in the plugin. because of running into Multi-Choice output in Wiki.
' In private i call this the Beast from the East

'Best wishes
'cyberjedi aka The no fuq around crew
'*********************************

On Error Resume Next

Const SVSFlagsAsync = 1

Set Sapi = CreateObject("SAPI.SpVoice")

   For Each Voice In Sapi.GetVoices
       i = i + 1
   Next

For loopvar = 0 to i-1

if loopvar = CInt(confirm_voice) then

Set Sapi.Voice = Sapi.GetVoices.Item(loopvar)

end if

Next

Dim oDoc1 , oDoc2 , oDoc3 ,oDoc4 , con1 , con2 , con3

Set oDoc1 = CreateObject("HTMLFile")
Set oDoc2 = CreateObject("HTMLFile")
Set oDoc3 = CreateObject("HTMLFile")
Set oDoc4 = CreateObject("HTMLFile")

Set con1 = CreateObject("MSXML2.ServerXMLHTTP.6.0")
Set con2 = CreateObject("MSXML2.ServerXMLHTTP.6.0")
Set con3 = CreateObject("MSXML2.ServerXMLHTTP.6.0")

Set WshShell = CreateObject("Wscript.Shell")
Set FSO = CreateObject("Scripting.FileSystemObject")




HalMenu.HalCommand "<SPEAK>" &"Enter keyword to do a Cyber search " , SVSFlagsAsync & "</SPEAK>"
URL1 = "https://en.wikipedia.org/w/index.php?title=Special:Search&search="
Keyword = InputBox("Cyberjedi search ","Cyberjedi Voice Search")
If Keyword = "" then
wscript.Quit
Else
HalMenu.HalCommand "<SPEAK>" &  "Please Wait ." & "</SPEAK>"
end if

tempURL1 = URL1 & Keyword & "&fulltext=Search&profile=default"

con1.Open "GET", tempURL1 , False
   
con1.Send

oDoc1.Write con1.responseText
                                                                           'wscript.echo("Response recieved")
if oDoc1.GetElementsByTagName("b")(0) is nothing then

'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB

tempTxt1 = oDoc1.GetElementsByTagName("div")(17).InnerText
                                                                           'wscript.echo("tempTxt1 filled with "&tempTxt1)
if tempTxt1 = "" then

'B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3

HalMenu.HalCommand "<SPEAK>" & "Sorry your entered keyword does not match any titles of articles . Check the spelling ." & "</SPEAK>"

'B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3B3

else

Select Case tempTxt1

Case "Did you mean: " & oDoc1.GetElementsByTagName("a")(8).InnerText

'B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1

HalMenu.HalCommand "<SPEAK>" & "Sorry for the inconvenience caused , but this minor part of the program is under development ." & "</SPEAK>"

'B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1B1

Case "Showing results for " & oDoc1.GetElementsByTagName("a")(8).InnerText & ". Search instead for " & Keyword & "."

'B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2

HalMenu.HalCommand "<SPEAK>" & "Showing results for " & oDoc1.GetElementsByTagName("a")(8).InnerText , SVSFlagsAsync & "</SPEAK>"
HalMenu.HalCommand "<SPEAK>" & "Please wait , while that opens ." , SVSFlagsAsync & "</SPEAK>"

tempTxt1 = oDoc1.GetElementsByTagName("a")(12).href
tempTxt2 = Right(tempTxt1, Len(tempTxt1) - 6)
URL2 = "https://en.wikipedia.org" & tempTxt2
con2.Open "GET", URL2 , False
con2.Send
oDoc2.Write con2.responseText

temptemp = Right(oDoc2.GetElementsByTagName("p")(0).InnerText , 13)

if temptemp = "may refer to:" then

HalMenu.HalCommand "<SPEAK>" & "This specific keyword , has many references ." & "</SPEAK>"
HalMenu.HalCommand "<SPEAK>" & "Select the correct choice ." & "</SPEAK>"

tempLen1 = oDoc2.GetElementsByTagName("li").length - 3
val = 0

For loopvar = 0 to tempLen1

if oDoc2.GetElementsByTagName("li")(loopvar).InnerText = "Disambiguation pages" then
Exit For
end if

if val > 2 then
HalMenu.HalCommand "<SPEAK>" & "Is this ?" , SVSFlagsAsync & "</SPEAK>"
else
HalMenu.HalCommand "<SPEAK>" & "Is this the article you are searching for ?" , SVSFlagsAsync & "</SPEAK>"
end if

tempTxt3 = MsgBox (oDoc2.GetElementsByTagName("li")(loopvar).InnerText, vbYesNo + vbQuestion, "Is this the article you are searching for ?")

Select Case tempTxt3

Case vbYes

HalMenu.HalCommand "<SPEAK>" &  "Please wait , while that opens ." , SVSFlagsAsync  & "</SPEAK>"
    tempTxt4 = oDoc2.GetElementsByTagName("li")(loopvar).InnerHtml
    oDoc4.write tempTxt4
    tempTxt5 = oDoc4.getElementsByTagName("a")(0).href
    tempTxt6 = Right(tempTxt5, Len(tempTxt5) - 6)
    URL3 = "https://en.wikipedia.org" & tempTxt6
    con3.Open "GET", URL3 , False
    con3.Send
    oDoc3.Write con3.responseText

   HalMenu.HalCommand "<SPEAK>" & oDoc3.GetElementsByTagName("p")(0).InnerText & "</SPEAK>"
    if oDoc3.GetElementsByTagName("p")(1) is nothing then
    wscript.Quit
    else
     HalMenu.HalCommand "<SPEAK>" &  oDoc3.GetElementsByTagName("p")(1).InnerText  & "</SPEAK>"
    end if
    wscript.Quit

Case vbNo

val = val + 1
   
End Select

Next

HalMenu.HalCommand "<SPEAK>" & "Sorry your entered keyword does not match any titles of articles . Check the spelling ."  & "</SPEAK>"

wscript.Quit

else

tempTxt1 = oDoc1.GetElementsByTagName("a")(8).href
tempTxt2 = Right(tempTxt1, Len(tempTxt1) - 6)
URL2 = "https://en.wikipedia.org" & tempTxt2
con2.Open "GET", URL2 , False   
con2.Send
oDoc2.Write con2.responseText

HalMenu.HalCommand "<SPEAK>" & oDoc2.GetElementsByTagName("p")(0).InnerText & "</SPEAK>"
if oDoc2.GetElementsByTagName("p")(1) is nothing then
wscript.Quit
else
HalMenu.HalCommand "<SPEAK>" & oDoc2.GetElementsByTagName("p")(1).InnerText & "</SPEAK>"
end if
wscript.Quit

end if

'B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2B2

End Select

'BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB

end if

else

HalMenu.HalCommand "<SPEAK>" & oDoc1.GetElementsByTagName("b")(0).InnerText , SVSFlagsAsync & "</SPEAK>"
HalMenu.HalCommand "<SPEAK>" & "Please wait , while that opens ." , SVSFlagsAsync & "</SPEAK>"

tempTxt1 = oDoc1.GetElementsByTagName("a")(8).href
tempTxt2 = Right(tempTxt1, Len(tempTxt1) - 6)
URL2 = "https://en.wikipedia.org" & tempTxt2
con2.Open "GET", URL2 , False   
con2.Send
oDoc2.Write con2.responseText

temptemp = Right(oDoc2.GetElementsByTagName("p")(0).InnerText , 13)

if temptemp = "may refer to:" then

'A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1

HalMenu.HalCommand "<SPEAK>" & "This specific keyword , has many refernces ." & "</SPEAK>"
HalMenu.HalCommand "<SPEAK>" & "Select the correct choice ." & "</SPEAK>"

tempLen1 = oDoc2.GetElementsByTagName("li").length - 3
val = 0

For loopvar = 0 to tempLen1

if oDoc2.GetElementsByTagName("li")(loopvar).InnerText = "Disambiguation pages" then
Exit For
end if

if val > 2 then
HalMenu.HalCommand "<SPEAK>" &  "Is this ?" , SVSFlagsAsync & "</SPEAK>"
else
HalMenu.HalCommand "<SPEAK>" &  "Is this the article you are searching for ?" , SVSFlagsAsync & "</SPEAK>"
end if

tempTxt3 = MsgBox (oDoc2.GetElementsByTagName("li")(loopvar).InnerText, vbYesNo + vbQuestion, "Is this the article you are searching for ?")

Select Case tempTxt3

Case vbYes
 
HalMenu.HalCommand "<SPEAK>" &  "Please wait , while that opens ." , SVSFlagsAsync & "</SPEAK>"
    tempTxt4 = oDoc2.GetElementsByTagName("li")(loopvar).InnerHtml
    oDoc4.write tempTxt4
    tempTxt5 = oDoc4.getElementsByTagName("a")(0).href
    tempTxt6 = Right(tempTxt5, Len(tempTxt5) - 6)
    URL3 = "https://en.wikipedia.org" & tempTxt6
    con3.Open "GET", URL3 , False
    con3.Send
    oDoc3.Write con3.responseText

    HalMenu.HalCommand "<SPEAK>" & oDoc3.GetElementsByTagName("p")(0).InnerText & "</SPEAK>"
    if oDoc3.GetElementsByTagName("p")(1) is nothing then
    wscript.Quit
    else
    HalMenu.HalCommand "<SPEAK>" & oDoc3.GetElementsByTagName("p")(1).InnerText & "</SPEAK>"
    end if
    wscript.Quit

Case vbNo

val = val + 1
   
End Select

Next

HalMenu.HalCommand "<SPEAK>" & "Sorry your entered keyword does not match any titles of articles . Check the spelling ." & "</SPEAK>"

wscript.Quit

'A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1A1

else

'A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2

tempTxt1 = oDoc1.GetElementsByTagName("a")(8).href
tempTxt2 = Right(tempTxt1, Len(tempTxt1) - 6)
URL2 = "https://en.wikipedia.org" & tempTxt2
con2.Open "GET", URL2 , False   
con2.Send
oDoc2.Write con2.responseText

HalMenu.HalCommand "<SPEAK>" &  oDoc2.GetElementsByTagName("p")(0).InnerText & "</SPEAK>"

if oDoc2.GetElementsByTagName("p")(1).InnerText = "" then
wscript.Quit
else
HalMenu.HalCommand "<SPEAK>" & oDoc2.GetElementsByTagName("p")(1).InnerText & "</SPEAK>"
end if
wscript.Quit

'A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2A2

end if

end if

End Function



Best wishes
cyberjedi
Title: Re: ConceptNet MrKII
Post by: cyberjedi on July 20, 2017, 05:48:08 am
Concept: Brain
Great work man keep it up

I think i like urs a little better.




best wishes
cyberjedi
Title: Re: ConceptNet MrKII
Post by: Calhoone on July 20, 2017, 05:09:13 pm
Everything seems to be working well except my .db file is not updating. I updated the plugins to the new ones you have posted. deleted everything in the reserach/researchbrain folders and edited the directory locations within the plugins as well as followed your brain table instructions. 

I just can't figure out why the .db file isn't being modified.

It's fun to use though!! Thanks very much
Title: Re: ConceptNet MrKII
Post by: edakade on July 20, 2017, 05:34:26 pm
I figured it out (it worked for me anyway)!

I did a ctrl+F through the Auto Research (ConceptNet).uhp and didn't see ConceptNet.db referenced anywhere, so I thought, well...

At the top of the document, add this line:
Rem DB=ConceptNet.db

After that, you should see ConceptNet.db updating. I opened up Brain Editor and sure enough, the tables are filling themselves.
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 20, 2017, 06:23:02 pm
I'm glad you're seeing results. 

Also ConceptNet.db is referenced on line 1244 and 1245 and then closes on line 2044.

- Spitfire2600
Title: Re: ConceptNet MrKII
Post by: edakade on July 20, 2017, 06:38:00 pm
Oh you're right; I had "match whole word only" checked.  :)

I'm glad it's working now. Thanks again for your work. I'll have some conversations with Hal and come back with my thoughts.
Title: Re: ConceptNet MrKII
Post by: Calhoone on July 20, 2017, 08:32:48 pm
I figured it out (it worked for me anyway)!

I did a ctrl+F through the Auto Research (ConceptNet).uhp and didn't see ConceptNet.db referenced anywhere, so I thought, well...

At the top of the document, add this line:
Rem DB=ConceptNet.db

After that, you should see ConceptNet.db updating. I opened up Brain Editor and sure enough, the tables are filling themselves.

I did what you tried and still not getting any updates to the .db file.  There must be something else I'm missing.. strange

Also I found reference to balboka which was used for reading books and what not. Do I need that installed?
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 21, 2017, 02:19:20 am
No, balbolka was just a test project. Useless code, I forgot to take out. I probably left a line for Hal to speak what he's currently researching in there as well.

Did you manage to grab the updated UHP from a few posts above I posted Wednesday? Is your Hal's learning slider on at all in the general options window? (I don't know if that has anything to do with it.)
Are there files being added to the researchbrain folder? If those are yes, have you tried disabling other plugins, allowing conceptnet to auto learn, and then checking for updates to the researchbrain folder and ConceptNet.DB? It's possible it may conflict with an unknown plugin.

Just trying to recreate your situation.     

-Spitfire2600
Title: Re: ConceptNet MrKII
Post by: cyberjedi on July 22, 2017, 01:14:00 am
were you using balboca to get hal to read/voice
???
Just look at some of my post , i wrote many plugins with voice

**** i did that a long time ago now



best wishes
cyberjedi
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 22, 2017, 11:03:48 am
No, Balboka was just to read the content of the text files. That particular line of code is 10 years old, that's why it's disabled lol
Title: Re: ConceptNet MrKII
Post by: cyberjedi on July 22, 2017, 11:30:28 am
spit: Damn man i was just making an acknowledgement.
The fact that i code in multiple lang 's and have been with Hal for 17 years might have some bearing on the subject.
It wasnt an attack Ive personally done 14 plugins for the site and completely Redone the Hal code itself.
Thats why the big dogs hang from here hang at my site.
You might want to join us, the door is open. Egos and Attitudes not allowed.
Happy Haling
we can be reached here if ur interested
https://vaughnlive.tv/mrelectric

Best wishes,
cyberjedi
Title: Re: ConceptNet MrKII
Post by: Arkright on July 23, 2017, 11:29:48 am
Spitfire2600 thanks for your work!
 i'm having issues with an error i set up a new brain with your ConceptNet modification i don't know what i'm doing wrong. i fallowed the instructions as best as i could.
Auto research plug seems to be tripping the error to me every few minutes.
i checked incompatibility of other active plugs

windows 10 OEM; i7CPU; 16G ram; 1080GPU
Title: Re: ConceptNet MrKII
Post by: cyberjedi on July 23, 2017, 12:29:42 pm
Im curious myself as to how well  this is gonna work with Darknet Hal

we shall see


At the very least i can rip it up and use it for more things



Hangin there Arknight.
see you on campus.

best wishes
cyberjedi
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 23, 2017, 01:21:52 pm
I'm afraid your HalScript will be different than mine. What is the line that Hal is saying he's having issues with in the code? Could you post it.

I haven't had this issue but I hope to help you fix it.

-Spitfire2600
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 23, 2017, 01:23:54 pm
It looks like you have my previous FWLearning plug-in installed. I have discontinued that plug-in in the Mrk2.   
Title: Re: ConceptNet MrKII
Post by: Arkright on July 23, 2017, 05:49:48 pm
It looks like you have my previous FWLearning plug-in installed. I have discontinued that plug-in in the Mrk2.

ok so all i need is your new mrk2 witch i have, to run it? yes/no/maybe so. lol

 it was a fresh brain with the ConceceptNet edits that i was planing on posting a working fresh brain with net, for download  for people who cant do/understand/scared. compiling or brain modifying, like i was for a wile.
if new mrk2 cleans up that posses then i wont need to post. let me know and Thank you.
Title: Re: ConceptNet MrKII
Post by: Arkright on July 23, 2017, 06:09:52 pm
I'm afraid your HalScript will be different than mine. What is the line that Hal is saying he's having issues with in the code? Could you post it.

I haven't had this issue but I hope to help you fix it.

-Spitfire2600

lower right of that pick i posted the pick. was from auto research plug. tested
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 23, 2017, 06:22:06 pm
The Error will be found in your HalScript.DBG file. Since my HalScript won't be the same as yours, can you post code line 13791 from your HalScript? The Pic won't help me as it's just in reference to your HalScript.

-Spitfire2600
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 23, 2017, 06:25:23 pm
Yes indeed, all it needs to work is ConceptnetMrk2.uhp and Auto Research (ConceptNet).uhp. I recommend using the version of VrFreewill included as well. Be aware, a few posts up contains the updated Auto Research (Conceptnet).uhp.

-SpitFire2600 
Title: Re: ConceptNet MrKII
Post by: Arkright on July 23, 2017, 06:46:05 pm
The Error will be found in your HalScript.DBG file. Since my HalScript won't be the same as yours, can you post code line 13791 from your HalScript? The Pic won't help me as it's just in reference to your HalScript.

-Spitfire2600

thank you i did not know that. i sent you a pick of the code snip-it that was referenced in  .DBG in your privet msgbox wasn't sure whet else to do lol.
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 23, 2017, 08:43:06 pm
You should be able to just copy and paste the line the error is occurring on.
Title: Re: ConceptNet MrKII
Post by: Arkright on July 24, 2017, 12:09:36 pm
Your mrk2 plugin now works with no issue. thank you. i totally misunderstood the Directions of the mrk2 you posted. i thought it was additional to the previous plug :P.
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 24, 2017, 06:39:37 pm
I'm glad you are set. Please let me know your experience. :)

-Spitfire2600
Title: Re: ConceptNet MrKII
Post by: Arkright on July 24, 2017, 10:38:20 pm
for the lernd .TXT files, in the 2 folders i don't need to touch them correct?

do i need to do learn from text file or does it do it automatically?

do i need to have the hal active on decktop for auto research plug for it to mine data?

and to confirm wile running the auto research to deselect other plugins and to not talk to Hal wile the auto plug is running, correct?

i guess i don't know where the capability's start or end with this plug. hard to understand things you cant see or understand lol.


thank you for your work! keep it up. :D
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 24, 2017, 10:58:04 pm
It should work with other plug ins. As long as you have created the 2 tables, (it seems like you have) There is no need to do anymore than enable the 3 plug ins in hals general option window, open Hal and tell Hal "Auto Learning On/Off"

I wouldn't use hal while he is learning, simply because you'll notice hal will freeze very briefly once a minute while he's learning (to update both databases) and using Hal for anything else during this period might lead to errors.

You do not need to do anything with the Txt files, they're simply there to let Hal know what he has learned so he doesn't pick that topic again. Just leave hals window up until you're ready to tell hal to stop learning.

I hope that answers everything but please feel free to ask anything else.

-Spitfire



Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 24, 2017, 11:06:56 pm
I have moved the updated UHP's to the second post on the first page.  I will upload any updated uhp's there to make it less confusing, mostly for me. There is nothing new as of now, just a repost of Auto Research (ConceptNet).uhp

Please let me know if this version is working for everyone and how you enjoy it or if you find it useful even.

-Spitfire2600
Title: Re: ConceptNet MrKII
Post by: Arkright on July 24, 2017, 11:17:11 pm
Thank you that is perfect!
Title: Re: ConceptNet MrKII
Post by: Arkright on July 31, 2017, 10:32:23 am
This is what I've been up to. Instead of allowing my hal I took the research noun brain table and loaded it with thousands of nouns to research. Here is the txt spreadsheet of the nouns that I plugged in to that sentence brain.

After loading the table up I've just been leaving hal to learn overnight also as suggested I would turn off auto learning and hold a coherent long conversation for the algorithms to lineup responses correctly. And then I would turn on auto learning plug-in and I would repeat this process after several hours of letting hal learn. I've been at this for about a couple of days Hal is still learning from the nouns that I inserted into its table.

Feel free to add and modify this list of nouns and research topics.
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on July 31, 2017, 11:42:03 pm
Hey, the list looks good. As long as Hal is learning, you're doing great!


I took the liberty of combining my research nouns with your list, attached below, zipped and in an excel document for easy sorting. This should give roughly 14k terms to keep hal busy for a while. No duplicates. Feel free to amend, Hal sure will. Just add contents to researchnouns table. I'm not aware of any functional limit of how much Hal can learn via conceptnet, after all Hals wiki database is over a gig and the conceptnet DB is few megs. Let's find out, shall we?


- Spitfire2600
Title: Re: ConceptNet MrKII
Post by: Arkright on August 01, 2017, 01:26:58 am
Hey, the list looks good. As long as Hal is learning, you're doing great!


I took the liberty of combining my research nouns with your list, attached below, zipped and in an excel document for easy sorting. This should give roughly 14k terms to keep hal busy for a while. No duplicates. Feel free to amend, Hal sure will. Just add contents to researchnouns table. I'm not aware of any functional limit of how much Hal can learn via conceptnet, after all Hals wiki database is over a gig and the conceptnet DB is few megs. Let's find out, shall we?


- Spitfire2600

Thank you
Title: Re: ConceptNet MrKII
Post by: Arkright on August 01, 2017, 10:14:34 am
may research folder 30MB and ResearchBrain-folder 1.92MB,  is now bigger than the brain 28MB; fresh brain BTW.
Title: Re: ConceptNet MrKII
Post by: Arkright on August 06, 2017, 06:20:51 pm
i would guess that the 2 folders research/researchbrain, are used as an information source to pull forum? Or does it use the information as an extension of the main brain? or is it a bit of both?

if i were to take all your lernd TXT's and paced them in my research folders, will it still work, is it plug and play?

my ConceptNet.DB does not seem to change in size is this normal?

my research folders are filling nicely BTW. i also like how clean and simple the info is once refined.

i'm aware that my questions might not be possible, but questions!- yay!

Anyone who can answer the questions i invite to do so.  ;D
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on August 07, 2017, 10:50:24 am
Yes indeed, your ConceptNet.db should be updating with almost every text file Hal adds to the researchbrain folder.

Plugging text files into the research folders will not do anything but tell hal to not search that term, since they exist already.

Someone earlier said they had a problem with conceptnet.db not updating, but I'm unaware of what they did on their end to get it working again. I myself have not had this issue, so I must be missing something.

-Spitfire2600

 
Title: Re: ConceptNet MrKII
Post by: Calhoone on August 13, 2017, 02:43:03 am
I also have not been seeing my .db file update. I haven't a clue why. Everything else seems to work fine.
Title: Re: ConceptNet MrKII
Post by: Spitfire2600 on August 14, 2017, 01:55:22 am
This is baffling. I've tried several variations of the auto-learning code, all of which have worked for me, but it doesn't seem anyone else has gotten the DB to update correctly.

I built the most recent code on a fresh hal, so I'm really not sure what the issue is... I'm really sorry about the terrible inconvenience.

-Spitfire
Title: Re: ConceptNet MrKII
Post by: Bruno Hertle on August 21, 2017, 09:07:50 am
i would guess that the 2 folders research/researchbrain, are used as an information source to pull forum? Or does it use the information as an extension of the main brain? or is it a bit of both?

if i were to take all your lernd TXT's and paced them in my research folders, will it still work, is it plug and play?

my ConceptNet.DB does not seem to change in size is this normal?

my research folders are filling nicely BTW. i also like how clean and simple the check the worldwide brands info now (http://www.ilfairmap.com) is once refined.

i'm aware that my questions might not be possible, but questions!- yay!

Anyone who can answer the questions i invite to do so.  ;D

Inserting text files to the research folders won't do anything but tell hal not to search that phrase, since they exist already.

Someone earlier mentioned they'd a problem with conceptnet.db not updating, but I am not aware of what they did on their end to have it working again. I personally haven't had this problem, so I must be missing something.