Skip to content
/ nmtrnng Public
forked from akikoe/nmtrnng

C++ code of "Learning to Parse and Translate Improves Neural Machine Translation"

Notifications You must be signed in to change notification settings

nyu-dl/nmtrnng

 
 

Repository files navigation

NMT+RNNG: A hybrid decoder for NMT which combines the decoder of an attentin-based neural machine translation model with Recurrent Nerual Network Grammars

We have presented a novel syntax-aware NMT model in the target side, called NMT+RNNG ("Learning to Parse and Translate Improves Neural Machine Translation" [1]. The decoder of the NMT+RNNG combines a usual conditional language model and Recurrent Neural Network Grammas (RNNGs) [2], which enables the proposed model to learn to parse and translate.

Description

C++ implementation.

  1. NMTRNNG.xpp: our proposed model (NMT+RNNG).
  2. AttentionBiEncDec.xpp: Baseline ANMT model
  3. /data/: Tanaka corpus (JP-EN) [4]

Requirement

Usage

  1. Modify the paths of EIGEN_LOCATION and SHARE_LOCATION in Makefile.
  2. $ bash setup.sh
  3. $ ./nmtrnng (Then, it starts training the NMTRNNG model.)
  4. Modify main.cpp if you would like to try another model.

References

Contact

Thank you for your having interest in our work. If there are any issues, feel free to contact me.

  • eriguchi [.at.] logos.t.u-tokyo.ac.jp

About

C++ code of "Learning to Parse and Translate Improves Neural Machine Translation"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 99.4%
  • Other 0.6%