- Introduction
- Dataset Used
- Model Used
- Workflow of Project
- Pipeline
- Running the Project
- Contributing
- License
A powerful and efficient text summarization tool designed to condense large bodies of text into concise summaries, preserving key information and insights.
The SAMSum dataset contains about 16k messenger-like conversations with summaries. You can get the dataset from Hugging Face , https://huggingface.co/datasets/samsum?row=10
The project utilizes the Google Pegasus model, a state-of-the-art transformer-based model for text generation tasks, including summarization. Developed by Google Research, Pegasus stands for Pre-training with Extracted Gap-sentences for Abstractive SUmmarization of Texts. It is designed to generate abstractive summaries by learning to predict masked tokens in a text, making it highly effective for tasks requiring understanding and summarizing long texts.
- Update config.yaml
- Update params.yaml
- Update entity
- Update the configuration manager in src config
- Update the components
- Update the Pipeline
- Update the main.py
- Update the app.py
The data ingestion phase involves downloading the dataset from hugging face and unzipping it into a designated directory.
After ingestion, the dataset undergoes validation to ensure all required files are present and correctly formatted. This process checks for the presence of 'train', 'test', and 'validation' directories and logs the status.
In the data transformation phase, the dataset is further processed to prepare it for model training. This includes tokenization using the Google Pegasus tokenizer (google/pegasus-cnn_dailymail
).
The model training phase involves training the Google Pegasus model on the transformed dataset.
Finally, the trained model is evaluated on the same dataset used for training.
To clone and run the project, follow these steps:
- Clone the repository:
git clone https://github.com/Kaustbh/Text-Summarizer.git
- Navigate to the project directory:
cd Text-Summarizer
- Create a Python virtual environment (optional but recommended):
python -m venv venv
- Install the required packages:
pip install -r requirements.txt
- Run the Flask app:
flask --app app run --debug
Contributions to this project are welcome. If you encounter any issues or have suggestions for improvements, please submit a pull request or open an issue on the GitHub repository.
This project is licensed under the MIT License.
Feel free to customize this README file to include specific details about your project, such as how to extend the functionality, examples of usage, or any additional acknowledgments.