AI-102 · Question #356
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…
The correct answer is A. London and Buckingham Palace only. The provided Python function uses Azure AI Language's extract_key_phrases to identify and return the most important or relevant noun phrases from the input text.
Question
Exhibit
Options
- ALondon and Buckingham Palace only
- BTour and visit only
- CLondon and Tour only
- DOur tour of London included visit to Buckingham Palace
How the community answered
(37 responses)- A81% (30)
- B3% (1)
- C5% (2)
- D11% (4)
Why each option
The provided Python function uses Azure AI Language's `extract_key_phrases` to identify and return the most important or relevant noun phrases from the input text.
Key phrase extraction typically identifies important noun phrases or concepts within text. In the sentence "Our tour of London included a visit to Buckingham Palace", "London" and "Buckingham Palace" are the primary named entities and key locations, which are the most salient key phrases.
"Tour" and "visit" are verbs or less significant common nouns in this context, and not typically identified as key phrases by language models designed to extract salient concepts.
While "London" is a key phrase, "Tour" is generally not considered a primary key phrase compared to named entities or more specific concepts.
This choice represents the entire sentence or a significant portion of it, which is not what key phrase extraction aims to do; it extracts specific, concise phrases.
Concept tested: Azure AI Language Key Phrase Extraction
Source: https://learn.microsoft.com/en-us/azure/ai-services/language-service/key-phrase-extraction/overview
Topics
Community Discussion
No community discussion yet for this question.
