GithubHelp home page GithubHelp logo

gvhemanth / transformers-based-text-summarization Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 12.59 MB

Revolutionize text summarization with this Transformer model, leveraging state-of-the-art techniques. Trained on news articles, it produces concise summaries effortlessly. Explore cutting-edge capabilities for your summarization needs.

Jupyter Notebook 100.00%
embeddings encoder-decoder ffnn nlp python3 self-attention transformers vectorization

transformers-based-text-summarization's Introduction

Transformer-based Text Summarization

Overview:

This project implements a text summarization model using the Transformer architecture. The model is trained on a dataset of news articles and their corresponding headlines. The goal is to generate concise and relevant summaries for given input articles.

Prerequisites:

  • Python 3.x
  • TensorFlow 2.x
  • Openpyxl

Installation:

  1. Clone the repository:
git clone https://github.com/GVHemanth/Transformers-based-Text-Summarization.git
cd transformer-text-summarization
  1. Install dependencies:
pip install openpyxl --quiet
  1. Download the dataset:

    • Download the dataset (news articles and headlines) and place it in the appropriate directory. Ensure the file is in the required format (e.g., Inshorts Cleaned Data.xlsx).

Usage:

  1. Run the main notebook:
python transformer_summarization.ipynb
  1. Monitor training progress:

    • The script will train the Transformer model for a specified number of epochs. You can adjust hyperparameters in the script or through command-line arguments.
  2. Evaluate the model:

    • After training, the script provides an example of how to use the trained model to generate summaries for new input articles.

Customization:

  • Adjust hyperparameters such as num_layers, d_model, num_heads, dff, and dropout_rate in the script to experiment with different configurations.

  • Modify the training loop to suit your specific use case or integrate the model into your applications.

Results:

  • The model's performance can be evaluated by comparing the generated summaries with the actual headlines from the dataset.

Model Checkpoints:

  • Model checkpoints will be saved during training in the "checkpoints" directory. You can use these checkpoints to restore the trained model.

Contributing:

  • Contributions are welcome! Feel free to submit issues or pull requests.

License:

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

transformers-based-text-summarization's People

Contributors

gvhemanth avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.