This repository contains Python code to summarize news articles using the BART (Bidirectional and Auto-Regressive Transformers) model.
-
Model: We use the
facebook/bart-large-cnn
pre-trained BART model for text summarization. -
Usage: The provided Python script demonstrates how to summarize news articles using the BART model.
-
Clone the repository:
-
git clone https://github.com/sharadpatell/Text_summarization.git
-
Install dependencies: pip install transformers
-
Place your news article text file (
news_article.txt
) in the repository directory. -
Run the Python script: