liveBook · Manning

Slot filling

As explained in Natural Language Processing in Action, Second Edition

Slot filling is the extraction and assignment of predefined conversational parameters from a user's utterance.

Slot filling extracts predefined conversational parameters from a user’s utterance so a dialog system can execute the requested action. Think of each slot as a required function argument: “What’s the weather in Paris?” supplies a weather intent plus a location, while “Will it rain next Sunday?” supplies timing. section 12.2.1

Slots differ from entities. An entity is information a bot recognizes, whether or not it matters to the request; a slot is explicitly predefined in the interaction model as information the bot must look for. Common slots include locations, times, durations, and distances, while domain-specific systems may define drug names or crop types. section 12.2.1

Weather request

For “What’s the weather in Paris?”, the system identifies the weather intent and fills the location slot with “Paris.” For “Is it going to rain next Sunday?”, it fills the timing slot with “next Sunday.” section 12.2.1

How Natural Language Processing in Action, Second Edition covers it

How deep it goes
Defines slots through the entity distinction and examples, but does not describe extraction algorithms or implementation steps.
Examples
Uses weather questions with location and timing values, plus drug names and crop types as domain-specific parameter examples.
What it assumes
Assumes familiarity with conversational intents and named entity recognition while defining the slot distinction explicitly.
What you can do after
Understand how predefined conversational parameters complement intent recognition in action-oriented requests.
How it connects
Connects slots with intent recognition, entities, named entity recognition, and interaction models.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Natural Language Processing in Action, Second Edition. The section links point to the parts of the book it draws on.