English

Code-Switching for Enhancing NMT with Pre-Specified Translation

Computation and Language 2019-05-17 v4

Abstract

Leveraging user-provided translation to constrain NMT has practical significance. Existing methods can be classified into two main categories, namely the use of placeholder tags for lexicon words and the use of hard constraints during decoding. Both methods can hurt translation fidelity for various reasons. We investigate a data augmentation method, making code-switched training data by replacing source phrases with their target translations. Our method does not change the MNT model or decoding algorithm, allowing the model to learn lexicon translations by copying source-side target words. Extensive experiments show that our method achieves consistent improvements over existing approaches, improving translation of constrained words without hurting unconstrained words.

Keywords

Cite

@article{arxiv.1904.09107,
  title  = {Code-Switching for Enhancing NMT with Pre-Specified Translation},
  author = {Kai Song and Yue Zhang and Heng Yu and Weihua Luo and Kun Wang and Min Zhang},
  journal= {arXiv preprint arXiv:1904.09107},
  year   = {2019}
}
R2 v1 2026-06-23T08:44:34.275Z