Text Summarization with Transformers Pipeline

This Python project is designed for text summarization using the Transformers pipeline. It leverages Hugging Face's Transformers library to provide an easy-to-use interface for summarizing text content.

Features

  • Text Summarization: The script can generate concise summaries of long text content.
  • Customizable Summarization Length: Users can specify the desired length of the summary.
  • Multiple Languages: The Transformers pipeline supports multiple languages, making it versatile for various text sources.
  • Easy Integration: This project provides a straightforward interface for integrating Transformers' powerful text summarization capabilities into your applications.

Prerequisites

Before using the script, make sure you have the following installed:

  • Python 3.x
  • Hugging Face Transformers library

You can install the Transformers library using pip:

pip install transformers

Usage

  1. Clone this repository to your local machine:
git clone https://github.com/mrnithish/Text_Summarizer_transformers.git
  1. Navigate to the project directory:
cd text-summarization-transformers
  1. Run the Python script:
python summarize_text.py
  1. The script will prompt you to input the text you want to summarize and the desired summary length.

  2. The summarized text will be displayed in the console.

Customization

You can customize the script to handle specific languages, summarization models, or text preprocessing by modifying the summarize_text.py script.

License

This project is licensed under the MIT License - see the LICENSE file for details.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS," WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM, OUT OF, OR IN CONNECTION WITH THE SOFTWARE OR THE USE, OR OTHER DEALINGS IN THE SOFTWARE.