today in practice for conversational agents Given a user sentence and context, find the best answer among a pre-defined set of intents Tomorrow : generative models, self-learning
What is your name? N-gram 1 NEED What do you need? N-gram 2 NEED Do you need anything? N-gram 2 ✔ Work in practice ❌ Out-Of-Vocabulary words? ❌ Fallback Detection?
your name Utterance 0.34 0.32 0.01 0.31 0.27 0.21 0.21 0.04 0.42 0.22 ... ... ... .. .. 0.5 0.12 0.5 0.44 0.41 What was your mood Sentence 0.34 0.12 0.01 0.21 0.17 0.21 0.51 0.04 0.52 0.32 ... ... ... .. .. 0.5 0.22 0.5 0.24 0.36 M E A N M E A N Cosine Similarity
: label = type of intent • 6 coarse classes : abbreviation, description, entity, human, location, numeric value • 50 fine classes Q A Q C Sentence Coarse class Fine class How did serfdom develop in and then leave Russia ? DESC manner What films featured the character Popeye Doyle ? ENTY cremat How can I find a list of celebrities ' real names ? DESC manner What is the full form of .com ? ABBR exp What contemptible scoundrel stole the cork from my lunch ? HUM ind https://cogcomp.cs.illinois.edu/Data/QA/QC/
pairs Label = entailment, contradiction, or neutral (judgments of five turkers) Text Judgments Hypothesis A man inspects the uniform of a figure in some East Asian country. contradiction C C C C C The man is sleeping An older and younger man smiling. neutral N N E N N Two men are smiling and laughing at the cats playing on the floor. A black race car starts up in front of a crowd of people. contradiction C C C C C A man is driving down a lonely road. A soccer game with multiple males playing. entailment E E E E E Some men are playing a sport. https://nlp.stanford.edu/projects/snli/
2 What is the step by step guide to invest in share market in india? False What is the step by step guide to invest in share market? Why am I mentally very lonely? How can I solve it? False Find the remainder when [math]23^{24}[/math] is divided by 24,23? How do we prepare for UPSC? True How do I prepare for civil service? How can I be a good geologist? True What should I do to be a great geologist? 400 000 pairs of questions Supervised : label = are they duplicates?
0.01 0.31 0.27 0.21 0.21 0.04 0.42 0.22 ... ... ... .. .. 0.5 0.12 0.5 0.44 0.41 What was your mood Embedding 0.34 0.12 0.01 0.21 0.17 0.21 0.51 0.04 0.52 0.32 ... ... ... .. .. 0.5 0.22 0.5 0.24 0.36 S I M I L A R I T Y