some one to talk to

Hello,

I don't need and code, what I need is what you think is the best way to do this.
I want to make an ai program where you can talk to the computer ( by key input). A very simple program. I want it to try to learn as it goes along. I was thinking of using .txt notes for it to store its memory. But array are good for that to. This is going be real simple, like I will say hello and it will reply hello. Then the next day
I will say hi, so I want the computer to store Hi and know that it can use Hi or Hello to reply to hello. Now that Is my problem. How can make the computer know that Hello and Hi can be used for the same replay? NO CODE just what you think about a learning computer.
Thank you
renny
closed account (1vRz3TCk)
I would probably say start reading here: http://en.wikipedia.org/wiki/Machine_learning
You could make a text file with headings for each, i.e greetings, goodbyes etc:

[GREETING]
Hi
Hello
Howdee
//Grab all above to an array/vector
[GOODBYE]
Cya
Bye
Ciao
// <--Use this as a delimiter to stop getting from file


When it's read in to the program, maybe use a random number to choose an array element/vector element.

You'll also have to make something like a words file, to check what sort of input the user has typed.
The problem is that if the user starts the conversation saying "Convergent Pineapple", the computer will think it's a greeting.
Hi Lynx876 ,
Thank you, yes this is what I have now
It opens with telling what it is.
than it has an input.
cin goes to many if statement to see what txt file to use to reply to the input.
But using a numbere sys. hooked to a random reply in a very good ideal.

CodeMonkey I will go to the site that you listed right now, thank you.
renny
CodeMonkey Thanks alot of infor there.
renny
True computer A.I. is NOT simple. What you're talking about is a chatterbot simulation like Eliza or Alice where the computer responds with a random selection based on keywords contained in what you type in. Take a look at some of the links here: http://www.google.com/search?q=eliza+in+C%2B%2B&ie=utf-8&oe=utf-8&aq=t&rls=com.frontmotion:en-US:unofficial&client=firefox-a

This one is a detailed explanation of the "brains" of the program and is pretty basic:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=5369&lngWId=3
closed account (1vRz3TCk)
sadsack,

'...where you can talk to the computer ( by key input)...' you will probably need to learn/brush up on parsing user input, Parsing Techniques: A Practical Guide by Dick Grune is a good book (Not exactly cheap).

This second edition of Grune and Jacobs’ brilliant work presents new developments and discoveries that have been made in the field. Parsing, also referred to as syntax analysis, has been and continues to be an essential part of computer science and linguistics. Parsing techniques have grown considerably in importance, both in computer science, ie. advanced compilers often use general CF parsers, and computational linguistics where such parsers are the only option. They are used in a variety of software products including Web browsers, interpreters in computer devices, and data compression programs; and they are used extensively in linguistics.



http://www.amazon.co.uk/Parsing-Techniques-Practical-Monographs-ebook/dp/B0017AMLL8/ref=sr_1_2?ie=UTF8&qid=1325695909&sr=8-2
Last edited on
Thank you all, I have so much info now, it will take 6 weeks just read it all.
I did find a nice chstbot forum to go to.
here the Address:

http://www.chatbots.org/community/


Thank you all so much,I started out here in the lounge, I just drop in to say hi, then some one called me a troll, Now I did live under a bridge at one time in my life, I don't even know what a web troll is. So I am not going back there again. I will keep you all posted on my chatbot.
it will be slow, I am just started to learn C++.
renny
Hope you pot back with a finished version(as finished as AI gets, anyway... ) Look forward to seeing something!

I was going to code it, but the when a few people had posting links, I read through it all and thought... That's better off not done yet as I can't be bothered with the hastle of thinking about all the words/keywords involved with getting a good enough responce! ahaha

Maybe one day!

EDIT:
Good luck!
Last edited on
thanks
renny
Hello,
I will have some code soon, I am going use txt file for my chatbot brain. I will have a working code soon, I hope.
renny
Topic archived. No new replies allowed.