Giter Club home page Giter Club logo

textsumnlp's Introduction

Text Summarizer

๐Ÿ“ This is a Python program that summarizes text using Natural Language Processing (NLP) techniques.

Features

Here are some features of the text summarizer:

  • Automatic Language Detection: The program can automatically detect the language of the input text.
  • Summarize by Language: You can choose to summarize the text based on the detected language or provide a language preference.
  • Customizable Number of Sentences: You can specify the number of sentences to include in the summary.
  • Word Frequency Analysis: The program uses word frequencies to score and select the most important sentences for the summary.
  • Summary Statistics: The program provides statistics on the number of original words, summary words, and the percentage reduction in text size.

Usage

  1. Run the program using python sum.py.
  2. Enter the text you want to summarize.
  3. Choose whether to summarize by language (automatic detection or preference).
  4. If not summarizing by language, provide a language preference and the number of sentences for the summary.
  5. View the generated summary and the summary statistics.

Requirements

  • Python 3.6+
  • NLTK (Natural Language Toolkit)
  • langdetect
  • colorama

Installation

  1. Clone this repository.

  2. Install the required dependencies using pip:

    pip install -r requirements.txt
  3. Run the program:

    python sum.py

๐Ÿš€ Feel free to use this code, edit, fork or whatever!

textsumnlp's People

Contributors

dakzinhuwu 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.