Opinions, Summaries, and Voice: NLP in Action
TL;DR: You will be able to explain sentiment analysis with negation and sarcasm, summarisation in two forms, information extraction, and the full speech loop from audio to voice.
This article is one Wisdom Nugget from What Is Natural Language Processing? by Trevor Stephenson.
Every day, millions of people write reviews, post opinions, and share experiences online. That text is a goldmine for businesses that want to know what customers think. But reading thousands of reviews manually is impossible. This is where sentiment analysis comes in. In this Nugget, we will explore sentiment analysis, how NLP reads emotions and opinions in text, and why it is both powerful and tricky.
By the end of this Nugget you will be able to explain sentiment analysis including aspect-based scoring, negation, sarcasm, and emotion detection, explain extractive versus abstractive summarisation with faithfulness checks, explain information extraction with the Obama example, and explain ASR and TTS with homophones, acoustic and language models, and the privacy and ethics questions.
The core idea
Sentiment analysis is not just about counting positive and negative words. It is about understanding opinions, emotions, and attitudes in context. Good sentiment analysis is aspect-based, handles negation, acknowledges sarcasm limits, and is trained on domain-matched data. Summarisation is not just shortening. It is about extracting what matters while staying faithful to the source. Extractive is safe but limited; abstractive is flexible but must be checked against the original. Speech technology is a two-way bridge: ASR turns human speech into machine-readable text, TTS turns machine text into human-hearable speech. Both are powerful and both raise real questions about data, bias, and consent. When you evaluate any of these tools, ask the book’s questions: does it handle negation? Is it aspect-based? Does it acknowledge sarcasm limitations? Was it trained on data from your domain? For summaries, ask whether the summary contains facts not in the original, omits critical caveats, or would be agreed with by a human who read the original.
How it works
Section 1 (Figure 10.1) covers sentiment analysis: simple classification, aspect-based analysis, lexicon-based scoring, machine-learning approaches, contextual embeddings, negation, sarcasm, emotion detection, and the five evaluation questions. Section 2 (Figure 10.2) covers summarisation: extractive versus abstractive, meeting transcript example, hallucination and faithfulness checks, and information extraction with named entity recognition and relation extraction. Section 3 (Figure 10.3) covers ASR: acoustic model plus language model, homophones, continuous speech segmentation, accent and noise challenges, low-resource languages; and TTS: concatenative stitching versus neural generation, prosody, uses, voice cloning ethics with watermarking, and privacy as biometric data.
The tools
Tool 1: Explain sentiment analysis, including the hard cases. At its simplest, sentiment analysis classifies text as positive, negative, or neutral, like the review ‘The food was amazing, but the service was slow.’ That overall classification hides nuance, so aspect-based sentiment analysis breaks text into aspects: food is positive, service is negative, ambience is neutral. Lexicon-based approaches assign sentiment scores to words: ‘love’ +2, ‘hate’ -2, ‘amazing’ +3, ‘terrible’ -3, then sum them. They are transparent but fail on negation (‘not good’ is not positive) and context (‘This movie was sick’ in slang is positive). Machine-learning approaches train on labelled reviews, learning patterns including word combinations, and use embeddings to understand that ‘amazing’ and ‘fantastic’ are similar. Contextual embeddings understand that ‘good’ in ‘not good’ is different from ‘good’ in ‘very good’. Three hard cases the book names: negation, where ‘not good’ must not be read as positive; sarcasm, where ‘Oh great, another delayed flight.
Step by step
The end-of-chapter exercise as a numbered protocol, in order.
- Sentiment: score four reviews, The food was amazing but the service was slow; I thought the movie would be terrible, but it was fantastic!; Not bad, I guess.; Oh great, another delayed flight. Just what I needed.
- Summarisation: summarise a 1000-word article in one sentence and as bullet points, then compare with an AI summary and check faithfulness and hallucination.
- Information extraction: extract Person, Date, Place from Barack Obama was born on August 4, 1961, in Honolulu, Hawaii.
- ASR and TTS: explain how a system distinguishes to/two/too, why overlapping speech is hard, and what privacy risks voice data poses. No time is stated in the book for this exercise.
Worked example
The book’s worked example is the aspect breakdown: ‘food was amazing but service was slow’ splits into food positive +0.9 and service negative -0.6. The twist example is ‘I thought the movie would be terrible, but it was fantastic!’, which starts negative and ends positive, so an overall score must handle the reversal. The sarcasm example is ‘Oh great, another delayed flight. Just what I needed.’, which looks positive on words but is negative in intent. The information extraction example is ‘Barack Obama was born on August 4, 1961, in Honolulu, Hawaii’, giving Person Barack Obama, Date August 4, 1961, Place Honolulu, Hawaii. The speech example is the homophone test: ‘I bought two apples’ not ‘to apples’, chosen by the language model from context.
A real example from the book
Case Study – Chapter 10: TasteAnalytics: Opinions, Summaries, and Voice in a Restaurant Chain. No person age is given. TasteAnalytics serves a restaurant chain with 50 locations. It processes 2,000 reviews daily from Google, TripAdvisor, and Instagram. Aspect-based sentiment analysis breaks reviews into food, service, ambience, price, location. A review Food was amazing but service was slow gives food positive +0.9, service negative -0.6. Negation is handled: not good is not scored as positive. Sarcasm is flagged for human review: Oh great, another delayed flight is not scored as positive. Summaries: extractive summaries highlight the most representative sentences for managers; abstractive summaries generate executive summaries tailored to operations (service speed) versus marketing (food quality). Information extraction pulls structured data from invoices and supplier emails: vendor, amount, date.
Mistakes to avoid
- Scoring a whole review as one number. Correction: use aspect-based analysis, food positive and service negative in the same review.
- Reading ‘not good’ as positive. Correction: handle negation explicitly.
- Trusting sarcasm detection. Correction: flag sarcasm for human review, because systems still miss it.
- Accepting an abstractive summary without checking. Correction: run the faithfulness checks, facts not in the original, omitted caveats, would a human agree.
- Extracting entities without relations. Correction: relation extraction finds the connections, like who was born when and where.
- Expecting ASR to handle overlapping speech. Correction: use a single-speaker protocol in noisy settings.
- Using voice cloning without consent. Correction: watermark or label synthetic speech and get consent.
What not to do
- Do NOT score a mixed review as one number.
- Do NOT read ‘not good’ as positive.
- Do NOT trust sarcasm detection blindly.
- Do NOT accept an abstractive summary without faithfulness checks.
- Do NOT expect ASR to handle overlapping speech.
- Do NOT clone a voice without consent.
- Do NOT treat voice data as ordinary data.
Low-energy mode
Score one review you read today as positive, negative, or mixed, and name the aspect. That counts.
If you freelance
This is one way to apply the idea, not a passage from the book. A freelancer can use aspect-based sentiment on their own client feedback: split each testimonial into aspects like communication, speed, and quality, so one mixed review does not become a single misleading score.
How to know it worked
You scored four reviews including the sarcastic one and the twist one. You summarised a 1000-word article in one sentence and as bullet points and compared with an AI summary on faithfulness and hallucination. You extracted Person, Date, Place from the Obama sentence. You explained the to/two/too distinction, overlapping speech, and voice privacy risks.
Key takeaways
- Sentiment analysis is not just about counting positive and negative words. It is about understanding opinions, emotions, and attitudes in context.
- Good sentiment analysis is aspect-based, handles negation, acknowledges sarcasm limits, and is trained on domain-matched data.
- Summarisation is not just shortening. It is about extracting what matters while staying faithful to the source.
- Voice is biometric data.
Try it today
Do Exercise – Chapter 10: Opinions, Summaries, Voice today (no time stated in the book, see Exercise).
End of Chapter Exercise – Chapter 10: Opinions, Summaries, Voice. No time stated in the book.
- Sentiment: score four reviews, The food was amazing but the service was slow; I thought the movie would be terrible, but it was fantastic!; Not bad, I guess.; Oh great, another delayed flight. Just what I needed.
- Summarisation: summarise a 1000-word article in one sentence and as bullet points, then compare with an AI summary and check faithfulness and hallucination.
- Information extraction: extract Person, Date, Place from Barack Obama was born on August 4, 1961, in Honolulu, Hawaii.
- ASR and TTS: explain how a system distinguishes to/two/too, why overlapping speech is hard, and what privacy risks voice data poses.
Frequently asked questions
Why does trying harder not work here?
Trying harder to count positive and negative words fails here, because the chapter’s own point is that lexicon counting fails on negation and context: ‘not good’ is not positive, and ‘sick’ in slang is positive. The fix the book gives is aspect-based, contextual, domain-matched sentiment analysis that acknowledges sarcasm limits.
How do I know it worked?
You scored four reviews including the sarcastic one and the twist one. You summarised a 1000-word article in one sentence and as bullet points and compared with an AI summary on faithfulness and hallucination. You extracted Person, Date, Place from the Obama sentence. You explained the to/two/too distinction, overlapping speech, and voice privacy risks.
What if it does not work?
If a review is mis-scored, then check whether it was scored as one number instead of by aspect. If ‘not good’ is read as positive, then negation handling failed. If sarcasm is missed, then flag it for human review rather than trusting the score. If a summary invents facts, then it is an abstractive hallucination and needs faithfulness checks.
Get the book
Google Play eBookGoogle Play AudiobookBarnes & Noble
More from What Is Natural Language Processing?
- What Is Natural Language Processing?: A Beginner’s Guide to How Machines Understand Language
- Where to Go Next: Your NLP Future (and From Words to World)
- Ethics, Bias, and Limitations: Using NLP Responsibly
- Search, Translation, and Chatbots: How NLP Powers the Web
- The Invisible NLP All Around You: Keyboards, Inboxes, and Voice
- Intent, Entities, and Context: How Machines Follow a Conversation
- Giving Words Meaning: From Counting to Meaning Maps to Language Models
- Making Text Machine-Readable: Cleaning, Tokenisation, and the Corpus
- The End-to-End Pipeline: Your Map for the Rest of the Book
- From Rules to Statistics to Neural Networks: How NLP Got Here
- Why Language Is Hard: Ambiguity, Three Layers, and the Outside-In Machine
- What NLP Really Is: The One-Sentence Definition and the Family Picture
- Why This Book, Why Now: A Framework You Can Use for Years
- Natural Language Processing Glossary: Key Terms and Concepts in Plain Language
- How to Use What Is Natural Language Processing? for Study Groups, Classrooms, and Teams
- After You Finish the Book: How to Build Projects, Keep a Journal, and Stay Current
- How the NLP Pipeline and Meaning Maps Work, in Plain Language?
- How Natural Language Processing Works in Everyday Life and Work: 5 Scenarios
- Common Misunderstandings About Natural Language Processing and How to Fix Them
- 7 Free Tools If You Loved This NLP Book
- How This NLP Book Was Built: Concept First Method
- NLP Beginner Book FAQ: Formats, Scope, Safety, Work, Answered
- Who Should Read This NLP Beginner Book? Reader Guide
- NLP Book vs Textbook vs Article vs Coding Course vs Doing Nothing
- Read Chapter 1 Free: What Is Natural Language Processing Really?
- How to Run a One Day Autocorrect Detective Check
- What Is the NLP Pipeline? Input Processing Understanding Generation Explained
- Best Natural Language Processing Books in 2026: A Beginner First Pick
