Click here to Skip to main content
15,890,506 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi All,

I am developing a Application, its a chat bot, for a Question i will feed the Answer(Subjective not option basis answer),e.g
Q:-What is Cat
Ans:-Cat is a domestic animal with four legs,two eyes etc .

But from chat bot Users the Answer may not exactly same what i have feed,
Can any one help me to get API so i can compare my exists Answer and User's answer and come up with a Score, Is user has given a correct answer or not

What I have tried:

Tried google it but not found such API
Posted
Updated 7-Jul-18 7:50am

Pretty much, you can't - or at least not without the same kind of effort that Google put into their search engine.
Natural language comparison isn't at all simple! Compare these two statements:
A cat is a domestic animal with four legs,two eyes that catches mice and small birds
A member of the genus Felis, Felis Catus (or the domestic cat) is a binocular quadruped predator that preys on small mammals, birds, fish, and marsupials (where available).
They both say the same thing, they are both correct (within reason - our cat will catch anything and eat it).

But how do you compare them and say "that is right" or "that is wrong"? Heck, most developers can't even get that right with math questions!
Sorry, that's not correct[^]

To be honest, this isn't a project that I would even consider doing myself, and I've a fair amount of experience. For a relative beginner? Don't go there - it will take far, far too much of your time!
 
Share this answer
 
Comments
Rajnarrayan Bose 7-Jul-18 7:17am    
Thanks
Use multiple-choice.

Most IQ tests are multiple-choice.

You have to account for regional / cultural differences. Some people have never heard of a "cat" (or Aardvark).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900