Code-Switching for Enhancing NMT with Pre-Specified Translation

Kai Song, Yue Zhang, Heng Yu, Weihua Luo, Kun Wang +1 more
4/19/2019
cs.CL

Official code: batman2013/e-commerce_test_sets (7 stars, last commit 2019-06-20).

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.

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

70Apr 1, 20197 years ago

Similar Papers

Cite this paper

@article{song2019codeswitching,
  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},
  year   = {2019},
  eprint = {1904.09107},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1904.09107}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1904.09107.svg)](https://codeofpaper.com/paper/1904.09107)

Discussion