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.
- Summarizes long texts into shorter, coherent summaries.
- Utilizes the BART model for high-quality text summarization.
- Easy to use with a simple interface.
To install the necessary dependencies, run:
pip install -r requirements.txt
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.
python summarize.py --input article.txt --output summary.txt
- Python 3.6+
- Transformers library
- PyTorch
This project is licensed under the MIT License.
- The BART model is developed by Facebook AI.
- This project is inspired by the Hugging Face transformers library.
Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.