GithubHelp home page GithubHelp logo

reshalfahsi / neural-machine-translation Goto Github PK

View Code? Open in Web Editor NEW
1.0 3.0 1.0 360 KB

English-To-German Neural Machine Translation Using Transformer

Jupyter Notebook 100.00%
machine-translation multi30k neural-machine-translation pytorch-lightning text-processing transformer natural-language-processing nlp

neural-machine-translation's Introduction

English-To-German Neural Machine Translation Using Transformer

colab

Neural Machine Translation (NMT) is a family model or an approach to solving machine translation problems through an artificial neural network, typically deep learning. In other words, the model is dispatched to translate a sequence of words from the source language to the target language. In this case, the source language would be English and the target would be German. To fabricate the model, the Transformer layers are leveraged. The NMT model is trained on the Multi30K dataset. The model is then assessed on a subset of the dataset, which is the Flickr 2016 test dataset.

Experiment

Follow this link to play along and explore the NMT model.

Result

Quantitative Result

The performance of the model in terms of cross-entropy loss and translation edit rate (TER) on the test dataset.

Metrics Score
Loss 1.951
TER 0.811

Loss Curve

loss_curve
Loss of training and validation versus the epochs.

Qualitative Result

Here, the NMT model's qualitative performance is associated with the Transformer's attention maps.

qualitative_result
The attention maps from each of the Transformer's heads. Almost every corresponding word pair (English-German) at each head pays attention mutually.

Credit

neural-machine-translation's People

Contributors

reshalfahsi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

mishra-tapas

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.