| |
|

Member
Total posts: 13
Joined: Oct 11, 2011
|
hello!
i am presenting you with the rough draft of what i have to do in my project:
The idea of this chatbot is that it will act as an interviewer,ask the questions and grade the answers of the candidate the chatbot while taking the interview of the candidate will send live statistics to the concerned authorities if the authorities find the candidate eligible enough they may call him/her for the final interview.
Plus i also have to set a client server architecture means i will have the chatbot on the server and it will run on two client computers only.
As i haven’t worked on it before so i need suggestions from the people who know what I am talking about.I want to know my project’s feasibility as I have to complete it till start of October.
so far we have collected the data and are feeding it to the bot but along with creating the brain we have to do lots of other task.
right now me n one of my groupmate is focusing on these two things
1)how to maintain the count of correct answers
2)how to carry on the conversation of the bot if the candidate is idle for 5mins.
I am looking forward for your guidance.Thanx in advance 
|
|
|
|
|
| |
Posted: May 28, 2012 |
[ # 1 ]
|
|



Administrator
Total posts: 884
Joined: Jun 25, 2010
|
I think you have an enormous task ahead of you by attempting something like this unless the questions are based on one correct answer, like “What colour wire should the speloogle be?” and all the bot has to do is check for the answer. Questions like, “Why do you want to work for us?” or “What are your strong points?” will be very difficult for the bot to understand the answers to.
I assume the interviewee isn’t allowed to ask any questions of his own?
Judging by your previous posts, I assume you are you coding in AIML?
If so, point 1 can be solved like so. Make sure you set a variable like “score” to 0 at the start, then call a category like the one below when the user gives a correct answer:
<category> <pattern>CORRECTANSWER</pattern> <template> <condition name="score"> <li value="0"><set name="score">1</set></li> <li value="1"><set name="score">2</set></li> <li value="2"><set name="score">3</set></li> <li value="3"><set name="score">4</set></li> <li value="4"><set name="score">5</set></li> <li value="5"><set name="score">6</set></li> <li value="6"><set name="score">7</set></li> <li value="7"><set name="score">8</set></li> <li value="8"><set name="score">9</set></li> <li value="9"><set name="score">10</set></li> <li value="10"><set name="score">More than 10</set></li> </condition> </template> </category>
At the end of the interview the value of “score” will be the amount of correct answers given.
|
|
|
|
|
| |
Posted: May 28, 2012 |
[ # 2 ]
|
|




Administrator
Total posts: 1895
Joined: Jun 13, 2010
|
Yes, Steve, s/he’s using Program O, and I’m trying to assist with the monitoring of inactivity through the use of JavaScript (but you probably already know that. ).
On a side note, shouldn’t there be a <THINK> tag in there, somewhere? Just wondering. 
|
|
|
|
|
| |
Posted: May 28, 2012 |
[ # 3 ]
|
|



Administrator
Total posts: 884
Joined: Jun 25, 2010
|
Dave Morton - May 28, 2012:
On a side note, shouldn’t there be a <THINK> tag in there, somewhere? Just wondering. 
lol yes, quite right Dave. That’s what you get for writing categories on the fly. The category should be:
<category> <pattern>CORRECTANSWER</pattern> <template> <think> <condition name="score"> <li value="0"><set name="score">1</set></li> <li value="1"><set name="score">2</set></li> <li value="2"><set name="score">3</set></li> <li value="3"><set name="score">4</set></li> <li value="4"><set name="score">5</set></li> <li value="5"><set name="score">6</set></li> <li value="6"><set name="score">7</set></li> <li value="7"><set name="score">8</set></li> <li value="8"><set name="score">9</set></li> <li value="9"><set name="score">10</set></li> <li value="10"><set name="score">More than 10</set></li> </condition> </think> </template> </category>
|
|
|
|
|
| |
Posted: May 30, 2012 |
[ # 4 ]
|
|

Member
Total posts: 19
Joined: May 30, 2012
|
hello m also part of this project Virtual recruiting assistant… i did sumthing like this but its not working.I included that pattern tag because i want the variable score to increment everytime when bot respond to the candidate “correct. Your next question is…......”
for that i added these two categories
<category> <pattern> * </pattern> <that>correct *</that> <template> <think> <condition name="score"> <li value="0"><set name="score">1</set></li> <li value="1"><set name="score">2</set></li> <li value="2"><set name="score">3</set></li> <li value="3"><set name="score">4</set></li> <li value="4"><set name="score">5</set></li> <li value="5"><set name="score">6</set></li> <li value="6"><set name="score">7</set></li> <li value="7"><set name="score">8</set></li> <li value="8"><set name="score">9</set></li> <li value="9"><set name="score">10</set></li> <li value="10"><set name="score">More than 10</set></li> </condition> </think> </template> </category>
<category> <pattern> What is my score </pattern> <template> <condition name="score"> <li value="*"><get name="score"/></li> <li>You dont have any correct answer.</li> </condition> </template></category>
|
|
|
|
|
| |
Posted: May 30, 2012 |
[ # 5 ]
|
|



Administrator
Total posts: 884
Joined: Jun 25, 2010
|
That is because, “correct. Your next question is…” is two sentences.
You need something like this:
<category> <pattern>RED</pattern> <that>WHAT COLOUR IS A TOMATO</that> <template> <srai>CORRECTANSWER</srai> Correct, here comes your next question.<br/><br/> How many beans make 5? </template> </category>
<category> <pattern>5</pattern> <that>HOW MANY BEANS MAKE 5</that> <template> <srai>CORRECTANSWER</srai> Correct, here comes your next question.<br/><br/> .... </template> </category>
|
|
|
|
|
| |
Posted: May 30, 2012 |
[ # 6 ]
|
|

Member
Total posts: 19
Joined: May 30, 2012
|
well that was really quick i am gonna try it and will let u know 
|
|
|
|
|
| |
Posted: May 30, 2012 |
[ # 7 ]
|
|

Member
Total posts: 19
Joined: May 30, 2012
|
|
|
|
|
|
| |
Posted: May 30, 2012 |
[ # 8 ]
|
|



Administrator
Total posts: 884
Joined: Jun 25, 2010
|
No problem. If you still struggle with it, just post again and I will try to help.
|
|
|
|
|
| |
Posted: May 30, 2012 |
[ # 9 ]
|
|

Member
Total posts: 19
Joined: May 30, 2012
|
its still not working :S….when i asked “what is my score?” after running this 1st category, bot response was “You don’t have any correct answer.” It means it didn’t get into <srai>CORRECTANSWER</srai> tag and the condition didn’t set “score” variable?? or there is any problem in my method of getting the value of “score” (i.e: 3rd category of this code)??
<category> <pattern>no</pattern> <that>Is it possible for two classes to inherit from each other *</that> <template><srai>CORRECTANSWER</srai>correct.here comes your next question. <random> <li>What are the 3 levels of data abstraction?</li> <li>What are the unary operations in Relational Algebra?</li> <li>What does Cin corresponds to?</li> </random> </template> </category>
<category> <pattern>CORRECTANSWER</pattern> <template> <think> <condition name="score"> <li value="0"><set name="score">1</set></li> <li value="1"><set name="score">2</set></li> <li value="2"><set name="score">3</set></li> <li value="3"><set name="score">4</set></li> <li value="4"><set name="score">5</set></li> <li value="5"><set name="score">6</set></li> <li value="6"><set name="score">7</set></li> <li value="7"><set name="score">8</set></li> <li value="8"><set name="score">9</set></li> <li value="9"><set name="score">10</set></li> <li value="10"><set name="score">More than 10</set></li> </condition> </think> </template> </category>
<category> <pattern>What is my score</pattern> <template> <condition name="score"> <li value="*"><get name="score"/></li> <li>You dont have any correct answer.</li> </condition> </template> </category>
|
|
|
|
|
| |
Posted: May 30, 2012 |
[ # 10 ]
|
|



Administrator
Total posts: 884
Joined: Jun 25, 2010
|
Are you remembering to set score to 0 before the test begins?
|
|
|
|
|
| |
Posted: May 30, 2012 |
[ # 11 ]
|
|

Member
Total posts: 19
Joined: May 30, 2012
|
I just added these 3 categories in the database…:S
what else i need to do ? actually i came across this “think” and “condition” tags yesterday as someone recommended me to see warning.aiml file that is used to detect how many times the bot is been insulted so i dont know if we need to do anything prior to it.
|
|
|
|
|
| |
Posted: May 30, 2012 |
[ # 12 ]
|
|

Member
Total posts: 19
Joined: May 30, 2012
|
i also tried this to get the count of correct answers.
i added following lines in PROGRAM O’s index.php.
$ans=0;
$findme = “Correct”;
echo $res; // $res contains bot’s response
if((stripos($res,$findme) === false ? 0 : 1))
$ans++;
echo $ans;
result:
You: hello
Bot: Hello there. Are you Ready for interview?
You: yes
Bot: Is it possible for two classes to inherit from each other? (yes/no)
You: no
Bot: correct.here comes your next question. What are the unary operations in Relational Algebra?
You: hello
Bot: Hello are you prepared? Shall we proceed?
You: yes
Bot: What is a Concrete Object?
You: anything initaed with keyword new
Bot: correct. What does Cin corresponds to?
...........
*)the value of $ans must be 2 now but it still contains “1”..... its value changed from 0 to 1 when it first encountered “correct” in bot’s response.
|
|
|
|
|
| |
Posted: May 30, 2012 |
[ # 13 ]
|
|



Administrator
Total posts: 884
Joined: Jun 25, 2010
|
I didn’t realise you were basing this on my warnings.aiml file.
In the category that says, “Hello there. Are you Ready for interview?”, you need to include this:
<think><set name="score">0</set></think>
This will set the score to 0 so the other categories will work.
|
|
|
|
|
| |
Posted: May 30, 2012 |
[ # 14 ]
|
|

Member
Total posts: 19
Joined: May 30, 2012
|
this is what i read
“<set name=“VALUE”> ...... </set>
Sets whatever is within the tags to the variable VALUE. “
and this is what i did… i set the score to “0” like this at the beginning.
<category> <pattern>Hello</pattern> <template> <set name="score">0</set> Hi.So are you ready for interview? </template> </category>
then i test again here is the result:
Bot: 0 Hi.So are you ready for interview?
You: yes
Bot: What is a Concrete Object?
You: anything initaed with keyword new
Bot: correct.what is the degree of relation?
You: in a relation number of attributes
Bot: correct.Is it possible for two classes to inherit from each other? (yes/no)
You: what is my score?
Bot: You don’t have any correct answer.
correct me if i am not correctly setting the value of score to zero
|
|
|
|
|
| |
Posted: May 30, 2012 |
[ # 15 ]
|
|

Member
Total posts: 19
Joined: May 30, 2012
|
|
|
|
|
|