Text summarization is the process of converting a long text into its summary. Suppose we have a Wikipedia article and say we don't want to read the whole article – we just need an overview of the article. In this case, summarizing the Wikipedia article will help us get an overview of the article. Text summarization is widely used for a variety of applications, from summarizing long documents, news articles, blog posts, ranging to many more. In the text summarization task, given a long text, our goal is to convert the given long text into its summary as shown in the figure:
![](https://static.packt-cdn.com/products/9781838821593/graphics/assets/13805154-1c9a-4ca8-bc0b-d7968d1fb9c1.png)
Text summarization is of two types:
- Extractive summarization
- Abstractive summarization
Now let's explore extractive and abstractive summarization in detail.
Extractive summarization
In extractive summarization, we create a summary from a given text by extracting only the important sentences.
That is, say we are given a long document containing...