NATURAL LANGUAGE PROCESSING · INTERVIEW QUESTION
What is intent detection?
🟢 beginner · NLP
Hint: Focus on the decision rule, assumptions, and failure mode behind nlp.
Answer
Intent detection maps user utterances to actions or goals. Production systems also need out-of-scope detection and confidence thresholds.
Interview reasoning
A routing classifier needs a stable taxonomy and an unknown-intent path. Predicting a known label for every input can send unsupported requests to the wrong workflow.
Text classification predicts a label; intent detection identifies an action; slot filling extracts its parameters. Production assistants often need both sentence-level and span-level outputs, with abstention for unsupported intents. Evaluate the action and its required fields together, not only independent aggregate scores.
Worked example. 'Book a flight to Paris' has booking intent, with Paris as a destination parameter.
Validation
Evaluate per-label precision, calibration, out-of-scope rejection, and actual routing outcomes.
Report per-intent PR, exact slot/span metrics and full-frame success, including ambiguity and missing required parameters.
Common pitfalls
Label frequency and overlapping definitions can conceal systematic confusion.
A confident intent score does not validate extracted arguments. Rare intents and unsupported requests can disappear inside aggregate accuracy.
Likely follow-up: Evaluate per-label precision, calibration, out-of-scope rejection, and actual routing outcomes.