AI-102 · Question #43
AI-102 Question #43: Real Exam Question with Answer & Explanation
To programmatically add phrase lists to a LUIS (Language Understanding) model, you use 'AddPhraseListAsync' to call the LUIS Authoring API and add the phrase list to the model, and 'PhraseListCreateObject' to define the phrase list object that contains the phrases, their name, an
Question
Drag and Drop Question You have 100 chatbots that each has its own Language Understanding model. Frequently, you must add the same phrases to each model. You need to programmatically update the Language Understanding models to include the new phrases. How should you complete the code? To answer, drag the appropriate values to the correct targets. Each value may be used once, more than once, or not at all. You may need to drag the split bar between panes or scroll to view content. NOTE: Each correct selection is worth one point. Answer:
Explanation
To programmatically add phrase lists to a LUIS (Language Understanding) model, you use 'AddPhraseListAsync' to call the LUIS Authoring API and add the phrase list to the model, and 'PhraseListCreateObject' to define the phrase list object that contains the phrases, their name, and configuration settings. AddPhraseListAsync is the correct SDK method that accepts a PhraseListCreateObject and sends it to the LUIS service, while PhraseListCreateObject is the proper DTO (Data Transfer Object) class used to encapsulate the phrase list data before submission.
Topics
Community Discussion
No community discussion yet for this question.