Source code of paper "Automatic Post-Editing of Machine Translation: A Neural Programmer-Interpreter Approach" - EMNLP2018
- TensorFlow 1.2+ for Python 3
- YAML and Matplotlib modules for Python 3:
sudo apt-get install python3-yaml python3-matplotlib
- A recent NVIDIA GPU
Train a model (CONFIG is a YAML configuration file, such as config/default.yaml
):
./seq2seq.sh CONFIG --train -v
Translate text using an existing model:
./seq2seq.sh CONFIG --decode FILE_TO_TRANSLATE --output OUTPUT_FILE
or for interactive decoding:
./seq2seq.sh CONFIG --decode
- Training scripts and configuration for all experiments in the paper can be found under
./experiments
folder
- This project is implemented based on seq2seq project