GithubHelp home page GithubHelp logo

tugot17 / paying-attention-to-attention Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 6.68 MB

Presentation and code on basics of attention mechanism in seq2seq models

License: MIT License

Jupyter Notebook 68.94% Python 12.06% TeX 19.00%
attention-mechanism attention seq2seq translation human-machine-translation pytorch-implementation transformer

paying-attention-to-attention's Introduction

Paying attention to attention

Presentation and code about basics of the attention mechanism in seq2seq models.

We present an end-to-end trained solution for translating date information typed by a human into a date format recognizable for a computer. The implemented solution is using simple attention-based model. We also present a visualization of a trained attention weights.

Example translation below:

Code

Jupyter notebook presenting the human-machine date translation using attention-based model can be found here

You can run this code in google colab by clicking this link, but remeber to first download required data. You can do it by running the following command in the colab env.

!wget https://raw.githubusercontent.com/tugot17/Paying-Attention-to-Attention/master/human-machine.csv

Presentation

Compiled version of presentation can be found here

Presentation Latex code can be found in presentation_code folder

Credits

Presentation contains references to all images and papers used within it.

The following data sources and articles were used to create the helper notebook

Data

Human-machine dataset was taken from this repository

Pytorch official tutorial

The general idea was for seq2seq translation with attention mechanism was inspired by official pytorch tutorial

Authors

License

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

paying-attention-to-attention's People

Contributors

tugot17 avatar

Watchers

 avatar  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.