The implementation of "Does Multi-Encoder Help? A Case Study on Context-Aware Neural Machine Translation"
This code is based on Fairseq v0.6.2
pip install -r requirements.txt
python setup.py develop
python setup.py install
bash runs/prepare-en2ru.sh
bash runs/train-en2ru.sh baseline
bash runs/train-en2ru.sh inside-context
bash runs/train-en2ru.sh outside-context
bash runs/train-en2ru.sh gaussian
bash runs/translate-en2ru.sh baseline
bash runs/translate-en2ru.sh inside-context
bash runs/translate-en2ru.sh outside-context
bash runs/translate-en2ru.sh gaussian