ZhenYangIACAS / NMT_GAN

generative adversarial nets for neural machine translation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NMT_GAN

This is an open source implementation of our framework to improve NMT with conditional sequence generative adversarial nets.which is described in the following papers:

Yang, Z., Chen, W., Wang, F., & Xu, B. Improving neural machine translation with conditional sequence generative adversarial nets. (NAACL 2018)

Requirements: Tensorflow 1.2.0, python 2.x

Useage:

pre-train the discriminator by: sh discriminator_pretrain.sh

pre-train the generator by: sh train.sh

generate the samples by: sh generate_sample.sh

run the gan training by: sh gan_train.sh

About

generative adversarial nets for neural machine translation

License:Apache License 2.0


Languages

Language:Python 91.3%Language:Perl 7.8%Language:Shell 0.9%