A python code to summarize a paragraph into given number of sentences. In this example my given input paragraph is 10 sentences long. The summary consists of 4 lines.
The algorithm scores each sentence and based on the score priority, the final summary is created.
- nltk
- collections
- heapq