exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 1 question 1 discussion

Actual exam question from Microsoft's AI-102
Question #: 1
Topic #: 1
[All AI-102 Questions]

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.
Select and Place:

Show Suggested Answer Hide Answer
Suggested Answer:
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

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
reachmymind
Highly Voted 2 years, 9 months ago
Box 1: AddPhraseListAsync Box 2: PhraselistCreateObject var phraselistId = await client.Features.AddPhraseListAsync(appId, versionId, new PhraselistCreateObject { EnabledForAllModels = false, IsExchangeable = true, Name = "QuantityPhraselist", Phrases = "few,more,extra" }); Mapping : Model - Entity - Async Feature - PhraseList - Async
upvoted 12 times
...
krzkrzkra
Most Recent 4 months, 3 weeks ago
Box 1: AddPhraseListAsync Box 2: PhraselistCreateObject
upvoted 1 times
...
krzkrzkra
4 months, 3 weeks ago
Box 1: AddPhraseListAsync Box 2: PhraselistCreateObject
upvoted 1 times
...
HaraTadahisa
5 months, 2 weeks ago
1. AddPhraseListAsync 2. PhraselistCreateObject
upvoted 1 times
...
nanaw770
6 months, 2 weeks ago
OMANKO!
upvoted 1 times
...
TJ001
6 months, 4 weeks ago
the given answers are correct
upvoted 1 times
...
sivapolam90
7 months, 3 weeks ago
Box 1: AddPhraseListAsync Box 2: PhraselistCreateObject
upvoted 1 times
...
varinder82
8 months, 2 weeks ago
Final Answer: Box 1: AddPhraseListAsync Box 2: PhraselistCreateObject
upvoted 2 times
...
Florin83
10 months, 1 week ago
// Add phraselist feature var phraselistId = await client.Features.AddPhraseListAsync(appId, versionId, new PhraselistCreateObject { EnabledForAllModels = false, IsExchangeable = true, Name = "QuantityPhraselist", Phrases = "few,more,extra" });
upvoted 1 times
...
sumanshu
2 years, 11 months ago
Vote for 'C' as per the provided Link (in Solution itself). But Better go with elimination method. We want to add the Phrases, So most suitable function name is : AddPhraseListAsync (out of all other options) Now, for an argument, If we look options (Phrases (it's already passed in body, SavePhrases and UploadPhrases will also get eliminated, because we are manually passing the phrases with in function body). So 2 options left i.e. PhraseList and PhraseListCreateObject, Here in C# code, we are using "new" keyword which is used to instance the object, So "PhraseListCreateObject" more suitable.
upvoted 4 times
...
dpinlaguna
2 years, 12 months ago
Link with explanation: https://docs.microsoft.com/en-us/dotnet/api/microsoft.azure.cognitiveservices.language.luis.authoring.featuresextensions.addphraselistasync?view=azure-dotnet
upvoted 3 times
...
zoo1997
3 years, 1 month ago
https://docs.microsoft.com/en-us/java/api/com.microsoft.azure.cognitiveservices.language.luis.authoring.features.addphraselistasync?view=azure-java-stable
upvoted 1 times
...
akinscube
3 years, 5 months ago
Please where can I find an explanation for this. I have gone through the modules but I couldn't get it, and the reference is not that straight forward.
upvoted 2 times
idrisfl
3 years, 4 months ago
It is explained in the provided answer link https://docs.microsoft.com/en-us/azure/cognitive-services/luis/client-libraries-rest-api?tabs=windows&pivots=programming-language-csharp
upvoted 3 times
...
...
WillyMac
3 years, 5 months ago
Answer is correct.
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...