Computing.Net > Forums > Unix > No problem. A challenge really.

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

No problem. A challenge really.

Reply to Message Icon

Name: LANkrypt0
Date: May 7, 2003 at 12:44:52 Pacific
OS: UNIX
CPU/Ram: 128
Comment:

I have often thought about trying to make a UNIX Bot using KSH (some awk). One that would learn by recording the users replies, adding it to its own, etc.

Just curious if anyone has ever done or tried anything like this? Or have any ideas on the best way to go about it, or if it is indeed doable. Whatever.

Comments?




Sponsored Link
Ads by Google

Response Number 1
Name: David Perry
Date: May 7, 2003 at 12:50:17 Pacific
Reply:

User replies to what sort of input request ?

I could see expect with it's conditional handling of responses being helpful.


0

Response Number 2
Name: LANkrypt0
Date: May 7, 2003 at 13:24:40 Pacific
Reply:

ex
File containing replies:

hello:hi.howdy.hola.greetings

User inputs hello (via read[?]), the bot would look on its list and see that hello already has replies (hi.howdy...etc)

It would then then choose a word on the second part of that example (after the : )

It would then echo its reply, and wait for another response from the user. The thing is, I want to make it so the bot would learn. So after it picks one of those words and echo's it, it adds that word to the list and adds the users reply. For example say the bot says howdy, and the human replies with how are you. The line

howdy:how_are_you.

would be added to the file. So if later on someone says howdy to the bot, it then knows to use the phrase how_are_you to the user, thus mimicing typical human speech.


0

Response Number 3
Name: David Perry
Date: May 9, 2003 at 05:36:40 Pacific
Reply:

I picture ties to a RDBMS with weighted responses. If the computer prompts

howdy

and the user reponds "fine, thank you" 3 times and one occurance of "Doing allright" then the response mechanism should see that "fine, thank you" is more likely.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: No problem. A challenge really.

Script for diskspace, A challenge www.computing.net/answers/unix/script-for-diskspace-a-challenge/4921.html

how to know if a ftp transfer is really completed www.computing.net/answers/unix/how-to-know-if-a-ftp-transfer-is-really-completed/1773.html

'no router available' a/ux net prob www.computing.net/answers/unix/no-router-available-aux-net-prob/7731.html