MLS-C01 · Question #172
A company that runs an online library is implementing a chatbot using Amazon Lex to provide book recommendations based on category. This intent is fulfilled by an AWS Lambda function that queries an…
The correct answer is D. Add the unrecognized words as synonyms in the custom slot type. For each intent, you can specify parameters that indicate the information that the intent needs to fulfill the user's request. These parameters, or slots, have a type. A slot type is a list of values that Amazon Lex uses to train the machine learning model to recognize values…
Question
A company that runs an online library is implementing a chatbot using Amazon Lex to provide book recommendations based on category. This intent is fulfilled by an AWS Lambda function that queries an Amazon DynamoDB table for a list of book titles, given a particular category. For testing, there are only three categories implemented as the custom slot types: "comedy," "adventure," and "documentary." A machine learning (ML) specialist notices that sometimes the request cannot be fulfilled because Amazon Lex cannot understand the category spoken by users with utterances such as "funny," "fun," and "humor." The ML specialist needs to fix the problem without changing the Lambda code or data in DynamoDB. How should the ML specialist fix the problem?
Options
- AAdd the unrecognized words in the enumeration values list as new values in the slot type.
- BCreate a new custom slot type, add the unrecognized words to this slot type as enumeration
- CUse the AMAZON.SearchQuery built-in slot types for custom searches in the database.
- DAdd the unrecognized words as synonyms in the custom slot type.
How the community answered
(26 responses)- A8% (2)
- B15% (4)
- C4% (1)
- D73% (19)
Explanation
For each intent, you can specify parameters that indicate the information that the intent needs to fulfill the user's request. These parameters, or slots, have a type. A slot type is a list of values that Amazon Lex uses to train the machine learning model to recognize values for a slot. For example, you can define a slot type called "Genres." Each value in the slot type is the name of a genre, "comedy," "adventure," "documentary," etc. You can define a synonym for a slot type value. For example, you can define the synonyms "funny" and "humorous" for the value https://docs.aws.amazon.com/lex/latest/dg/howitworks-custom-slots.html
Topics
Community Discussion
No community discussion yet for this question.