Microsoft Azure AI Engineer Associate AI-102 Practice Question
You call the Azure AI Language Sentiment Analysis REST endpoint (v3.2) with a batch that contains a single customer-feedback sentence. The JSON response includes the following document-level confidence scores: "positive": 0.76, "neutral": 0.18, "negative": 0.06. The value of the "sentiment" property for the document is "positive". Which rule does the service apply to choose this sentiment label?
It adds the positive and neutral scores and compares that sum to the negative score; whichever side is larger determines the label.
It assigns the document the sentiment that occurs most frequently across its sentence-level predictions.
It selects the sentiment class that has the greatest confidence score among the three returned scores.
It declares the document positive only when the positive score is greater than or equal to 0.50; otherwise it returns negative.
For each document (and for each individual sentence) the Sentiment Analysis feature returns three confidence scores whose values add up to 1. The service assigns the overall sentiment label that corresponds to whichever class has the highest confidence score. In the example, the positive class has the greatest score (0.76), so the document sentiment is reported as positive. The service does not use a fixed 0.5 threshold, does not add scores across classes, and does not base the document label on a majority of sentence-level predictions.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
How does Azure Sentiment Analysis calculate confidence scores?
Open an interactive chat with Bash
What happens if two sentiment classes have identical confidence scores?
Open an interactive chat with Bash
Why do the confidence scores always add up to 1?
Open an interactive chat with Bash
Microsoft Azure AI Engineer Associate AI-102
Implement natural language processing solutions
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .