Advanced level · Module 9: Text Summarization and Question Answering · Lesson 1 of 3
Extractive and Abstractive Summarisation
Learners build a TF-IDF sentence-scoring summariser, compare it with a pretrained abstractive model and evaluate both with ROUGE and a faithfulness check.
In this lesson you will
- Build an extractive summariser
- Evaluate summaries with ROUGE and faithfulness checks
Key concepts
extractive summaryabstractive summarysentence scoringROUGEfaithfulness / hallucination
The lesson
Extractive summarisation selects the most important sentences from the document; for example, score each sentence by the sum of its TF-IDF weights and keep the top three in original order. It cannot invent facts, which makes it safe for official documents.
Abstractive summarisation writes new sentences with an encoder-decoder model, through transformers.pipeline('summarization', model=...). Summaries are more fluent but can include facts that are not in the source (hallucination). Models fine-tuned on news datasets such as CNN/DailyMail (Apache-2.0) are common starting points.
ROUGE (evaluate.load('rouge')) measures overlap with a reference summary. It does not check truth, so add a faithfulness check: verify every number, date and name in the summary against the source.
Step by step
- Implement the extractive summariser for public reports.
- Generate abstractive summaries of the same reports.
- Compute ROUGE against human-written summaries.
- Check every fact in each summary against the source and count errors.
Practice activity
Compare extractive and abstractive summaries of five public reports on ROUGE and factual errors.
Expected result: A comparison table that shows ROUGE and faithfulness separately, with clear recommendations.
Check your understanding
-
Why can extractive summaries not hallucinate?
Show answer
They only copy sentences from the source.
-
What does ROUGE not measure?
Show answer
Whether the summary is factually correct.
Further learning
Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.