Summarizing Text Using Word Frequency
One of the simplest ways to do text summarization is to compute the frequency of words and extract sentences that contain the words that are most common in the text. This follows a certain process, which is discussed here:
- Ignore stop words: Common words (known as stop words) are ignored.
- Determine top words: The most frequently occurring words in the document are counted up.
- Select top words: A small number of the top words are selected to be used for scoring.
- Select top sentences: Sentences are scored on the basis of the total number of the top words they contain. The top four sentences are selected for the summary.
In the next section, we will go through an exercise to get a better understanding of this concept.
Exercise 52: Word Frequency Text Summarization
In this exercise, we will implement text summarization by ranking the sentences using word frequency. Follow these steps to implement this exercise:
- ...