All exams← All Azure AI Fundamentals (AI-900) notes

Natural language processing on Azure: Azure AI Fundamentals (AI-900) revision notes

Revision notes

What Azure NLP covers

Natural language processing (NLP) is how Azure AI services understand and generate human language - text and speech. For AI-900 the two headline services are Azure AI Language and Azure AI Speech, both part of Azure AI Services (the multi-service resource).

Azure AI Language features

  • Key phrase extraction - pulls out the main talking points from a block of text.
  • Sentiment analysis - scores text as positive, negative, neutral or mixed, with a confidence score between 0 and 1 for each label.
  • Named Entity Recognition (NER) - finds and categorises entities such as people, places, dates, quantities and organisations.
  • PII detection - a specific type of entity recognition that flags and can redact personal data like names, phone numbers and card numbers.
  • Language detection - identifies the language a text is written in and returns an ISO code plus a confidence score.
  • Conversational Language Understanding (CLU) - the successor to the old LUIS service, used to build custom intent and entity models for chatbots and voice apps. Remember: LUIS is retired, CLU is the current tool.
  • Question Answering - turns a knowledge base (often a FAQ document) into an API that answers natural-language questions.

Azure AI Speech features

  • Speech to text - transcribes spoken audio into text, real-time or batch.
  • Text to speech - converts text into natural-sounding spoken audio; supports both prebuilt neural voices and custom voices.
  • Speech translation - converts spoken audio in one language into text or speech in another, in near real time.
  • Speaker recognition - identifies or verifies who is speaking from their voice.

Common mistakes to avoid

  • Do not confuse sentiment analysis (whole-document tone) with key phrase extraction (topic words) - they answer different questions.
  • Language detection returns a confidence score; a value of (Unknown) means the service could not reliably tell.
  • CLU replaces LUIS - if an exam item mentions building custom intents, the current answer is CLU, not LUIS.
  • Translator (text translation) is a separate Azure AI service from Speech Translation, but both sit under the NLP umbrella - Translator does text-to-text, Speech does audio-involving translation.
  • PII detection is not the same as content moderation; PII is about personal data, not offensive content.

Quick recap

Azure AI Language handles written text tasks (sentiment, key phrases, NER, PII, language detection, CLU, Question Answering). Azure AI Speech handles spoken language tasks (speech-to-text, text-to-speech, translation, speaker recognition). Both can be accessed through a single multi-service Azure AI Services resource or as standalone resources.

Key facts

Flashcards

Which Azure service extracts sentiment, key phrases and entities from text?
Azure AI Language.
tap to reveal
What are the four possible sentiment labels in Azure AI Language sentiment analysis?
Positive, negative, neutral, mixed - each with a confidence score 0 to 1.
tap to reveal
What replaced LUIS for building custom language understanding models?
Conversational Language Understanding (CLU); LUIS is retired.
tap to reveal
What does NER stand for and what does it do?
Named Entity Recognition - finds and categorises entities like people, places, dates and organisations in text.
tap to reveal
What does PII detection do in Azure AI Language?
Finds and can redact personal data such as names, phone numbers and card numbers.
tap to reveal
What does language detection return?
An ISO language code and a confidence score; Unknown if it cannot tell.
tap to reveal
Name the four core capabilities of Azure AI Speech.
Speech-to-text, text-to-speech, speech translation, speaker recognition.
tap to reveal
What two voice options does text-to-speech support?
Prebuilt neural voices and custom-trained voices.
tap to reveal
What is the difference between Translator and Speech Translation?
Translator does text-to-text; Speech Translation converts spoken audio in real time into text or speech in another language.
tap to reveal
What does Question Answering do?
Turns a knowledge base, often FAQ content, into an API that answers natural-language questions.
tap to reveal
What is key phrase extraction used for?
Pulling out the main talking points or topics from a block of text.
tap to reveal
How can Azure AI Language and Speech resources be provisioned?
Either via a single multi-service Azure AI Services resource or as separate single-service resources.
tap to reveal
What does speaker recognition do?
Identifies or verifies who is speaking based on their voice.
tap to reveal
Practice questions

Natural language processing on Azure: 5 practice questions

Q1. Which Azure AI service is designed to extract key phrases, detect sentiment, and identify entities in unstructured text?
  • A.  Azure AI Vision
  • B.  Azure AI Speech
  • C.  Azure AI Translator
  • D.  Azure AI Language
Show answer & explanation
✓ Answer: D. Azure AI Language
Azure AI Language provides prebuilt features such as key phrase extraction, sentiment analysis, and named entity recognition for text. Azure AI Vision works with images, Azure AI Speech converts between speech and text, and Azure AI Translator performs language translation rather than text analytics.
Q2. A company wants to determine whether customer reviews are positive, negative, neutral, or mixed. Which Azure AI Language feature should be used?
  • A.  Sentiment analysis
  • B.  Language detection
  • C.  Key phrase extraction
  • D.  Named entity recognition
Show answer & explanation
✓ Answer: A. Sentiment analysis
Sentiment analysis returns a score and label (positive, negative, neutral, or mixed) for a piece of text. Key phrase extraction pulls out main topics but doesn't judge tone, and entity recognition identifies things like people or places, not opinion.
Q3. Which Azure AI Language feature would identify that the text 'I bought an iPhone from Apple Store in London' contains a product, an organization, and a location?
  • A.  Named entity recognition
  • B.  Key phrase extraction
  • C.  Sentiment analysis
  • D.  PII detection
Show answer & explanation
✓ Answer: A. Named entity recognition
Named entity recognition (NER) categorizes words or phrases into predefined types such as person, location, organization, and product. Key phrase extraction would just return the main topics without categorizing them, and sentiment analysis doesn't identify entities at all.
Q4. What is the primary purpose of the Personally Identifiable Information (PII) detection feature within Azure AI Language?
  • A.  To translate personal data into another language
  • B.  To identify and optionally redact sensitive data such as names, phone numbers, and addresses in text
  • C.  To detect the language a piece of text is written in
  • D.  To score how positive or negative a document is
Show answer & explanation
✓ Answer: B. To identify and optionally redact sensitive data such as names, phone numbers, and addresses in text
PII detection scans text for sensitive information like names, email addresses, and financial account numbers, and can return redacted output with the sensitive data masked. It is unrelated to translation, sentiment, or language detection.
Q5. A developer needs to build a resume-screening application that recognizes that 'Azure' refers to a cloud platform and 'Python' refers to a programming language, using domain-specific categories not covered by the general entity model. Which capability should they use?
  • A.  Custom named entity recognition
  • B.  Text Analytics for health
  • C.  Language detection
  • D.  Key phrase extraction
Show answer & explanation
✓ Answer: A. Custom named entity recognition
Custom NER lets you define and train your own entity categories tailored to a specific domain, such as skills or job titles, which the general-purpose NER model doesn't cover out of the box. Key phrase extraction and language detection don't support custom categories, and Text Analytics for health is specific to clinical text.
Test yourself
See the Azure AI Fundamentals (AI-900) page

More Azure AI Fundamentals (AI-900) topics