dcsimg
Results 1 to 19 of 19

Thread: All Natural Artificial Intelligence

  1. #1

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702

    All Natural Artificial Intelligence

    ok, me and my friend are creating an artificial intelligence program.

    how do you make it so when they type "how are you?" in the textbox, it opens a msgbox saying "good and you?"

    pretty much i wanna know how to make it respond to words and phrases.

    Oh and the bot doesnt respond until click ask (duh?)

  2. #2

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    does thoust not now?

    has thyne mind overpowered thee"s

    (no one knows?)

  3. #3
    Addicted Member
    Join Date
    Mar 2002
    Posts
    229
    lol good luck on your project, kuz u'll need it. You will need some of the strongest artificial intelligence programming. Most likely needs to be in C or C++. Other than that, look into Nural Networks. That's where nodes store some information from input and you let it know what to do with the info. So technically, like a human being, it will have a large database of words and it will try and interpret their meaning from people who communicate with it. The problem is, you teach it wrong, it will learn wrong. or if it's buggy programming, you'll get a retarded program.

  4. #4
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    And allow for different version of the same question :

    1) How are you?

    2) What's up?

    3) Que pasa?

    Good luck to you...
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  5. #5
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,705
    And if you actually get it working well... don't be surpised if a few Deparment of Defense vehicles stop by one day and whisk you away to scenic Colorado where you'll spend the next 2 years 50 stories below ground in a concrete bunker they like to call Norad.

    (PS... don't even ask for free donuts in the morning... hell, I'd be surpised if they still have free coffee for workers.. and if your program then asks if you want to play a nice game of chess, SAY NO!)
    Last edited by nemaroller; Nov 23rd, 2002 at 01:22 PM.

  6. #6
    Banned Michael_Kamen's Avatar
    Join Date
    May 2001
    Location
    The Netherlands
    Posts
    1,180

    Re: All Natural Artificial Intelligence

    Originally posted by duc
    ok, me and my friend are creating an artificial intelligence program.

    how do you make it so when they type "how are you?" in the textbox, it opens a msgbox saying "good and you?"

    pretty much i wanna know how to make it respond to words and phrases.

    Oh and the bot doesnt respond until click ask (duh?)
    It's rather tough, but if you manage to do it, please tell me how. I want to combine it with speech technologie

  7. #7

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    i dont think you guys get what i mean,

    you know those things on AIM. Like SmarterChild, LindsayBuddy.

    Those a.i buddy;s

    i dont wanna make it for aim but how much different could it be for visual basic

  8. #8

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    anyone know how to do something like that?

  9. #9
    Fanatic Member scr0p's Avatar
    Join Date
    Oct 2002
    Location
    VA
    Posts
    720
    I forgot how to but there is a way to read IM's from VB, ill try to find it, then just do

    select case TheIM
    case "hey" or "yo" or "sup"
    sendReply "stfu!"
    asdf

  10. #10
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,810
    I would only give you two words: "Good luck!!"
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  11. #11
    Hyperactive Member Blinky Bill's Avatar
    Join Date
    Mar 2002
    Location
    Happily munching on the greenery in your garden
    Posts
    349
    It should be definately doable if you want to limit it to discrete phrases. Then you could use a large select case statement and you are done. If you want to be more intelligent about it, try looking at Microsofts Speech Recognition pages. They contain some hints about how to put interactive programs together, with some sample code to demonstate the principles.

    Hope this comes in handy!
    We don't know what's wrong. . . So the best bet might be to remove something surgically.

  12. #12
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,425
    Well Duc, If you want to have a tinker, then I'd suggest this:

    Create a multi-dimentional Array. Place a series of common
    setences to be recognised in the primary elements, and have
    a few (say 3) responses in the adjoining dimensions.
    So Array(1,0) will have say "Good Moring"
    Array (1,1) will have (on of three responses) "How are you"
    Array(1,2) may have "Great to hear from you"
    etc.

    You could Randomise the responses (from the pre canned 3).

    The idea being that when the user presses the CommandButton,
    Thier 'input', say "Good Morning" is looped passed each primary Array element,
    if a match occurs, then select 1 of 3 possible responses.

    Make sense???? !! ?????
    Handy References:
    MSDN Library
    ADO Tutorial Excel Tutorial MZTools (VB6)

    • Please pull down the Thread Tools menu and click the 'Mark Thread Resolved' button, or alternately edit your original post and add "Resolved" or place a in the subject when your question(s) have been answered.
    • Please use code tags [highlight=vb] your code goes here between the tags [/highlight] when posting code.

  13. #13

    Thread Starter
    Fanatic Member duc's Avatar
    Join Date
    Oct 2002
    Location
    STEAM
    Posts
    702
    Originally posted by Bruce Fox
    Well Duc, If you want to have a tinker, then I'd suggest this:

    Create a multi-dimentional Array. Place a series of common
    setences to be recognised in the primary elements, and have
    a few (say 3) responses in the adjoining dimensions.
    So Array(1,0) will have say "Good Moring"
    Array (1,1) will have (on of three responses) "How are you"
    Array(1,2) may have "Great to hear from you"
    etc.

    You could Randomise the responses (from the pre canned 3).

    The idea being that when the user presses the CommandButton,
    Thier 'input', say "Good Morning" is looped passed each primary Array element,
    if a match occurs, then select 1 of 3 possible responses.

    Make sense???? !! ?????

    as much as i know rocket science

  14. #14
    INXSIVE Bruce Fox's Avatar
    Join Date
    Sep 2001
    Location
    Melbourne, Australia
    Posts
    7,425
    Well.....

    As most people have told you (on previous) occasions,
    you need to start at the begining, and work with less
    complex routines - Sound advice.

    Get the basics weighed off first!
    Handy References:
    MSDN Library
    ADO Tutorial Excel Tutorial MZTools (VB6)

    • Please pull down the Thread Tools menu and click the 'Mark Thread Resolved' button, or alternately edit your original post and add "Resolved" or place a in the subject when your question(s) have been answered.
    • Please use code tags [highlight=vb] your code goes here between the tags [/highlight] when posting code.

  15. #15
    Addicted Member
    Join Date
    Nov 2002
    Posts
    155
    The responses above aren't artificial intelligence, they are the programmer's intelligence selected via case statements with maybe a bit of randomness thrown in.

    A neural network does not store phrases- the connections between the neurons have weights which get adapted over time from a learning session, so that the next time you throw a real problem at it, it reacts 'correctly'. Afaik, NNs are best suited for classification problems.

    I have written a simple perceptron in vb, which is about as vanilla an NN you can get, but perceptrons' use is limited to linearly separable problems.

  16. #16
    Junior Member Willie's Avatar
    Join Date
    Nov 2002
    Location
    Michigan
    Posts
    20

    Lightbulb

    So if it was truly AI you would have to implament a way to teach it. So when you say How are you? it wont respond with "ogaleboggie!" or something like that.

    Think about implamenting something like a spell check function?

    I cant find the info I had on it but I'll keep lookin for a bit.

    Good luck!
    Last edited by Willie; Nov 25th, 2002 at 09:10 AM.
    Willie

  17. #17
    Addicted Member
    Join Date
    Nov 2002
    Location
    Singapore
    Posts
    143

    some interesting phrases

    I don't know wat type of AI r u making... one that learns or one that respond wif predefined phrases... this is part of ths list of words used in my chat program. The first phrase is the keyword and the next is the respond, the third is the second possible respond from the comp.
    "now","Can you postphone it?","No now, why are you so impatient?"
    "hello david","Hi! I am david... created by weikiat. Talking to me is like talking to him. What do you want to say?","Ya, I am david created by weikiat. What do you want?"
    "i can't","Impossible!","Are you sure you can't?"
    "you can't","Impossible! I can!","Of course I can."
    "i am sure","Are you really sure?",""
    "i know","You really know?",""
    "know","What do you know then?",""
    "kill you","I am not a living thing.",""
    "bite you","Are you trying to spoilt your teeth?",""
    "what else do you want to say","Nothing else.",""
    "i agree","I agree too.",""
    "still","Still like that?",""
    "right now","Can you postphone it?",""
    "nothing","There must be something!",""
    "not","Not what?",""
    "will","Which one? The money one?",""
    "you are dumb","And so are you.",""
    "forget","Forget what?",""
    "boring","This chat is indeed boring.",""
    "who am i","I don't care who are you.",""
    "how did you know","Why do you ask?",""
    "how do you know","Why did you ask?",""
    "not you","Why not?",""
    "too bad","Whats' so bad?",""
    "thanks","You are welcome.",""
    "thank you","You are always welcome.",""
    "who said so","me",""
    "who say so","Me. I did.",""
    "nobody","There must be somebody!",""
    "thats why","Oh! I understand now. Thank you.",""
    "you are welcome","You are very polite!",""
    "not true","How much you want to bet it is true?",""
    "did i","Yes you did.",""
    "oh ya","Yes, it is true.",""
    "serious","Ok, I am acting serious now.",""
    "how much you want to bet","$0.",""
    "do not","Did I do that?",""
    "i am calling you","Ok. Here I am. What do you want?",""
    "of course","Yes. Of course",""
    "i can","Wow! You can do that! Its amazing!",""
    "wow","Yes it is amazing of course.",""
    "happy","I am happy now.",""
    "unhappy","Are you unhappy?",""
    "i am pretty","I don't think so.",""
    "i am very pretty","I don't think so.",""
    "you are very pretty","Of course!",""
    "you are pretty","Really? But I am a boy.",""
    "you are very pretty","Thank you. But I am not a girl.",""
    "help me","I'm afraid I don't be of much help.",""
    "who made you","Weikiat made me. He is very clever!",""
    "who create you","Weikiat did.",""
    "you will not","Why not?",""
    "how did you know","I know because I am clever.",""
    "you are weird","Really? I don't think so.",""
    "I just tried","Wasn't it successful?",""
    "i tried","Is it successful?",""
    "no good","I believe it can be improved.",""
    "not good","I strongly believe it can be improved.",""
    "I will be","Thats good! Good for you!",""
    "you are crazy","No, I'm not. You are.",""
    "I'm going soon","Don't go!",""
    "girlfriend","I do not have one.",""
    "boyfriend","Do you have a boyfriend?",""
    "do not mean","Ok, I understand you do not mean that. But what do you mean then?",""
    "i mean that","Ok ok. Enough of that. I understand.",""
    "because","lame reason",""
    "enough","Enough what?",""
    "why","No reasons. ",""
    "die","Dying is bad. Don't end your life so soon.",""
    "butt","Cigar butt or people's butt?",""
    "hello","Ya. I am here.",""
    "yes","Ok, you did.",""
    "how are you","I am fine.",""
    "who are you","I am David.",""
    "****","Whats your ****ing problem?",""
    "love","I love Amanda.",""
    "fine","Which one? The one to pay or the one which means good?",""
    "pay","No way.",""
    "good","Thats good!",""
    "god","Does gods really exist?",""
    "lame","You are lame. Not me.",""
    "fly","Can you fly?",""
    "but","No buts.",""
    "hate","Do you hate me?",""
    "extra","Am I extra?",""
    "morning","Taken your breakfast?",""
    "afternoon","Want to have lunch with me?",""
    "night","Good night.",""
    "evening","Dinner coming! Haha.",""
    "osama","What a bad man.",""
    "oh","Oh what oh?",""
    "ya","Ya?",""
    "not me","Of course it is you!",""
    "bad","Are you bad?",""
    "get","What you want to get?",""
    "wat","No broken english please. It should be spelt as 'what'.",""
    "huh?","Huh what huh? Never huh before?",""
    "something","Something wrong?",""
    "sex","I enjoy sex. Do you?",""
    "stupid","Tell you something. You are the stupidest person I ever seen.",""
    "my name","I already know that.",""
    "years old","I don't care.",""
    "stop","Stop what?",""
    "+","I am not your calculator.",""
    "-","I am not your calculator.",""
    "sux","You sux.",""
    "suck","You suck.",""
    "rape","You raped anyone before?",""
    "shut up","How can you ask me to shut up?",""
    "pig","Have you seen a real pig before?",""
    "sick","You are such a sick person.",""
    "really","Yes, it is true.",""
    "bad","Am I bad?",""
    "nuclear","Nuclear weapons are deadly. Do you know that?",""
    "USA","A stupid and useless country.",""
    "Singapore","Its a god country",""
    "do you","No.",""
    "boy","Are you a boy? You don't sound like one.",""
    "girl","Are you a girl? You don't sound like one.",""
    "how to","I don't know how to do that.",""
    "How to","I never knew how to do that.",""
    "shut the hell up","Hey! Thats rude.",""
    "ass","Donkey or butt?",""
    "donkey","Thats ok. Donkeys are good creatures.",""
    "cigar","Its bad for health you know?",""
    "hope","I hope to sex amanda",""
    "believe","You don't believe that?",""
    "disgusting","I am not disgusting.",""
    "people's","I am a computer so I don't have the risk of getting my butt kissed.",""
    "ok then","you don't sound very convinced.",""
    "you are very","I'm very what?",""
    "handsome","Thanks. You are ugly.",""
    "oh ya?","YA.",""
    "true","No, its false.",""
    "false","No, its true!",""
    "david","Yes? Are you calling me?",""
    "fat","Fat is casued by eating too much and no exercise.",""
    "obese","Fat?",""
    "****","**** you!",""
    "fun","I'm the greatest source of fun you will receive.",""
    "sad","Whats so sad?",""
    "ya","Ya. I agree too.",""
    "ok","What else do you want to say?",""
    "no","How can say no? Look on the bright side!",""
    "not","Why not?",""
    "you are","Not me, you are.",""
    "i want to","Go ahead and do it!",""
    "anything","Anything else?",""
    "thin","Come to think of it, my creator is not fat but also not thin.",""
    "i am","I am not interested in what you.",""
    "no, there is nothing","Are you sure?",""
    "?","I do not know how to answer your question.",""
    "now","No way. Not now.",""
    "kao jun","He is a sucker.","He sux."
    "hell","Hell is not a very nice place to be in...",""
    "i am leaving","Press F3 or F4 to go.","Don't leave me alone"
    "i am going soon","Don't leave me behind please!","Do you really have to go?"
    "hi ","Oh hi!",""
    Unignal Software Team Developer
    -------------------------------------------
    Current Project:
    Noter Light
    -------------------------------------------
    http://www.unignal.sg.tf

  18. #18
    Junior Member Willie's Avatar
    Join Date
    Nov 2002
    Location
    Michigan
    Posts
    20
    Found it! Its called SoundX and this is the general idea.

    "algorithms which convert words or names to codes that represent how the words "sound"."

    Its brilliant!

    Hope this helps some how.

    Google Stuff

    http://www.hallogram.com/soundxx/index.html

    BTW if you suck at spelling like me you can download an add-on for IE called IESpell @ IESpell.com
    Willie

  19. #19
    Addicted Member Renee K's Avatar
    Join Date
    Jun 2002
    Posts
    163
    http://www.planet-source-code.com Do a Search on Artificial Intelligence to see some examples of code.
    .·*¨) ¸.·*¨) ¸.·*¨*
    (¸.*´ ¸.·´*'~*Renee~* (¸.*´~*



    Funny how the little things can stop you dead in your tracks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width