Giter VIP home page Giter VIP logo

machine-translator's Introduction

Neural Machine Translation: An Introduction

Introduction

A simple implementation of a Encoder-Decoder solution to French-English translation.

This initially started as my capstone project for the Udacity Machine Learning Nanodegree, where I built a sequence-to-sequence model in Tensorflow based on single-layer encoder-decoder architecture. I am continuing the study by trying to gauge how increasing the complexity of the model changes the accuracy of its predictions. Essentially, I aim to write a large review of as many different Neural Machine Translation architectures as I can.

Instructions:

  • Unzip the file "short_data.zip" and make sure the folder is called "short_data", with the pickle files in the directory below.
  • If you like, navigate to the text-preprocessing.ipynb to investigate the preprocessing script. Be careful when running it as this will overwrite some of the short_data folder.
  • Go to machine-translator.ipynbfor the Neural Machine Translation code and the Benchmark model, plus some script to investigate the BLEU scores.
  • A full write up to supplement the documentation in the ipython notebooks is available in report.pdf.
  • utils.py contains helper functions, which occasionally give some insight into the workings of the NMT system so may be of interest to the user.

Plans - adding complexity:

  • More layers in the encoder and decoder - this is a failsafe method of improving the accuracy of the model
  • Attention mechanisms - I don't actually know much about these but hard Attention has been shown to increase accuracy greatly, without adding too many additional parameters.
  • Bidirectional encoders and decoders - again, failsafe + not too many parameters.
  • Investigate ConvNet and GAN implementations

machine-translator's People

Contributors

henrymaguire avatar

Watchers

James Cloos 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.