
Answer-first summary for fast verification
Answer: Create separate intents for 'book_room', 'cancel_reservation', and 'request_extra_service', and add specific utterances for each intent. Create entities to capture relevant information such as room type, date, and service type.
Creating separate intents for each service request allows the model to better understand the specific needs of the user and provide more accurate responses. Adding specific utterances for each intent and creating entities to capture relevant information helps the model recognize and classify the user's messages correctly. Option A would not be effective as it would not allow the model to differentiate between different service requests. Option C is incorrect as using regular expressions alone may not capture all the variations and nuances of user messages. Option D is not a viable approach as creating separate intents for each specific request would result in a highly fragmented and inefficient model.
Author: LeetQuiz Editorial Team
Ultimate access to all questions.
You are tasked with integrating a language understanding model into a chatbot for a hotel booking platform. The chatbot should be able to handle intents such as 'book_room', 'cancel_reservation', and 'request_extra_service'. How would you approach the task of creating and managing the intents and entities for this scenario?
A
Create a single intent called 'hotel_service' and add all possible utterances related to booking, canceling, and requesting extra services.
B
Create separate intents for 'book_room', 'cancel_reservation', and 'request_extra_service', and add specific utterances for each intent. Create entities to capture relevant information such as room type, date, and service type.
C
Create a single intent and use regular expressions to extract all relevant information from user messages.
D
Create separate intents for each specific service request and train the model to recognize the context of each request.
No comments yet.