How should you complete the code?

Posted by: Pdfprep Category: AI-102 Tags: , ,

Question Set 1

DRAG DROP

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:

Box 1: AddPhraseListAsync

Example: Add phraselist feature

var phraselistId = await client.Features.AddPhraseListAsync(appId, versionId, new PhraselistCreateObject {

EnabledForAllModels = false,

IsExchangeable = true,

Name = "QuantityPhraselist",

Phrases = "few,more,extra"

});

Box 2: PhraselistCreateObject

Reference: https://docs.microsoft.com/en-us/azure/cognitive-services/luis/client-libraries-rest-api

Leave a Reply

Your email address will not be published.