ZhenYangIACAS / NMT_GAN

generative adversarial nets for neural machine translation
Apache License 2.0
119 stars 37 forks source link

the difference between generating sample and sentence translation #13

Closed jeicy07 closed 6 years ago

jeicy07 commented 6 years ago

Hi, I notice that when generating samples, you just build a model for generation and feed data in it and calculate "generate_samples" directly. However, when translating sentences at the beginning of evaluation, you use beam search to translate, instead of using above models. I wonder why you use such different methods since in my opinion, generating samples and translation are the same tasks. Thanks!

ZhenYangIACAS commented 6 years ago

Yes, we use different methods for sample generation and evaluation. And we present the explanations about this in our paper. For sample generation, we simply use the greedy search because of its low cost of time. For evaluation, we use the beam search for its high accuracy.