exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 3 question 48 discussion

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

HOTSPOT
-

You are developing a text processing solution.

You have the function shown below.



For the second argument, you call the function and specify the following string.

Our tour of Paris included a visit to the Eiffel Tower

For each of the following statements, select Yes if the statement is true. Otherwise, select No.

Show Suggested Answer Hide Answer
Suggested Answer:

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
StrateqEBS
Highly Voted 1 year, 6 months ago
Should be NYN: https://learn.microsoft.com/en-us/dotnet/api/azure.ai.textanalytics.textanalyticsclient.recognizeentities?view=azure-dotnet Definition: Runs a predictive model to identify a collection of named entities in the passed-in document, and categorize those entities into types such as person, location, or organization. This method does not extract phrases.
upvoted 29 times
[Removed]
1 year, 4 months ago
The last one is clear "Will output all key phrases on the console" and we have on the example Console.WriteLine($"\t{entity.text}") - With (\t) tabs
upvoted 1 times
...
rdemontis
1 year, 2 months ago
Agree with you. Particularly for the last point we are using the RecognizeEntities method that is used for NER purposes. And the we loop in to the list of entities. https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample4_RecognizeEntities.md For Key-Phrase extraction there is another method "ExtractKeyPhrases" https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/textanalytics/Azure.AI.TextAnalytics/samples/Sample3_ExtractKeyPhrases.md for key-phrases
upvoted 6 times
...
M25
1 year, 4 months ago
Correct! Examples: Output NER: trip, Seattle, last week https://learn.microsoft.com/en-us/azure/ai-services/language-service/named-entity-recognition/quickstart?tabs=ga-api&pivots=programming-language-csharp#output Output Key phrase extraction: modern medical office, Dr. Smith, great staff https://learn.microsoft.com/en-us/azure/ai-services/language-service/key-phrase-extraction/quickstart?pivots=programming-language-csharp#output
upvoted 3 times
...
...
zellck
Highly Voted 1 year, 6 months ago
NYY is the answer. https://learn.microsoft.com/en-us/azure/cognitive-services/language-service/named-entity-recognition/overview Named Entity Recognition (NER) is one of the features offered by Azure Cognitive Service for Language, a collection of machine learning and AI algorithms in the cloud for developing intelligent applications that involve written language. The NER feature can identify and categorize entities in unstructured text. For example: people, places, organizations, and quantities.
upvoted 11 times
Mehe323
10 months, 2 weeks ago
But entities are not the same as key phrases. A key phrase here could be 'Tour of Paris' which doesn't coincide with the entities. So I think the last one should be N.
upvoted 7 times
ProfessorZ
9 months, 2 weeks ago
https://learn.microsoft.com/en-us/azure/ai-services/language-service/named-entity-recognition/quickstart?tabs=ga-api&pivots=programming-language-csharp Example output shows "last week" as text output: Named Entities: Text: trip, Category: Event, Sub-Category: Score: 0.74, Length: 4, Offset: 18 Text: Seattle, Category: Location, Sub-Category: GPE Score: 1.00, Length: 7, Offset: 26 Text: **last week**, Category: DateTime, Sub-Category: DateRange
upvoted 1 times
...
...
...
famco
Most Recent 4 months, 2 weeks ago
I'm not sure if it is going to be Eiffel and Tower or just "Eiffel Tower"
upvoted 1 times
famco
4 months, 2 weeks ago
On closer look at this trick (e.v.i.l) question, I will answer No for Eiffel and Tower as separate. Under location there is : Structural - Manmade structures - en (supported language) So, I assume the question creator read this and thought it can be used to trick people
upvoted 1 times
...
...
JakeCallham
4 months, 3 weeks ago
I beleive NNN. Second is N because it will output two keys, not three.
upvoted 2 times
JakeCallham
4 months, 3 weeks ago
i get back to it: You're correct. Based on the given C# code using TextAnalyticsClient and the provided input string, the output would indeed include the words "Paris", "Eiffel", and "Tower". Let's break this down: The function getkeywords takes a TextAnalyticsClient and a string as input. It uses the RecognizeEntities method (note: there's a typo in the original code; it should be RecognizeEntities, not RecognizeEntitites) to analyze the text. The input string is: "Our tour of Paris included a visit to the Eiffel Tower" The TextAnalyticsClient's entity recognition would identify named entities in this text. "Paris" is recognized as a location entity. "Eiffel Tower" is recognized as a landmark entity, which would be split into two separate entities: "Eiffel" and "Tower".
upvoted 1 times
famco
4 months, 2 weeks ago
Why will they be split. Eiffel tower is identified as a man-made structure under location-structural.
upvoted 1 times
...
...
...
anto69
5 months, 1 week ago
Must be N-Y-N, these are named entities
upvoted 1 times
...
moonlightc
5 months, 2 weeks ago
It should be NNN According to ChatGPT Key words: Paris Eiffel Tower
upvoted 4 times
...
omankoman
7 months, 4 weeks ago
No Yes No
upvoted 3 times
...
funny_penguin
8 months ago
on exam, NYN. For the last one I selected N because the method looks like it's extracting entities, not key phrases.
upvoted 4 times
...
takaimomoGcup
8 months ago
NYN is right answer.
upvoted 3 times
...
Murtuza
9 months, 4 weeks ago
The function will output all the key phrases from the input string to the console. No, the function will output the recognized entities, not all key phrases. Key phrases could include other important words or phrases in the text that are not necessarily entities. For key phrase extraction, a different method would be used.
upvoted 2 times
...
Murtuza
10 months, 1 week ago
For the last choice that seems to be a topic of dicussion Console Output: The code prints the header “Key words:” to the console. It then iterates through the response.Value (presumably a collection of categorized entites
upvoted 2 times
...
lastget
1 year ago
Agree NYN
upvoted 3 times
...
katrang
1 year, 3 months ago
I think NYY. I could not see where all keywords would be output, but after checking the documentation they would also be identified as entities along with the Eiffel Tower (tour, paris and visit)
upvoted 1 times
...
973b658
1 year, 7 months ago
It is true.
upvoted 1 times
anjanc
7 months ago
not sure why this guy writes 'it is true' for all questions!!!
upvoted 2 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago