Designing and building a workable chatbot.
I have a few nice ideas on how to build a workable chatbot.
Idea number 1.
Have a list of questions handy ("So... Whats your favourite food?").
Remove questions from the list once asked. Change context accordingly, and save result. This keeps the user talking, (if the user is right, a good conversastion can develop).
Idea number 2.
Check grammer patterns to generate an array of strings on what an input could be: egsample adjective noun. another (on the same list) would be [describe] noun. now [describe] noun will be used whenever one or move adjective's are infront of a noun. (rule based.)
Then from that, you can simplify sentences quite a bit. you can then check the input vs. the output.
for egsample:
if the input has a string which translates to:
sing adjective noun eq adjective
and that has a 54% change that the output would be:
[insult]
and another 14% chance, that the output would b of the form:
noun neg adjective.
You then use bayens method, and an array of word probabilities (for eg. in this instance "not" is 97% likely to fit on the position which is the first neg. This would be taken by observing the user) To figure out which words should go where (and what words go together, changing their probabilities.). You also figure out the probability that this is the "correct" (based on statistics), answer.
You then, for each interpritation (adj vs [describe], ect.)
find the best output for that interpritation,
If how good it is, is better then the best known,
set the best known to how good it is
set the chatbots output to the output.
end if
next interpitation.
This should give pretty good results...
Any comments on any of these ideas, or ideas of your own on how to implement a chatbot, would be very much appriciated.
From,
Nice coder
Click here to patch the mozilla IDN exploit, or click Here then type in Network.enableidn and set its value to false. Restart the browser for the patches to work.
The idea is cool, but will the bot be intelligent enough to parse the data he is saving through conversation and use it again.
P.S
why dont u take alook at my forum topic - "Invitation for the Greatest Project" - right above your topic..
Regards
P.S
why dont u take alook at my forum topic - "Invitation for the Greatest Project" - right above your topic..
Regards
Quote: Original post by saintdark
The idea is cool, but will the bot be intelligent enough to parse the data he is saving through conversation and use it again.
P.S
why dont u take alook at my forum topic - "Invitation for the Greatest Project" - right above your topic..
Regards
1. i hope so, chances are a "normal" recording system would be used, with a few modifications.
2. i did look, and wrote a big, long reply. I have written a few bots in the past (matrixbot comes to mind www.geocities.com/nicecoder2004/ungzob is the url).
From,
Nice coder
Click here to patch the mozilla IDN exploit, or click Here then type in Network.enableidn and set its value to false. Restart the browser for the patches to work.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement