Git Product home page Git Product logo

neural_machine_translation_2018's Introduction

neural_machine_trainslation_2018

Hyperparameter search result

https://docs.google.com/spreadsheets/d/1A1rpI208p84gCmjD_chWu7UFmgf2vNDZOhx-PoHQXtY/edit?usp=sharing

Sample script for training on vi-en

python3 rnn_encoder_decoder.py --source_lang=vi --data=../data/iwslt-vi-en --num_encoder_layers=1 --num_decoder_layers=1 --save_all_epoch --dropout=0.2

Sample script for testing and seeing results

parser = rnn_encoder_decoder.rnn_encoder_decoder_argparser()
args = parser.parse_args([])
args.source_lang = 'vi'
args.data = '../data/short-sentences-vi-en/'
args.num_encoder_layers = 2
args.num_decoder_layers = 2
args.test = True
args.model_weights_path = '../model_weights/short/3'
loss, bleu, test_source_list, test_reference_list, translation_output_list, attention_list = rnn_encoder_decoder.run(args)

for i in len(test_source_list):
  for triplet in zip(test_source_list[i], test_reference_list[i], translation_output_list[i]):
      print(triplet)

Command line arguments

  • --name
    • Name of the experiment, it will be used for save path of training log and trained model weights
  • --test
    • If this flag is present, do one test epoch. Otherwise, do train and validation
  • --source_lang
    • Indicate source language (vi, zh) so that different preprocessing can be applied.
  • --data
    • Indicate data folder
  • and other hyperparams of the model...

neural_machine_translation_2018's People

Contributors

jpatrickpark avatar wangyu avatar andreawwenyi avatar johnhoos avatar

Watchers

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