/Automatic-Text-Summarizer

Text Summarizer Web App Built in python using django framework

Primary LanguagePythonMIT LicenseMIT

Automatic Text Summarizer

A text summarizer web app with multiple features.
Quick Demo: http://automatictextsummarizer.herokuapp.com

Features:

  • Summarize both English and Nepali text.
  • Summarize text via either copy-paste paragraph or URL.
  • User can save summarized text.
  • View top 5 trending summarized news from BBC, CNN and Nagarik News.
  • Summarize pdf file to text file.

User can choose one of the following algorithms for text summarization:

  • Frequency Algorithm
  • Sentence Matching

Dependencies

  • nltk
  • beautiful soup
  • django

Installation

  1. Go to folder you want to put the cloned project in your terminal & type:
    git clone https://github.com/xanjay/Automatic-Text-Summarizer.git

  2. Install the project dependencies:
    pip install -r requirements.txt

  3. In settings.py, replace value of SECRET_KEY with your own key(set environment variable).
    SECRET_KEY = os.environ.get('SECRET_KEY', '-1')

  • You can generate your secret key here
  1. Create local MySQL database named 'text_summarizer'.
  • Edit your database credentials in following lines in settings.py
DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'text_summarizer',
        'USER': 'root',
        'PASSWORD': '',
        'HOST': '',
        'PORT': '',
    }
}
  1. In terminal:
    • $ python manage.py migrate - this will apply migrations to your local MySQL database
    • $ python manage.py createsuperuser - this will create admin support
    • $ python manage.py runserver - Run Server