Summarize model for makes summary from news articles
A work-in-progress test summarizer that uses spacy.io.
To get started, install the dependencies:
# Using virtualenv
virtualenv .env
source .env/bin/activate
# Install python libraries
pip install -r requirements.txt
python -m spacy download en
python --version = 2.7The program takes the text file to summarize and the number of sentences to include in the summary:
python main.py
#navigate to root folder using conda terminal
cd spacy-summary
#if the current python version 2.7 in conda terminal, then ignore this step
conda activate py27
#start the python server using flask and waiting for POST request
python main.py