MLCrack

    NATURAL LANGUAGE PROCESSING ยท INTERVIEW QUESTION

    What is slot filling?

    ๐ŸŸข beginner ยท NLP

    Hint: Focus on the decision rule, assumptions, and failure mode behind nlp.

    Answer

    Slot filling extracts structured arguments from text, such as dates, locations, or product names. It is often paired with intent detection.

    Interview reasoning

    For book a flight to Paris tomorrow, slots include destination and date. Extraction must normalize values while preserving uncertainty and conversation context.

    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. Slots can require exact entity normalization before a downstream tool accepts them.

    Validation

    Check span and normalized-value accuracy and validate required arguments before action.

    Report per-intent PR, exact slot/span metrics and full-frame success, including ambiguity and missing required parameters.

    Common pitfalls

    The same surface form can refer to different dates or entities depending on context.

    A confident intent score does not validate extracted arguments. Rare intents and unsupported requests can disappear inside aggregate accuracy.

    Likely follow-up: Check span and normalized-value accuracy and validate required arguments before action.