Text summerization using spaCy

1. Importing the required libraries

2. Loading stopwords from spaCy and punctuation from string library

3. Sample text to summerize

Source Wikipedia

4. Tokenization of the text

5. Making the word frequencies map

6. Calculating the maximum frequency and divide it by all frequencies to get normalized word frequencies

7. Getting the sent tokens

8. Calculating the most important sentences by adding the word frequencies in each sentence.

9. Calculating 30% of text with maximum score.

10. Get the summary of the text.