GithubHelp home page GithubHelp logo

translator-lstm's Introduction

Translator-LSTM

This repository apply LSTM, one derivative of RNN, which was introduced to public in 1997 by Dr. Sepp Hochreiter and Dr. Jürgen Schmidhuber, to build a English-French translator. Since training on the whole language of English and French will take days to complete, this program use a small portion of English corpus to train the model.

RNN

Recurrent Neural Network, or RNN, is one of the most useful neural network structure in the world. This sequence-structure are used to build models in speech recognition and language translation. As you know, the two tasks I mentioned are all about sequence data and need a model to figure out their sequence structures.

LSTM

Long-Short-Term Memory, known as LSTM, is one derivative of original RNN. LSTM can, as its name shows, store infomation learned from the data like its "memory". Just like human memory, the memory of LSTM enables the model to learn from new data based on their memory, instead of training the model from zero. This mechanism dramtically increase the models' performance and reduce the training time.

Try with more data

If you would like to train the model on the whole language, play with WMT10 French-English corpus! to train your model. One thing you should notice before you start: this will take DAYS to train your model even on GPU.

Files descriptions

  • assistance.py: Functions to load and process data.
  • preprocessing.py: Function to preprocess data, the obtained data can feed in the model.
  • check_tensorflow_gpu.py: To check Tensorflow version and access to GPU.
  • build_network.py: Steps to build the network and build sequence models. Define each layers in the network.
  • train_network.py: To train the network using functions built in build_network.py.
  • main.py: To put everything together, download all other files and run main.py to build the translator.
  • translator.ipynb: An easy-to-present version of the project. Check out the data and results in the notebook.

translator-lstm's People

Watchers

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