Text Summarisation and NLP Applications #
A team reading service reports might want a two-line incident update, a list of follow-up actions or a direct answer about the cause. The audience and purpose determine which details belong in the summary.
1. Extractive and abstractive summarisation ☆ #
| Approach | Output | Typical issue |
|---|---|---|
| Extractive | Selects sentences or spans from the source | A copied sentence may contain an unexplained pronoun or repeat earlier facts |
| Abstractive | Writes a condensed account in new wording | A fluent summary can change a number, date or claim |
A generic summary gives an overview. A query-focused summary selects information relevant to a question. A multi-document summary also has to manage overlapping facts, conflicting reports and chronology.
2. From source to summary #
- Select content. A frequency baseline favours sentences containing recurring informative words. TF-IDF can down-weight generic terms. A graph-based method such as TextRank links similar sentences and ranks central ones. Use duplicate checks so repeated reporting does not crowd out other facts.
- Order information. Chronological order fits incident reports. A short briefing may give the outcome first and then the evidence. Keep explanations close to the claims they qualify.
- Edit for coherence. Expand unclear references, preserve names, figures, negation and uncertainty, and remove redundant phrases. Neural encoder–decoder models can learn to generate a summary from paired examples.
For “The system failed at 09:15. The team restored service at 09:42. The cause is still under investigation”, a short update could say “Service was restored at 09:42 after a 27-minute outage. The cause is under investigation.” A query asking only when service returned needs the restoration time and possibly its time zone.
3. Evaluating a summary ☆ #
ROUGE-2 measures bigram overlap with a reference. A common recall formulation divides the clipped count of matching bigrams by the number of reference bigrams. Precision uses the candidate’s bigram count and F1 combines precision and recall. State tokenisation and which variant you report.
| Text | Bigrams |
|---|---|
| Reference: “service resumed after restart” | service resumed, resumed after, after restart |
| Candidate: “service resumed after update” | service resumed, resumed after, after update |
Two of three bigrams match, so both precision and recall are 2/3 in this example. Yet update changes a fact. Review factual support, coverage, coherence and usefulness alongside overlap. A faithful paraphrase may have low overlap.
4. Related NLP applications #
- Machine translation preserves meaning across languages. Check names, terminology and meaning alongside reference-based scores.
- Question answering targets the evidence needed for a specific question. Check both the answer and its supporting passage.
- Conversational systems keep track of what the user is trying to do across turns. Test ambiguous requests, corrections and requests the system cannot complete.