Topic 1 Question 146
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?Add the unrecognized words in the enumeration values list as new values in the slot type.
Create a new custom slot type, add the unrecognized words to this slot type as enumeration values, and use this slot type for the slot.
Use the AMAZON.SearchQuery built-in slot types for custom searches in the database.
Add the unrecognized words as synonyms in the custom slot type.
ユーザの投票
コメント(4)
- 正解だと思う選択肢: D
D is the answer.
The unrecognized words are synonyms for "comedy", so they should be added as synonyms under the comedy slot type
see the excerpt:
"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 "comedy.""
https://docs.aws.amazon.com/lex/latest/dg/howitworks-custom-slots.html
👍 10ovokpus2022/06/26 D? can not be C.Amazon Lex doesn't support the AMAZON.LITERAL or the AMAZON.SearchQuery built-in slot types. https://docs.aws.amazon.com/lex/latest/dg/howitworks-builtins-slots.html
👍 9knightknt2022/04/21B is correct
👍 2[Removed]2022/06/14
シャッフルモード