Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dont want to write a billion $'s

Status
Not open for further replies.

Sk8erdude802

Technical User
May 30, 2002
3
0
0
US
im makeing a program that remembers what you tell it so that is can answer questions later in its life, its sort of a wanna be A.I. i really dont want to write out a new $ every time i want it to learn something. can i make the computer do this.
how can i get the program to recognise the subject of an input and search the data files for one with that ending ("what is a color" prog. looks for data.clr or what ever the ending for color would be)
another thing im having problems with is being able to answer questions like "what is a color" when it has 5 data files which are all differnt colors it has learned from the user in the past
tanx a million
Steve-O
 
Have a database of subjects that could be used. Use all the nouns that you use in everyday conversation. Then have it search through them. It will be kind of slow though.
 
You'll be surprised how fast this gets VERY complex and complicated. :)# Have fun!
 
Check out the original wanna be A.I. program... The first time I saw it in operation was on a TRS-80 Model II, back in 1982 (if my memory serves me correctly).

You should be able to inspect the source code, see how it works and adapt it to your needs....
Code:
[URL unfurl="true"]http://www.planet-stuff.freeserve.co.uk/Software/Eliza_Basic.htm[/URL]
[URL unfurl="true"]http://www-2.cs.cmu.edu/afs/cs/project/ai-repository/ai/areas/classics/eliza/basic/0.html[/URL]
You can try it out, on-line, at:
Code:
[URL unfurl="true"]http://www.planet-stuff.freeserve.co.uk/Software/Eliza.htm[/URL]
For an explanation and example of an "artificial" conversation:
Code:
[URL unfurl="true"]http://i5.nyu.edu/~mm64/x52.9265/january1966.html[/URL]
Download the program:
Code:
ftp://ftp.cc.utexas.edu/depts/AI_ATTIC/Programs/Classic/Eliza/Eliza-pc/eliza1.zip
Get a copy of it written in Java Script:
Code:
[URL unfurl="true"]http://www.manifestation.com/neurotoys/eliza.php3[/URL]
Trollacious is correct in noting that this could get very complex... but I don't believe that complexity is necessary. The original version of the program I referenced above was called "Eliza" and I believe it was written in about 200 lines of BASIC code (most of them consisting of data).


VCA.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top