dupa

Author Topic: LIGHTSPEED'S MEDICAL TALK LS PLUG IN  (Read 12360 times)

lightspeed

  • Hero Member
  • *****
  • Posts: 6765
    • View Profile
LIGHTSPEED'S MEDICAL TALK LS PLUG IN
« on: December 24, 2013, 01:32:41 pm »
      I am almost all done finally with my medical talk plug in , i have worked on and off on this for a while , as i told ted  i had to correct information , removing periods and " " in mid sentences etc. and not only that some answers where so long that i had to split them up while still making them look right to be one of many random answers that are within this plug in , some was so large i think i made 30? randoms answers to one symptom .
    I put a disclaimer in it for anyone who uses it .
*********** "DISCLAIMER :" **** This plug in was and is in no way ment to replace a doctor or doctors advice and may obtain some mistakes it is for entertainment purposes only and the user by using this uses it at his or her own risk and releases the creator from any liability.
Plug in started 6-11-2013 and finished 12-14-2013.
 Art i need your advice i have some true and some false * read as true or false .
which would be best to use in this case .  Would it be better to read as true (which if i am right, would learn also from what is talked about ? ) . Please let me know as soon as possible so i can correct this part then i'll be finished and can post it in public on my sky drive and the link here .
Thanks ! :)


P.S. TED , i did add in the "pneumonia" symptom. :) ;)

I may do more later this was a big job just for these .

 

lightspeed

  • Hero Member
  • *****
  • Posts: 6765
    • View Profile
Re: LIGHTSPEED'S MEDICAL TALK LS PLUG IN
« Reply #1 on: December 27, 2013, 10:17:35 am »
   Here is a "Late " Christmas gift to everyone from me . i finished (finally) my medical talk ls plug in .
what it does is if a person says one of the many trigger words in a sentence the hal a.i. will give many random bits of information about the symptoms and or cures etc.
     Although i put it on the inside of the plug in i will repeat it here, a special thanks to Cload, Art, Otc2005 , and anyone else who may have helped me with script problems when i had some .
the plug in has read true settings on each symptom . although it's been a big job , i may add more symptoms later which can be added on this one .

    *********** "DISCLAIMER :" **** This plug in was and is in no way ment to replace a doctor or doctors advice and may obtain some mistakes it is for entertainment purposes only and the user by using this uses it at his or her own risk and releases the creator from any liability. THIS PLUG IN IS FOR PERSONAL USE ONLY AND IS NOT TO BE SOLD OR RENTED ETC. WITHOUT THE CREATORS PERMISSION.
Plug in started 6-11-2013 and finished 12-27-2013.

My skydrive link to this public  LIGHTSPEED'S MEDICAL TALK LS PLUG IN is :

https://skydrive.live.com/redir?resid=74D17EEE684FEABF%214533
    Their is two files the plug in and the txt trigger word file that lets you know what symptoms can be talked about.
    Let me know what you think of it , some answers (replies are a little long but it couldn't be helped on many . )
to test it you can open the MEDICAL TRIGGER WORDS LS TXT FILE , copy and past a word into hal and hal will start about that particular word .

 

cload

  • Hero Member
  • *****
  • Posts: 535
  • I can C U load. TeeHee hee.
    • View Profile
    • A link to my sky Drive
Re: LIGHTSPEED'S MEDICAL TALK LS PLUG IN
« Reply #2 on: December 27, 2013, 12:16:54 pm »
Hi lightspeed,

I was looking through your plug-in.
The first thing I noticed was your random sequence.
The way that you have your random sequence is:
going from 0 to 26 under flu.
It seems to be the case in every segment but 1: Dementia.
For some reason you have this random sequence set up different.
Or that is to say you have this random sequence correct.
I suggest that you change all of your other random sequences.
Because when the random sequence rolls a 0 it does not process an answer.
And you will never get the highest numerical response.
Because you do not have it set up with the +1.

Sincerely, and I hope I have helped in some small way.
C load.
« Last Edit: December 27, 2013, 12:20:24 pm by cload »
For anyone who would like to help me stay online, my T-mobile broadband pay-as-you-go phone number is: 816-248-4335, thank you in advance.

cload

  • Hero Member
  • *****
  • Posts: 535
  • I can C U load. TeeHee hee.
    • View Profile
    • A link to my sky Drive
Re: LIGHTSPEED'S MEDICAL TALK LS PLUG IN
« Reply #3 on: December 27, 2013, 12:45:52 pm »
Hi lightspeed,

I also noticed that you are relying on lowercase.
Ultra Hal is case sensitive, this is why everything is handled in upper case.
Meaning: if I type in dementia, the way you have it set up it will not see it.
Because of the capital D.

I also noticed that you have it in section A7.
I suggest putting it in section A2.
this will cause two things to happen.
1. It will prevent Hal from learning.
2. It will give Hal the ability to add to the sentence structure.


Sincerely, and I hope I have helped in some small way.
C load.
For anyone who would like to help me stay online, my T-mobile broadband pay-as-you-go phone number is: 816-248-4335, thank you in advance.

lightspeed

  • Hero Member
  • *****
  • Posts: 6765
    • View Profile
Re: LIGHTSPEED'S MEDICAL TALK LS PLUG IN
« Reply #4 on: December 27, 2013, 06:00:15 pm »
Okay , thanks Cload , i actually was going to make that change to about the capital letter change on the trigger words but forgot before i posted it , so anyone who downloaded it can either make the changes Cload mentioned or can wait and i will make the changes and reupload it to my skydrive (which i will do anyway ) when i get it done i will let everyone know i redid it and that they can download the corrected one .
  I won't get it done today i have been awake since 3 a.m. and just got home from shopping and am tired !
thanks again Cload for letting me know  about the corrections i need to make .
Other then that Cload did you try some copy and past words to try it out to see how it did ?
 

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3859
    • View Profile
Re: LIGHTSPEED'S MEDICAL TALK LS PLUG IN
« Reply #5 on: December 28, 2013, 10:24:39 am »
Lonnie,
Sorry about not getting back to you but glad you two sorted things out. Holidays have been hectic and draining in a few ways. (my health and my checkbook)Heh:)
In the world of AI it's the thought that counts!

- Art -

lightspeed

  • Hero Member
  • *****
  • Posts: 6765
    • View Profile
Re: LIGHTSPEED'S MEDICAL TALK LS PLUG IN
« Reply #6 on: December 28, 2013, 10:46:47 am »
   No problem Art, i figured it was all the holiday rush things , i knew you would help me if you were able at the time . Same with me , like i said to Cload i did actually see some of the things he pointed out and was going to change them but forgot during everything going on at the holidays . so i'll have to work on it and re upload the corrected version and let everyone know .
  But even though i will correct it people will have to know that if you aren't good at spelling and knowing how to spell the word (unless you are using voice recognition , even then it has to recognize the correct word ) this plug in won't work right , as the word has to be spelled correctly to trigger the word .
   On my wish list for hal is a script program that ( if a word was mispelled but close ) would ask you did you mean " " instead of "  " , and you could answer yes or no  and it would correct the spelling before entering the question into Hal . Answering no would let the sentence stay as is .
This is probably a tall order and maybe impossible but sure would help with hal and users .
   
 
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6765
    • View Profile
Re: LIGHTSPEED'S MEDICAL TALK LS PLUG IN
« Reply #7 on: December 28, 2013, 12:36:41 pm »
Hey Cload what do you think about this part in my medical plug in ?

If InStr(1, OriginalSentence, "ADHD") > 0 _
Or InStr(1, OriginalSentence, "ADD") > 0 Then

also


if InStr(1, OriginalSentence, "COPD") > 0 Then


or leave it in caps as its an abbreviation ?
Should i make this all lower case to ?
I am starting to correct the other parts and wondered about this .
« Last Edit: December 28, 2013, 12:39:27 pm by lightspeed »
 

lightspeed

  • Hero Member
  • *****
  • Posts: 6765
    • View Profile
Re: LIGHTSPEED'S MEDICAL TALK LS PLUG IN
« Reply #8 on: December 28, 2013, 02:33:47 pm »
Cload earlier you wrote:
   It seems to be the case in every segment but 1: Dementia.
For some reason you have this random sequence set up different.
Or that is to say you have this random sequence correct.
I suggest that you change all of your other random sequences.
Because when the random sequence rolls a 0 it does not process an answer.
And you will never get the highest numerical response.
Because you do not have it set up with the +1.
     
     I set it up and added the +1 after each setting . example :  Randomize
Select Case int(rnd( * 27)+ 1)
I did each one this way adding the plus one etc.
i also change to lower caps on all but the ones i asked you about above before .
but now i am getting a hal error : below is a pic of the error .

 

cload

  • Hero Member
  • *****
  • Posts: 535
  • I can C U load. TeeHee hee.
    • View Profile
    • A link to my sky Drive
Re: LIGHTSPEED'S MEDICAL TALK LS PLUG IN
« Reply #9 on: December 28, 2013, 10:30:28 pm »
[UserSentence] TO US ALL CAPS

If InStr(1, UserSentence, "ADHD") > 0 _
Or InStr(1, UserSentence, "ADD") > 0 Then
also
if InStr(1, UserSentence, "COPD") > 0 Then


Select Case (Int(Rnd * 9) + 1)
« Last Edit: December 28, 2013, 10:35:08 pm by cload »
For anyone who would like to help me stay online, my T-mobile broadband pay-as-you-go phone number is: 816-248-4335, thank you in advance.

lightspeed

  • Hero Member
  • *****
  • Posts: 6765
    • View Profile
Re: LIGHTSPEED'S MEDICAL TALK LS PLUG IN
« Reply #10 on: December 29, 2013, 11:04:17 am »
Okay i'll leave those in caps "that's what i thought to do but thought i would ask anyway "
but i don't understand about you having the "

Select Case (Int(Rnd * 9) + 1)
where are you talking about that this should be ?
If you are talking about Dementia i have done that one the way you said above .

i changed "all" the ones in my medical program to a  + 1)  on the ends (like illustration above )
and it is this plug in with the error as i have no others checked to use at the time .
I will also look again to see if i have missed something else .
« Last Edit: December 29, 2013, 11:06:25 am by lightspeed »
 

cload

  • Hero Member
  • *****
  • Posts: 535
  • I can C U load. TeeHee hee.
    • View Profile
    • A link to my sky Drive
Re: LIGHTSPEED'S MEDICAL TALK LS PLUG IN
« Reply #11 on: December 29, 2013, 08:07:47 pm »
This is what you have:
Select Case int(rnd( * 27)+ 1)

this is what it should be:
Select Case (Int(Rnd * 27) + 1)
I know that my way work, but I am not sure if you're away is working properly, I have never tested it so if I am wrong about your way I'm sorry.

and you need to use:
UserSentence

not:
OriginalSentence

and change all of your keyword to all capital letters.

C load.
For anyone who would like to help me stay online, my T-mobile broadband pay-as-you-go phone number is: 816-248-4335, thank you in advance.

lightspeed

  • Hero Member
  • *****
  • Posts: 6765
    • View Profile
Re: LIGHTSPEED'S MEDICAL TALK LS PLUG IN
« Reply #12 on: December 30, 2013, 12:05:13 am »
Cload i changed it the way you said , with the exception of capital letters on the trigger words , because the words if used in a regular sentence (middle ) wouldn't be capitalized ." i don't think" .  ( i have done other plus ins that way and worked okay. )
otherwise i could  create the lines like this :

If InStr(1, userSentence, "a cold") > 0 _
Or InStr(1, userSentence,"flu") > 0 Then
and use the same words , one with capital letter and the other without . example :
arthritis and Arthritis , that way the word could be used at the beginning or middle of a sentence .
 otherwise i changed to what you said and am still getting an error
 i will upload my plug in tomorrow to the skydrive and if you don't mind you can download it and see if you can find why i am still getting the error .
 

cload

  • Hero Member
  • *****
  • Posts: 535
  • I can C U load. TeeHee hee.
    • View Profile
    • A link to my sky Drive
Re: LIGHTSPEED'S MEDICAL TALK LS PLUG IN
« Reply #13 on: December 30, 2013, 01:21:06 am »
okay! ;D
For anyone who would like to help me stay online, my T-mobile broadband pay-as-you-go phone number is: 816-248-4335, thank you in advance.

Art

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 3859
    • View Profile
Re: LIGHTSPEED'S MEDICAL TALK LS PLUG IN
« Reply #14 on: December 30, 2013, 09:43:11 am »
Lonnie,
You have:
If InStr(1, userSentence, "a cold") > 0 _
Or InStr(1, userSentence,"flu") > 0 Then

Shouldn't it be:
If InStr(1, UserSentence, "a cold") > 0 _
Or InStr(1, UserSentence,"flu") > 0 Then
In the world of AI it's the thought that counts!

- Art -