How to do this?

This is a discussion on How to do this? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; Hi, I am making a program/chat bot to talk/learn. I can get it to read and save to a texts ...

  1. #1
    adr
    adr is offline
    Registered User
    Join Date
    Dec 2005
    Posts
    155

    How to do this?

    Hi, I am making a program/chat bot to talk/learn. I can get it to read and save to a texts file, but thing is, I dont know how to make it more better when you answer it and it saves in the data base. Like I can preprograme to make it all ready read and tell you what I told it to say, but how would you let your program descide from what it has learn? Like

    preprogram.
    you say: "Hi"
    comp: "hi ^.^"

    Not preprogram
    you say: "Hi"
    comp: "what is hi?"
    you say: "its a greeting"<--hi got saved in greetings
    comp: "oh, hi ^.^"

    I think it would look something like this, but I dont know to make it like this XD

    soruce word ("hi") (or if its a new word that has been learn ("hi")
    |-------|-------\
    |-------|--------\
    hey---hola-------hi
    Last edited by adr; 11-02-2006 at 06:18 PM.

  2. #2
    Fear the Reaper...
    Join Date
    Aug 2005
    Location
    Toronto, Ontario, Canada
    Posts
    625
    Arrange your file into sections :

    #Greetings
    // Greetings it can say
    #Compliments
    // compliments it can say

    Then, to store, put the word in the appropriate section.

    That would work, but it'll hardly make a bot that can engage in conversation. That would be biting off more than you can chew. Google the Turing Test if you wish to see what can currently be done.

    Oh, and another thing, I don't know if this should be on the General Boards...
    Teacher: "You connect with Internet Explorer, but what is your browser? You know, Yahoo, Webcrawler...?" It's great to see the educational system moving in the right direction

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    752
    It sounds like you're wanting to do natural language processing using Neural networks.

    Programs that learn are hard. This is the kind of think you might do as an independent study during college.
    Callou collei we'll code the way
    Of prime numbers and pings!

  4. #4
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    Anyone heard of Billy? It's almost exactly the same thing.
    Last edited by maxorator; 11-03-2006 at 04:20 PM.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  5. #5
    adr
    adr is offline
    Registered User
    Join Date
    Dec 2005
    Posts
    155
    Quote Originally Posted by Happy_Reaper
    Arrange your file into sections :
    Oh, and another thing, I don't know if this should be on the General Boards...

    It is, I am asking a question on run down, not really a c, c++ bla bla bla, or a windows thing.

  6. #6
    carry on JaWiB's Avatar
    Join Date
    Feb 2003
    Location
    Seattle, WA
    Posts
    1,972
    Actually, it's more of an AI thing, and we do have an AI board (although it's hardly used)
    "Think not but that I know these things; or think
    I know them not: not therefore am I short
    Of knowing what I ought."
    -John Milton, Paradise Regained (1671)

    "Work hard and it might happen."
    -XSquared

  7. #7
    Reverse Engineer maxorator's Avatar
    Join Date
    Aug 2005
    Location
    Estonia
    Posts
    2,318
    It even has it's own category.
    "The Internet treats censorship as damage and routes around it." - John Gilmore

  8. #8
    adr
    adr is offline
    Registered User
    Join Date
    Dec 2005
    Posts
    155
    Quote Originally Posted by JaWiB
    Actually, it's more of an AI thing, and we do have an AI board (although it's hardly used)
    Not really AI either, seeing as I didnt ask for help on the AI or something, I ask on how to do the runtime of it XD The order of how it should work. Not really a AI quertion, b/c this doesnt have to be AI really O.o it can work with many other programs too.

  9. #9
    Fear the Reaper...
    Join Date
    Aug 2005
    Location
    Toronto, Ontario, Canada
    Posts
    625
    The Turing Test is an AI-related test. And that's what you're attempting.
    Teacher: "You connect with Internet Explorer, but what is your browser? You know, Yahoo, Webcrawler...?" It's great to see the educational system moving in the right direction

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21