/TextSummarization-NLP

A python code to summarize a paragraph into a given number of sentences. ~ Learning NLP ~

Primary LanguagePython

Paragraph Summary - NLP

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.

Libraries

  • nltk
  • collections
  • heapq