exam questions

Exam AI-102 All Questions

View all questions & answers for the AI-102 exam

Exam AI-102 topic 3 question 79 discussion

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

You are developing a text processing solution.

You have the following function.



You call the function and use the following string as the second argument.

Our tour of London included a visit to Buckingham Palace

What will the function return?

  • A. London and Buckingham Palace only
  • B. Tour and visit only
  • C. London and Tour only
  • D. Our tour of London included visit to Buckingham Palace
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
syupwsh
1 day, 18 hours ago
Selected Answer: A
RecognizeEntities method of the Azure Text Analytics SDK is used to identify named entities such as locations, organizations, or other proper nouns in a given text. In this case, "London" and "Buckingham Palace" are recognized as proper nouns representing specific entities. Other words like "tour" and "visit" are not named entities and will not be returned by this method. A for sure
upvoted 1 times
...
kennynelcon
1 month, 3 weeks ago
Selected Answer: A
Key words: London Buckingham Palace The actual output may vary based on the implementation and configuration of the TextAnalyticsClient. For instance, it might also detect additional entities like “tour” or categorize “London” as a Location and “Buckingham Palace” as an Organization.
upvoted 1 times
kennynelcon
1 month, 3 weeks ago
The function GetKeyWords uses a TextAnalyticsClient to analyze the provided text and extract key entities. Here’s what the function does step-by-step: 1. Recognize Entities: It calls textAnalyticsClient.RecognizeEntities(text) to process the input text and identify named entities such as places, organizations, dates, and more. 2. Output Keywords: It iterates over the recognized entities (response.Value) and writes each entity’s text to the console.
upvoted 1 times
...
...
a8da4af
3 months, 1 week ago
Selected Answer: A
The correct answer is A. London and Buckingham Palace only. Explanation: In this function, the RecognizeEntities method of the TextAnalyticsClient is used to extract named entities from the provided text. Named entities typically include proper nouns such as names of places, people, and organizations. In the provided string, "Our tour of London included a visit to Buckingham Palace", the named entities that would be recognized are "London" and "Buckingham Palace", as these are specific locations. Other words like "tour" and "visit" are common nouns and are unlikely to be identified as entities in this context by RecognizeEntities. Therefore, the function will return "London" and "Buckingham Palace" only.
upvoted 4 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