A text summarizer web app with multiple features.
Quick Demo: http://automatictextsummarizer.herokuapp.com
- 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
- nltk
- beautiful soup
- django
-
Go to folder you want to put the cloned project in your terminal & type:
git clone https://github.com/xanjay/Automatic-Text-Summarizer.git
-
Install the project dependencies:
pip install -r requirements.txt
-
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
- 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': '',
}
}
- 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