Skip to content

Facebook's BART (Bidirectional and Auto-Regressive Transformers): Model: facebook/bart-large-cnn Description: BART is particularly effective for summarization tasks. The bart-large-cnn model is fine-tuned on the CNN/Daily Mail dataset and is widely used for abstractive summarization. Hugging Face Link: facebook/bart-large-cnn

Notifications You must be signed in to change notification settings

Amoako419/Text_Summarizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BART Text Summarizer

Overview

The BART Text Summarizer is a tool that uses the BART (Bidirectional and Auto-Regressive Transformers) model to generate concise summaries of long texts. This project leverages the power of transformer models to understand and condense text while retaining the original meaning.

Features

  • Summarizes long texts into shorter, coherent summaries.
  • Utilizes the BART model for high-quality text summarization.
  • Easy to use with a simple interface.

Installation

To install the necessary dependencies, run:

pip install -r requirements.txt

Usage

To summarize a text, use the following command:

python summarize.py --input <input_file> --output <output_file>
  • <input_file>: Path to the input text file.
  • <output_file>: Path to save the summarized text.

Example

python summarize.py --input article.txt --output summary.txt

Requirements

  • Python 3.6+
  • Transformers library
  • PyTorch

License

This project is licensed under the MIT License.

Acknowledgements

  • The BART model is developed by Facebook AI.
  • This project is inspired by the Hugging Face transformers library.

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

About

Facebook's BART (Bidirectional and Auto-Regressive Transformers): Model: facebook/bart-large-cnn Description: BART is particularly effective for summarization tasks. The bart-large-cnn model is fine-tuned on the CNN/Daily Mail dataset and is widely used for abstractive summarization. Hugging Face Link: facebook/bart-large-cnn

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published