nerdexam
Microsoft

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.

Submitted by alyssa_d· Mar 30, 2026Implement natural language processing solutions

Question

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?

Exhibit

AI-102 question #356 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)
  • A
    81% (30)
  • B
    3% (1)
  • C
    5% (2)
  • D
    11% (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.

ALondon and Buckingham Palace onlyCorrect

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.

BTour and visit only

"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.

CLondon and Tour only

While "London" is a key phrase, "Tour" is generally not considered a primary key phrase compared to named entities or more specific concepts.

DOur tour of London included visit to Buckingham Palace

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

#Named Entity Recognition#Text Analytics#NLP#Azure AI services

Community Discussion

No community discussion yet for this question.

Full AI-102 Practice