Microsoft Certified Azure AI Engineer Associate · Free Practice Question Easy
Question 5
You are developing a text processing solution.
You develop the following method.
def get_key_phrases(text_analytics_client, text):
response = text_analytics_client.extract_key_phrases(text, language = "en")
print("keyphrases")
for keyphrase in response.key_phrases:
print(f'\t{keyphrase}')
You call the method by using the following code.
get_key_phrases(text_analytics_client, "the cat sat on the mat")
Select Yes if the statement is True. Otherwise, select No.
Statement: Output will contain the following words : the, cat, sat, on, and mat.
-
A
Yes
-
B
No
Reveal correct answer
Correct answer: B
B.
The Text Analytics API's key phrase extraction feature is designed to identify the main concepts in text. It typically focuses on extracting significant phrases rather than including common stop words like "the" or "on." Therefore, such words are generally not included in the key phrases returned by the API.
Discussion
Think the marked answer is wrong, or have a better explanation? Share it below — comments appear after review.
