Git Product home page Git Product logo

text-summarization-app's Introduction

Extractive Text-Summarization App using NLTK, using Streamlit

NLP: It is the ability of a computer program to understand human language as it is spoken and written referred to as natural language. It is a component of artificial intelligence(AI).

Libraries used:

1) re (RegEx or Regular Expression): This is the Python regular expression module, which is used for text cleaning/ preprocessing and pattern matching operations.

2) NLTK (Natural Language Toolkit): NLTK is a popular Python library used for building Python programs that work with human language data for applying in statistical natural language processing (NLP). It contains text processing libraries for tokenization, parsing, classification, stemming, tagging and semantic reasoning. Specifically, the following modules/components from NLTK are imported and used:

  • stopwords: This module provides a list of stopwords (common words like "the," "a," "is," etc.) that are often removed during text processing.
  • word_tokenize: This function tokenizes (splits) a given text into individual words.
  • sent_tokenize: This function tokenizes (splits) a given text into individual sentences.

Installation:

pip3 install nltk

3) Streamlit: It is an open-source Python library that makes it easy to create and share beautiful, custom web apps for machine learning and data science. In just a few minutes you can build and deploy powerful data apps.

Installation:

pip3 install streamlit

4) Heapq (Heap Queue): This is a built-in Python module for implementing the heap queue algorithm (Priority Queue). In this code, it is used to select the top N sentences with the highest scores for the summary.

Processes involved in Extractive Text Summarization

  1. Text cleaning

  2. Sentence tokenization

  3. Word tokenization

  4. Word-frequency table

  5. Summarization

To run the file:

python -m streamlit run TextSummarizer.py

text-summarization-app's People

Contributors

anushksanghvi avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.