longyuewangdcu / LC-NMT

Larger-Context NMT

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LC-NMT

Larger-Context NMT

NMT-Coverage

In this version, we introduce a coverage mechanism (NMT-Coverage) to indicate whether a source word is translated or not, which proves to alleviate over-translation and under-translation. If you use the code, please cite our paper:

@InProceedings{Tu:2016:ACL,
  author    = {Wang, Longyue and Tu, Zhaopeng and Way, Andy and Liu Qun},
  title     = {Exploiting Cross-Sentence Context for Neural Machine Translation},
  booktitle = {Proceedings of the 2017 Conference on Empirical Methods in Natural Language Processing},
  year      = {2017},
}

For any comments or questions, please email Longyue Wang and Zhaopeng Tu.

Installation

NMT-Coverage is developed by Zhaopeng Tu, which is on top of lisa-groudhog (https://github.com/lisa-groundhog/GroundHog). It requires Theano0.8 or above version (for the module "scan" used in the trainer).

To install NMT-Coverage in a multi-user setting

python setup.py develop --user

For general installation, simply use

python setup.py develop

NOTE: This will install the development version of Theano, if Theano is not currently installed.

How to Run?

About

Larger-Context NMT