Code for AAAI 2021 paper "Lexically Constrained Neural Machine Translation with Explicit Alignment Guidance". [Paper]
The code is implemented on fairseq v0.9.0, follow the same steps to install and prepare the processed fairseq dataset with script here. You may need to process other datasets similarly. The python package fastbpe
is also needed.
git clone https://github.com/ghchen18/cdalign.git
cd cdalign
pip install --editable ./
See scripts/run_train.sh
See scripts/extract_alignment.sh
See scripts/run_train.sh
See scripts/run_test.sh
@inproceedings{chen2021lexically,
title={Lexically Constrained Neural Machine Translation with Explicit Alignment Guidance},
author={Guanhua, Chen and Yun, Chen and Victor O.K., Li},
booktitle = {Proceedings of AAAI},
year = {2021},
pages = {12630--12638},
volume={35},
number={14},
}