Extractive Text Summarization in Python
Find the extensive documentation in the python notebook provided by the name extractive_summarizer.ipynb in the project.
Please make sure that you have the following libraries installed in your system-
numpy
matplotlib
networkx
nltk
sklearn
PyPDF2
If you have anaconda then you only need to worry about nltk and PyPDF2. Otherwise you may need to install other libraries. It is super easy to install them. Once you have installed every library mentioned above, you are ready to go.
Clone/Download this project and extract it into your desired folder.
Run final_code.py
When asked for file input, please provide the name of any file already in the directory whose summary you want to create.
I have included 3 sample files: story1.txt, story2.txt, 3.pdf
If you want to have your summary, just enter the full path of that file. The summary will be appended in the file named 'sum.txt' in the same directory as this code.