Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

Compare

Sentiment Analysis vs Model Tone Labels vs Content Safety

30-second answer

Use sentiment analysis for cheap, steady scores at volume. Add a model tone label with an enum schema when sarcasm or anger matters. Use Content Safety to score harm, and Prompt Shields to catch attacks in prompts and documents.

Simulate it »

Side by side

↔ Swipe the table to see every column.

Sentiment analysisModel tone labelContent SafetyPrompt Shields
Question answeredIs this positive or negative?What is the tone: sarcastic, angry, polite?Is this harmful?Is this an attack on the model?
OutputLabel and confidence scoresAn enum value you defineSeverity 0, 2, 4 or 6 per categoryAttack detected or not
Catches sarcasmNoYes, usuallyNoNo
Checks documentsPer document or sentencePer promptPer textUser prompt and documents
Cost feelLowHigher (tokens)LowLow

Prices are illustrative pay-as-you-go list prices converted at approximate rates, for "price feel" only. Check the Azure pricing calculator for real quotes.

Which one should I pick?

  • Sentiment

    Pick it when you score thousands of reviews cheaply

  • A tone label

    Pick it when escalation depends on anger or sarcasm

  • Content Safety

    Pick it when you must hold back harmful content

  • Prompt Shields

    Pick it when the agent reads outside text

Simulate it

3D Text and speech: extract, judge, translate, listen and speak Score a review, then a sarcastic one.

🖱️ Drag to rotate · scroll or pinch to zoom

Loading the 3D scene…
</> Embed

Embed this simulation

Free for trainers, teachers and bloggers. Paste this into your page:

Sentiment and tone

Sentiment analysis returns positive, neutral, negative or mixed with confidence scores, and opinion mining ties each opinion to its target. It is cheap and steady, but it reads “Oh great, another hour on hold” as positive. For tone, ask a model for a label from an enum.

Read this tour as text
  1. Entities and strict JSON. A support ticket goes to Azure Language for named entities (fixed categories, confidence scores) or to a model deployment that can return any shape you ask for. A model needs a JSON schema with strict: true before code can trust the fields. JSON mode only promises valid JSON.
  2. Domain summaries and custom extraction. A plain summary drops what an auditor needs. A domain prompt (role, checklist, glossary, one worked example, temperature 0) fixes that without training. For the same fields at high volume, custom named entity recognition in Azure Language learns your own entity types from labelled examples.
  3. Sentiment and tone. Sentiment analysis returns positive, neutral, negative or mixed with confidence scores, and opinion mining ties each opinion to its target. It is cheap and steady, but it reads “Oh great, another hour on hold” as positive. For tone, ask a model for a label from an enum.
  4. Safety, PII and Prompt Shields. Content Safety scores Hate, Sexual, Violence and Self-harm at severity 0, 2, 4 or 6 and you choose the block threshold. PII detection can redact only the categories your policy lists. Prompt Shields checks the user prompt and any document for hidden instructions.
  5. Translator or an LLM. Azure Translator returns many target languages in one fast call, per character. A dynamic dictionary or Custom Translator protects brand names. An LLM translation flow follows tone and formatting rules written in plain words, but it costs more and can vary, so evaluate it first.
  6. A voice for the agent. Speech to text turns the caller into words, the agent answers, and text to speech with a neural voice speaks the reply. SSML controls pauses and rate. A phrase list boosts a few words; custom speech is for many terms, accents or noise. Voice Live runs the loop over one low-latency connection.
  7. Translate speech and reason over audio. Speech translation recognises one spoken language and returns text in several in one pass, and can speak the result. When the question is about how something was said, send the audio to an audio-capable model such as gpt-4o-audio-preview. A text-only deployment rejects input_audio.

Questions people ask

What severity levels does text moderation return?

By default the four-level output returns 0, 2, 4 or 6 for each harm category.

Is sentiment a safety feature?

No. It measures opinion, not harm. Use Content Safety for harm.

Learn each one properly

More comparisons

Install MSDEVBUILD Azure

Free · no account · works offline

Save the whole course for offline ›

Hi, I’m your Nimbus

Your study buddy. Pick what we do next.

MSDEVBUILD · Multi-Stack Dev Build

Sign in to MSDEVBUILD

One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.