SaiThejeshwar / spacy-summary

Text summarization using spacy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

spacy-summary

A work-in-progress test summarizer that uses spacy.io.

Usage

To get started, install the dependencies:

# A virtualenv is recommended
virtualenv .env
source .env/bin/activate

# Install python libraries
pip install -r requirements.txt
python -m spacy download en

The program takes the text file to summarize and the number of sentences to include in the summary:

# Reads and summarizes document.txt in 3 sentences
python main.py document.txt 3

TODO

  • Improve score function

About

Text summarization using spacy

License:MIT License


Languages

Language:Python 100.0%