Code Monkey home page Code Monkey logo

abstractive_text_summerization_with_transformers_deep-learning's Introduction

Abstractive text summerization with Transformers

Abstractive text summarization using transformers (multi-head attention mechanism).

Summarization is the task to reduce the size of the document while preserving the meaning. Abstractive Summarization includes heuristic approaches to train the system in making an attempt to understand the whole context and generate a summary based on that understanding.

Pre-requirements

  1. Tensorflow
  2. Pandas utilities: pickle, re

Dataset: 'Inshorts' is a dataset service that has collections news from various sources and publishes them as a summary.

Components of the pipeline

  1. Utilities: Positional encoding and masking.
  2. Model: Mulit head attention with encoder-decoder blocks.
  3. Training loop and inference for testing.

How to run

The main script contains all the compinents including classes for multi-head attenction mechanism, model and the training loop. One can also change the hyper-parameters according to preference. Training data is already included in the /data directory.

python Summarizer.py

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.