Skip to content

anweasha/Text-Summarizer

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
February 19, 2022 19:07
May 11, 2022 18:27
May 11, 2022 17:02
February 19, 2022 19:55
May 12, 2022 23:30
May 11, 2022 17:47
February 19, 2022 19:49
February 19, 2022 19:12

Text Summarizer

Try the web application here.

Overview

Text summarization refers to the technique of shortening long pieces of text. The intention is to create a coherent and fluent summary having only the main points outlined in the document. Automatic text summarization is a common problem in machine learning and natural language processing (NLP).

There are two main approaches to summarize text in NLP:

  • Extractive summarization This approach selects passages from the source text and then arranges it to form a summary. One way of thinking about this is like a highlighter underlining the important sections. The main idea is that the summarized text is a sub portion of the source text.

  • Abstractive summarization The abstraction technique entails paraphrasing and shortening parts of the source document. When abstraction is applied for text summarization in deep learning problems, it can overcome the grammar inconsistencies of the extractive method. The abstractive text summarization algorithms create new phrases and sentences that relay the most useful information from the original text — just like humans do. Therefore, abstraction performs better than extraction. However, the text summarization algorithms required to do abstraction are more difficult to develop.

In this project, I have made the use of abstractive summarization with the help of BART model, which inherits from pretrained model on Hugging Face.

Features:

  • The user can enter any text of desired length in the text area to get it summarized.
  • He/she can specify the length of the desired summary.
  • After getting the summary, the user can copy the text to clipboard to use it somewhere else.

WEB APPLICATION - Text Summarizer









Tech Stacks:

  • Hugging Face
  • Transformers
  • Natural Language Processing (NLP)
  • Python

References: